diff --git a/build/tools/appveyor-test.bat b/build/tools/appveyor-test.bat index 797ec75d76..9de61f8488 100755 --- a/build/tools/appveyor-test.bat +++ b/build/tools/appveyor-test.bat @@ -42,6 +42,12 @@ echo --- Note: ignoring possible test failures under Cygwin echo. exit /b 0 +:cmake +if "%CONFIGURATION%"=="" set CONFIGURATION=Release +cd build_cmake +ctest -V -C %CONFIGURATION% --interactive-debug-mode 0 . +if errorlevel 1 goto error + :error echo. echo !!! Non-GUI test failed. diff --git a/build/tools/appveyor.bat b/build/tools/appveyor.bat index a424deacd9..468fb0f953 100644 --- a/build/tools/appveyor.bat +++ b/build/tools/appveyor.bat @@ -87,7 +87,7 @@ if "%CONFIGURATION%"=="" set CONFIGURATION=Release if "%SKIPTESTS%"=="1" ( set BUILD_TESTS=OFF ) else ( - set BUILD_TESTS=CONSOLE_ONLY + set BUILD_TESTS=ALL ) echo. echo --- Generating project files @@ -111,13 +111,6 @@ if ERRORLEVEL 1 goto cmake_test appveyor PushArtifact wxWidgets_Binaries.zip :cmake_test -if NOT "%SKIPTESTS%"=="1" ( - echo. - echo --- Running tests - echo. - ctest -V -C %CONFIGURATION% --interactive-debug-mode 0 . - if ERRORLEVEL 1 goto error -) if NOT "%SKIPINSTALL%"=="1" ( echo. echo --- Installing