run_tests.bat 780 Bytes
Newer Older
1 2 3
REM Add the cmake path
set PATH=%PATH%;C:\Program Files (x86)\CMake\bin\

4 5 6
REM Run tests from toplevel build dir
cd ..

7
REM Delete old test results which are generated by OpenFlipper
8
del /Q tests\testResults\*
9 10

REM Delete old test result collection generated by ctest
11
del /Q CTestResults.xml
12 13 14 15 16

REM Run the tests
ctest -D ExperimentalTest -C Release --no-compress-output

REM Call head on the TAG to get the current folder where the test results are
Jan Möbius's avatar
Jan Möbius committed
17
FOR /F "tokens=1 delims= " %%i IN ('tests\head.bat 1 Testing\TAG') DO @set result=%%i 
18 19 20 21 22 23

REM Go into that folder
cd Testing
cd %result%

REM copy generated xml results file to the location where jenkins expects it
24
copy /Y Test.xml ..\..\CTestResults.xml
25 26

REM Go back to start directory
27 28
REM cd ..
REM cd ..