Skip to content

Commit

Permalink
Update build_win.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiepeng committed Feb 13, 2025
1 parent 0956686 commit 74c0603
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,24 @@ DEL ".\src\radarsimpy\lib\*.html"
DEL ".\src\*.cpp"
DEL ".\src\*.html"

SET TEST_FAILED=0
REM Run tests if enabled
if /I %TEST% == on (
ECHO ## Run Google test ##
.\src\radarsimcpp\build\Release\radarsimcpp_test.exe
if errorlevel 1 (
echo Google test failed!
exit /b 1
SET TEST_FAILED=1
)

ECHO ## Pytest ##
pytest
if errorlevel 1 (
echo Pytest failed!
exit /b 1
SET TEST_FAILED=1
)
)

exit /b %TEST_FAILED%

:EOF

0 comments on commit 74c0603

Please sign in to comment.