Run tests for cmake build from test bat file under AppVeyor

The tests need to be run from appveyor-test.bat and not the main
appveyor.bat itself with the current approach, so move ctest invocation
there.
This commit is contained in:
Vadim Zeitlin
2017-12-10 22:40:23 +01:00
parent 6f23cea6df
commit 62af6a648f
2 changed files with 7 additions and 8 deletions

View File

@@ -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.

View File

@@ -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