1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00
Files
CMake/.gitlab/ci/ctest_exclusions.cmake

48 lines
1.4 KiB
CMake

set(test_exclusions
# This test hits global resources and can be handled by nightly testing.
# https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4769
"^BundleGeneratorTest$"
)
if (CTEST_CMAKE_GENERATOR MATCHES "Visual Studio")
list(APPEND test_exclusions
# This test takes around 5 minutes with Visual Studio.
# https://gitlab.kitware.com/cmake/cmake/-/issues/20733
"^ExternalProjectUpdate$"
# This test is a dependency of the above and is only required for it.
"^ExternalProjectUpdateSetup$")
endif ()
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "_asan")
list(APPEND test_exclusions
CTestTest2 # crashes on purpose
BootstrapTest # no need to cover this for asan
)
endif()
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "_jom")
list(APPEND test_exclusions
# JOM often fails with "Couldn't change working directory to ...".
"^ExternalProject$"
)
endif()
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "_valgrind")
list(APPEND test_exclusions
# Tests that timeout under valgrind.
"^RunCMake.NinjaMultiConfig$"
"^RunCMake.Autogen_Qt6_1$"
"^RunCMake.GoogleTest$"
"^RunCMake.CXXModules$"
"^RunCMake.CommandLine$"
# Too spurious under Valgrind.
"^RunCMake.testUVProcessChain$"
)
endif()
string(REPLACE ";" "|" test_exclusions "${test_exclusions}")
if (test_exclusions)
set(test_exclusions "(${test_exclusions})")
endif ()