forked from e0404/matRad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruntests.bat
43 lines (36 loc) · 942 Bytes
/
runtests.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
echo off
REM Make sure some failures are detected by the CI runners
REM function exitIfError {
REM # pass "$?" as argument: i.e. the exit status of the last call
REM if [ "$1" -ne 0 ]; then
REM exit $1;
REM fi
REM }
REM Handle Runner variables
set Runner=%1
REM if [ -z "$Switches" ] ; then
REM case "$Runner" in
REM *matlab* )
REM Switches="-nodesktop -r"
REM ;;
REM *octave* )
REM Switches="--no-gui --eval"
REM ;;
REM * )
REM # Fall back to Octave switches
REM Switches="--no-gui --eval"
REM ;;
REM esac
REM fi
REM Make sure MATLAB/Octave know the intent
REM note: the export is required
set CONTINUOUS_INTEGRATION=true
set CI=true
REM Actually run the test suite
cd unitTest
set TESTDIR="%cd%"
REM also CD in MATLAB/Octave to make sure that startup files
REM cannot play any role in setting the path
%Runner% --eval "cd('%TESTDIR%'); matRad_runTests" > ../runtests.log
REM exitIfError $?
cd ..