summaryrefslogtreecommitdiffstats
path: root/.gitlab
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-06-11 15:17:04 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-06-11 17:03:38 (GMT)
commit2caa7502d523316d431c18b26e72e6cdd2577df8 (patch)
treeba2e89b04f198a5e33c7ecc8f9f753052a8996a5 /.gitlab
parent26b4cbcf93abf08cb9c7eb5a0173d066abd404b4 (diff)
downloadCMake-2caa7502d523316d431c18b26e72e6cdd2577df8.zip
CMake-2caa7502d523316d431c18b26e72e6cdd2577df8.tar.gz
CMake-2caa7502d523316d431c18b26e72e6cdd2577df8.tar.bz2
ci: support running just a set of tests with external builders
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/ctest_test_external.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab/ci/ctest_test_external.cmake b/.gitlab/ci/ctest_test_external.cmake
index 1e61d52..d92b936 100644
--- a/.gitlab/ci/ctest_test_external.cmake
+++ b/.gitlab/ci/ctest_test_external.cmake
@@ -53,10 +53,17 @@ if ("$ENV{CTEST_NO_WARNINGS_ALLOWED}" AND num_warnings GREATER 0)
"Found ${num_warnings} warnings (treating as fatal).")
endif ()
+set(ctest_label_args)
+if (NOT "$ENV{CTEST_LABELS}" STREQUAL "")
+ list(APPEND ctest_label_args
+ INCLUDE_LABEL "$ENV{CTEST_LABELS}")
+endif ()
+
include("${CMAKE_CURRENT_LIST_DIR}/ctest_exclusions.cmake")
ctest_test(
PARALLEL_LEVEL "${nproc}"
RETURN_VALUE test_result
+ ${ctest_label_args}
EXCLUDE "${test_exclusions}")
ctest_submit(PARTS Test)