- Notifications
You must be signed in to change notification settings - Fork 253
/
Copy pathrun_tests.cmd
31 lines (27 loc) · 912 Bytes
/
run_tests.cmd
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
@echooff
setlocal
settarget_platform=%1
settarget_configuration=%2
settarget_version=%3
if"%target_platform%"==""settarget_platform=x64
if"%target_configuration%"==""settarget_configuration=Debug
call :run_test test
call :run_test test_cpp20
call :run_test test_cpp20_no_sourcelocation
call :run_test test_fast
call :run_test test_slow
call :run_test test_old
call :run_test test_module_lock_custom
call :run_test test_module_lock_none
goto :eof
:run_test
ifnot"%target_version%"==""setargs=-o %1-%target_version%.xml -r junit
rem Buffer output and redirect to stdout/stderr depending whether the test executable exits successfully. Pipeline will fail if there's any output to stderr.
_build\%target_platform%\%target_configuration%\%1.exe %args%>%1_results.txt
if%ERRORLEVEL%EQU0 (
type%1_results.txt
) else (
type%1_results.txt >&2
echo%1>> test_failures.txt
)
goto :eof