-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run_tests.sh: update comment on -j option, add run_tests.bat
- Loading branch information
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
:: Run all tests registered with CMake using ctest. | ||
|
||
@echo off | ||
setlocal | ||
|
||
call :Main %* | ||
exit /b %ERRORLEVEL% | ||
|
||
:::: | ||
:: Collect command-line arguments. | ||
:: | ||
:: Arguments: | ||
:: Array of command-line arguments | ||
:CollectArgs | ||
exit /b 0 | ||
|
||
:::: | ||
:: Main method for the script. | ||
:: | ||
:: Note: In CMD GTEST_COLOR does not work with ctest. However, color output is | ||
:: still produced if the Google Test runner is executed directly. | ||
:: | ||
:: Arguments: | ||
:: Array of command-line arguments | ||
:: | ||
:Main | ||
:: use half the number of processors. only final -j<n_procs> takes effect. | ||
set /a N_PROCS=%NUMBER_OF_PROCESSORS% / 2 | ||
ctest --test-dir build_windows -j%N_PROCS% %* | ||
copy a b | ||
exit /b %ERRORLEVEL% | ||
|
||
endlocal | ||
echo on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters