summaryrefslogtreecommitdiffstats
path: root/BuildTools/Scripts
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-12-09 00:01:50 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-12-09 00:01:50 +0000
commit3f6cd5ce371a882b22245afb2e0749f7dd0bbcef (patch)
treea871ceff3dd1f2fdc15f693727f5e0ebb32c8850 /BuildTools/Scripts
parentappveyor: updated to use VS2019 image (diff)
downloadDiligentCore-3f6cd5ce371a882b22245afb2e0749f7dd0bbcef.tar.gz
DiligentCore-3f6cd5ce371a882b22245afb2e0749f7dd0bbcef.zip
Updated run_tests.bat to return the error code of the last failing test
Diffstat (limited to 'BuildTools/Scripts')
-rw-r--r--BuildTools/Scripts/appveyor/run_tests.bat15
1 files changed, 12 insertions, 3 deletions
diff --git a/BuildTools/Scripts/appveyor/run_tests.bat b/BuildTools/Scripts/appveyor/run_tests.bat
index 3a23fd7a..dfff8ced 100644
--- a/BuildTools/Scripts/appveyor/run_tests.bat
+++ b/BuildTools/Scripts/appveyor/run_tests.bat
@@ -17,15 +17,24 @@ if "%PLATFORM_NAME%"=="Windows8.1" (
)
if "%RUN_API_CORE_TEST%"=="true" (
- "%1\UnitTests\DiligentCoreTest\%CONFIGURATION%\DiligentCoreTest.exe" || set ERROR=%ERRORLEVEL%
+ "%1\UnitTests\DiligentCoreTest\%CONFIGURATION%\DiligentCoreTest.exe"
+ if %ERRORLEVEL% NEQ 0 (
+ set ERROR=%ERRORLEVEL%
+ )
)
if "%RUN_CORE_API_D3D11_TEST%"=="true" (
- "%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d11_sw || set ERROR=%ERRORLEVEL%
+ "%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d11_sw
+ if %ERRORLEVEL% NEQ 0 (
+ set ERROR=%ERRORLEVEL%
+ )
)
if "%RUN_CORE_API_D3D12_TEST%"=="true" (
- "%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d12_sw || set ERROR=%ERRORLEVEL%
+ "%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d12_sw
+ if %ERRORLEVEL% NEQ 0 (
+ set ERROR=%ERRORLEVEL%
+ )
)
exit /B %ERROR% REM use /B to exit the current batch script context, and not the command prompt process