Check all error codes of AppVeyor tests

A test might return a different error code than 1,
for example when a segfault occurs.
This commit is contained in:
Maarten Bent
2018-07-30 23:54:21 +02:00
parent 3c0ea566fd
commit f074557f00

View File

@@ -9,27 +9,27 @@ goto %TOOLSET%
:msbuild :msbuild
PATH=C:\projects\wxwidgets\lib\vc_x64_dll;%PATH% PATH=C:\projects\wxwidgets\lib\vc_x64_dll;%PATH%
.\vc_x64_mswudll\test.exe .\vc_x64_mswudll\test.exe
if errorlevel 1 goto :error if %errorlevel% NEQ 0 goto :error
.\vc_x64_mswudll\test_gui.exe .\vc_x64_mswudll\test_gui.exe
goto :eof goto :eof
:nmake :nmake
if "%BUILD%"=="debug" set debug_suffix=d if "%BUILD%"=="debug" set debug_suffix=d
.\vc_mswu%debug_suffix%\test.exe .\vc_mswu%debug_suffix%\test.exe
if errorlevel 1 goto :error if %errorlevel% NEQ 0 goto :error
.\vc_mswu%debug_suffix%\test_gui.exe .\vc_mswu%debug_suffix%\test_gui.exe
goto :eof goto :eof
:mingw :mingw
.\gcc_mswud\test.exe .\gcc_mswud\test.exe
if errorlevel 1 goto :error if %errorlevel% NEQ 0 goto :error
.\gcc_mswud\test_gui.exe .\gcc_mswud\test_gui.exe
goto :eof goto :eof
:msys2 :msys2
PATH=C:\projects\wxwidgets\lib;%PATH% PATH=C:\projects\wxwidgets\lib;%PATH%
.\test.exe .\test.exe
if errorlevel 1 goto :error if %errorlevel% NEQ 0 goto :error
.\test_gui.exe .\test_gui.exe
goto :eof goto :eof
@@ -46,7 +46,7 @@ exit /b 0
if "%CONFIGURATION%"=="" set CONFIGURATION=Release if "%CONFIGURATION%"=="" set CONFIGURATION=Release
cd ..\build_cmake cd ..\build_cmake
ctest -V -C %CONFIGURATION% -R "test_[base|gui]" --interactive-debug-mode 0 . ctest -V -C %CONFIGURATION% -R "test_[base|gui]" --interactive-debug-mode 0 .
if errorlevel 1 goto :error if %errorlevel% NEQ 0 goto :error
goto :eof goto :eof
:error :error