Specify tests to exclude in CI CMake builds

Escape the | in AppVeyor bat file to prevent errors.
This commit is contained in:
Maarten Bent
2021-01-16 22:10:18 +01:00
parent b51d146adf
commit 564f9d6037
2 changed files with 4 additions and 4 deletions

View File

@@ -44,14 +44,14 @@ echo.
exit /b 0
:cmake_qt
set CMAKE_TEST_REGEX="test_base"
set CMAKE_TEST_REGEX="test_[drawing^|gui^|headers]"
goto :cmake
:cmake
if "%CONFIGURATION%"=="" set CONFIGURATION=Release
if "%CMAKE_TEST_REGEX%"=="" set CMAKE_TEST_REGEX="test_[base|gui]"
if "%CMAKE_TEST_REGEX%"=="" set CMAKE_TEST_REGEX="test_drawing"
cd ..\build_cmake
ctest -V -C %CONFIGURATION% -R %CMAKE_TEST_REGEX% --output-on-failure --interactive-debug-mode 0 .
ctest -V -C %CONFIGURATION% -E %CMAKE_TEST_REGEX% --output-on-failure --interactive-debug-mode 0 .
if %errorlevel% NEQ 0 goto :error
goto :eof

View File

@@ -44,7 +44,7 @@ case $wxTOOLSET in
if [ "$wxCMAKE_TESTS" != "OFF" ]; then
echo 'travis_fold:start:testing'
echo 'Testing...'
ctest -V -C Debug -R "test_base" --output-on-failure --interactive-debug-mode 0 .
ctest -V -C Debug -E "test_drawing" --output-on-failure --interactive-debug-mode 0 .
echo 'travis_fold:end:testing'
fi