diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-06-11 15:17:04 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-06-11 17:03:38 (GMT) |
commit | 2caa7502d523316d431c18b26e72e6cdd2577df8 (patch) | |
tree | ba2e89b04f198a5e33c7ecc8f9f753052a8996a5 /.gitlab | |
parent | 26b4cbcf93abf08cb9c7eb5a0173d066abd404b4 (diff) | |
download | CMake-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.cmake | 7 |
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) |