2017-11-22 09:37:34 -05:00
|
|
|
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
|
|
|
|
|
2017-12-10 16:40:23 -05:00
|
|
|
:cmake
|
|
|
|
if "%CONFIGURATION%"=="" set CONFIGURATION=Release
|
2018-07-29 13:08:17 -04:00
|
|
|
cd ..\build_cmake
|
|
|
|
ctest -V -C %CONFIGURATION% -R "test_[base|gui]" --interactive-debug-mode 0 .
|
|
|
|
if errorlevel 1 goto :error
|
|
|
|
goto :eof
|
2017-12-10 16:40:23 -05:00
|
|
|
|
2017-11-22 09:37:34 -05:00
|
|
|
:error
|
|
|
|
echo.
|
|
|
|
echo !!! Non-GUI test failed.
|
|
|
|
echo.
|
|
|
|
goto :eof
|