623c4811ab
There is no way to stop a background task simply and safely with cmd.exe, but in appveyor.yml we can use PowerShell, so use its job support to do it instead. This is important because AppVeyor waits until all jobs launched by the script terminate, so without stopping the background job all builds waited for an hour before timing out.
63 lines
1.2 KiB
Batchfile
Executable File
63 lines
1.2 KiB
Batchfile
Executable File
echo.
|
|
echo --- Running tests.
|
|
echo.
|
|
|
|
cd c:\projects\wxwidgets\tests
|
|
|
|
goto %TOOLSET%
|
|
|
|
:msbuild
|
|
PATH=C:\projects\wxwidgets\lib\vc_x64_dll;%PATH%
|
|
.\vc_x64_mswudll\test.exe
|
|
if %errorlevel% NEQ 0 goto :error
|
|
.\vc_x64_mswudll\test_gui.exe
|
|
goto :eof
|
|
|
|
:nmake
|
|
if "%BUILD%"=="debug" set debug_suffix=d
|
|
if "%ARCH%"=="amd64" set arch_suffix=_x64
|
|
.\vc_mswu%debug_suffix%%arch_suffix%\test.exe
|
|
if %errorlevel% NEQ 0 goto :error
|
|
.\vc_mswu%debug_suffix%%arch_suffix%\test_gui.exe
|
|
goto :eof
|
|
|
|
:mingw
|
|
.\gcc_mswud\test.exe
|
|
if %errorlevel% NEQ 0 goto :error
|
|
.\gcc_mswud\test_gui.exe
|
|
goto :eof
|
|
|
|
:msys2
|
|
PATH=C:\projects\wxwidgets\lib;%PATH%
|
|
.\test.exe
|
|
if %errorlevel% NEQ 0 goto :error
|
|
.\test_gui.exe
|
|
goto :eof
|
|
|
|
:cygwin
|
|
PATH=C:\projects\wxwidgets\lib;%PATH%
|
|
.\test.exe
|
|
.\test_gui.exe
|
|
echo.
|
|
echo --- Note: ignoring possible test failures under Cygwin
|
|
echo.
|
|
exit /b 0
|
|
|
|
:cmake_qt
|
|
set CMAKE_TEST_REGEX="test_[drawing^|gui^|headers]"
|
|
goto :cmake
|
|
|
|
:cmake
|
|
if "%CONFIGURATION%"=="" set CONFIGURATION=Release
|
|
if "%CMAKE_TEST_REGEX%"=="" set CMAKE_TEST_REGEX="test_drawing"
|
|
cd ..\build_cmake
|
|
ctest -V -C %CONFIGURATION% -E %CMAKE_TEST_REGEX% --output-on-failure --interactive-debug-mode 0 .
|
|
if %errorlevel% NEQ 0 goto :error
|
|
goto :eof
|
|
|
|
:error
|
|
echo.
|
|
echo !!! Non-GUI test failed.
|
|
echo.
|
|
goto :eof
|