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
|
2018-07-30 17:54:21 -04:00
|
|
|
if %errorlevel% NEQ 0 goto :error
|
2017-11-22 09:37:34 -05:00
|
|
|
.\vc_x64_mswudll\test_gui.exe
|
|
|
|
goto :eof
|
|
|
|
|
|
|
|
:nmake
|
|
|
|
if "%BUILD%"=="debug" set debug_suffix=d
|
2019-11-30 17:27:43 -05:00
|
|
|
if "%ARCH%"=="amd64" set arch_suffix=_x64
|
|
|
|
.\vc_mswu%debug_suffix%%arch_suffix%\test.exe
|
2018-07-30 17:54:21 -04:00
|
|
|
if %errorlevel% NEQ 0 goto :error
|
2019-11-30 17:27:43 -05:00
|
|
|
.\vc_mswu%debug_suffix%%arch_suffix%\test_gui.exe
|
2017-11-22 09:37:34 -05:00
|
|
|
goto :eof
|
|
|
|
|
|
|
|
:mingw
|
|
|
|
.\gcc_mswud\test.exe
|
2018-07-30 17:54:21 -04:00
|
|
|
if %errorlevel% NEQ 0 goto :error
|
2017-11-22 09:37:34 -05:00
|
|
|
.\gcc_mswud\test_gui.exe
|
|
|
|
goto :eof
|
|
|
|
|
|
|
|
:msys2
|
|
|
|
PATH=C:\projects\wxwidgets\lib;%PATH%
|
|
|
|
.\test.exe
|
2018-07-30 17:54:21 -04:00
|
|
|
if %errorlevel% NEQ 0 goto :error
|
2017-11-22 09:37:34 -05:00
|
|
|
.\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
|
|
|
|
|
2018-09-25 13:46:21 -04:00
|
|
|
:cmake_qt
|
2021-01-16 16:10:18 -05:00
|
|
|
set CMAKE_TEST_REGEX="test_[drawing^|gui^|headers]"
|
2018-09-25 13:46:21 -04:00
|
|
|
goto :cmake
|
|
|
|
|
2017-12-10 16:40:23 -05:00
|
|
|
:cmake
|
|
|
|
if "%CONFIGURATION%"=="" set CONFIGURATION=Release
|
2021-01-16 16:10:18 -05:00
|
|
|
if "%CMAKE_TEST_REGEX%"=="" set CMAKE_TEST_REGEX="test_drawing"
|
2018-07-29 13:08:17 -04:00
|
|
|
cd ..\build_cmake
|
2021-01-16 16:10:18 -05:00
|
|
|
ctest -V -C %CONFIGURATION% -E %CMAKE_TEST_REGEX% --output-on-failure --interactive-debug-mode 0 .
|
2018-07-30 17:54:21 -04:00
|
|
|
if %errorlevel% NEQ 0 goto :error
|
2018-07-29 13:08:17 -04:00
|
|
|
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
|