|
1 | | -@echo off |
2 | | - |
3 | | -rem This script can be called from any path, as long as the first argument sais where this script is located. |
4 | | - |
5 | | -echo Starting test on MS-Windows. |
6 | | - |
7 | | -rem Get the test folder's path from the called path. |
8 | | -set TEST_FOLDER=%~dp0 |
9 | | -echo TEST_FOLDER = %TEST_FOLDER% |
10 | | - |
11 | | -set PROJECT_BUILD_SCRIPT=%TEST_FOLDER%..\tools\builder\buildProject.bat |
12 | | -echo PROJECT_BUILD_SCRIPT = %PROJECT_BUILD_SCRIPT% |
13 | | - |
14 | | -set PROJECT_FILE=%TEST_FOLDER%TestCaller.DsrProj |
15 | | -echo PROJECT_FILE = %PROJECT_FILE% |
16 | | - |
17 | | -rem Build TestCaller and all its tests. |
18 | | -call "%PROJECT_BUILD_SCRIPT%" "%PROJECT_FILE%" Windows %@% |
19 | | -if errorlevel 0 ( |
20 | | - echo Done building TestCaller. |
21 | | -) else ( |
22 | | - echo Failed building TestCaller. |
23 | | - exit /b 1 |
24 | | -) |
25 | | - |
26 | | -rem Call TestCaller with a path to the folder containing tests. |
27 | | -echo Starting tests. |
28 | | -call "%TEST_FOLDER%\TestCaller.exe" --test "%TEST_FOLDER%\tests" |
29 | | -if errorlevel 0 ( |
30 | | - echo Done running tests. |
31 | | -) else ( |
32 | | - echo Failed running tests. |
33 | | - exit /b 1 |
34 | | -) |
| 1 | +@echo off |
| 2 | + |
| 3 | +rem This script can be called from any path, as long as the first argument sais where this script is located. |
| 4 | + |
| 5 | +echo Starting test on MS-Windows. |
| 6 | + |
| 7 | +rem Get the test folder's path from the called path. |
| 8 | +set TEST_FOLDER=%~dp0 |
| 9 | +echo TEST_FOLDER = %TEST_FOLDER% |
| 10 | + |
| 11 | +set PROJECT_BUILD_SCRIPT=%TEST_FOLDER%..\tools\builder\buildProject.bat |
| 12 | +echo PROJECT_BUILD_SCRIPT = %PROJECT_BUILD_SCRIPT% |
| 13 | + |
| 14 | +set PROJECT_FILE=%TEST_FOLDER%TestCaller.DsrProj |
| 15 | +echo PROJECT_FILE = %PROJECT_FILE% |
| 16 | + |
| 17 | +rem Build TestCaller and all its tests. |
| 18 | +call "%PROJECT_BUILD_SCRIPT%" "%PROJECT_FILE%" Windows Optimization=0 %@% |
| 19 | +if errorlevel 0 ( |
| 20 | + echo Done building TestCaller. |
| 21 | +) else ( |
| 22 | + echo Failed building TestCaller. |
| 23 | + exit /b 1 |
| 24 | +) |
| 25 | + |
| 26 | +rem Call TestCaller with a path to the folder containing tests. |
| 27 | +echo Starting tests. |
| 28 | +call "%TEST_FOLDER%\TestCaller.exe" --test "%TEST_FOLDER%\tests" |
| 29 | +if errorlevel 0 ( |
| 30 | + echo Done running tests. |
| 31 | +) else ( |
| 32 | + echo Failed running tests. |
| 33 | + exit /b 1 |
| 34 | +) |
0 commit comments