Skip to content

Commit eaae36d

Browse files
authoredNov 22, 2024
Windows path fixes and unit tests enabling (#2796)
Implement loading config files and graphs from direct paths. Added utils to change linux paths to windows paths based on tests location Added script to change config*.json files to have windows paths instead of linux during UT execution Cut of ut logs on windows from 400 MB to human readable list of test cases Add printing ut list difference on tests failure in test_diff.log. Fixed closing of windows socket. Fixed linux build without mediapipe - added missing tests. Currently passing tests=1848 failing_tests=283
1 parent 753318c commit eaae36d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+905
-204
lines changed
 

‎.bazelrc

-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ build:windows --define=use_fast_cpp_protos=true
122122
build:windows --define=allow_oversize_protos=true
123123

124124
build:windows --spawn_strategy=standalone
125-
build:windows -c opt
126125

127126
# Make Bazel print out all options from rc files.
128127
build:windows --announce_rc

‎build_windows.bat

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ set "bazelStartupCmd=--output_user_root=%BAZEL_SHORT_PATH%"
2222

2323
set "buildCommand=bazel %bazelStartupCmd% build --config=windows --jobs=%NUMBER_OF_PROCESSORS% --verbose_failures //src:ovms 2>&1 | tee win_build.log"
2424
set "buildTestCommand=bazel %bazelStartupCmd% build --config=windows --jobs=%NUMBER_OF_PROCESSORS% --verbose_failures //src:ovms_test 2>&1 | tee win_build_test.log"
25-
set "runTest=%cd%\bazel-bin\src\ovms_test.exe --gtest_filter=-OvmsConfigTest 2>&1 | tee win_full_test.log"
25+
set "changeConfigsCmd=windows_change_test_configs.py"
26+
set "runTest=%cd%\bazel-bin\src\ovms_test.exe --gtest_filter=* 2>&1 | tee win_full_test.log"
2627

2728
:: Setting PATH environment variable based on default windows node settings: Added ovms_windows specific python settings and c:/opt and removed unused Nvidia and OCL specific tools.
2829
:: When changing the values here you can print the node default PATH value and base your changes on it.
@@ -49,6 +50,9 @@ set > %envPath%
4950
:: Start bazel build test
5051
%buildTestCommand%
5152

53+
:: Change tests configs to windows paths
54+
%changeConfigsCmd%
55+
5256
:: Start unit test
5357
%runTest%
5458

0 commit comments

Comments
 (0)