Run unit tests on AppVeyor too

Launch the tests after building them.
This commit is contained in:
Vadim Zeitlin 2017-11-22 15:37:34 +01:00
parent f10bd1279d
commit b29aa3f785
2 changed files with 51 additions and 2 deletions

View File

@ -44,6 +44,6 @@ before_build:
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." } throw "There are newer queued builds for this pull request, failing early." }
build_script: build\tools\appveyor.bat build_script: c:\projects\wxwidgets\build\tools\appveyor.bat
test: off test_script: c:\projects\wxwidgets\build\tools\appveyor-test.bat

49
build/tools/appveyor-test.bat Executable file
View File

@ -0,0 +1,49 @@
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 1 goto :error
.\vc_x64_mswudll\test_gui.exe
goto :eof
:nmake
if "%BUILD%"=="debug" set debug_suffix=d
.\vc_mswu%debug_suffix%\test.exe
if errorlevel 1 goto :error
.\vc_mswu%debug_suffix%\test_gui.exe
goto :eof
:mingw
.\gcc_mswud\test.exe
if errorlevel 1 goto :error
.\gcc_mswud\test_gui.exe
goto :eof
:msys2
PATH=C:\projects\wxwidgets\lib;%PATH%
.\test.exe
if errorlevel 1 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
:error
echo.
echo !!! Non-GUI test failed.
echo.
goto :eof