summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-06-11 11:17:04 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2020-06-11 13:03:38 -0400
commit2caa7502d523316d431c18b26e72e6cdd2577df8 (patch)
treeba2e89b04f198a5e33c7ecc8f9f753052a8996a5
parent26b4cbcf93abf08cb9c7eb5a0173d066abd404b4 (diff)
downloadcmake-2caa7502d523316d431c18b26e72e6cdd2577df8.tar.gz
ci: support running just a set of tests with external builders
-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 1e61d52a2a..d92b936d26 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)