mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 23:19:58 -06:00
ci: support running just a set of tests with external builders
This commit is contained in:
@@ -53,10 +53,17 @@ if ("$ENV{CTEST_NO_WARNINGS_ALLOWED}" AND num_warnings GREATER 0)
|
|||||||
"Found ${num_warnings} warnings (treating as fatal).")
|
"Found ${num_warnings} warnings (treating as fatal).")
|
||||||
endif ()
|
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")
|
include("${CMAKE_CURRENT_LIST_DIR}/ctest_exclusions.cmake")
|
||||||
ctest_test(
|
ctest_test(
|
||||||
PARALLEL_LEVEL "${nproc}"
|
PARALLEL_LEVEL "${nproc}"
|
||||||
RETURN_VALUE test_result
|
RETURN_VALUE test_result
|
||||||
|
${ctest_label_args}
|
||||||
EXCLUDE "${test_exclusions}")
|
EXCLUDE "${test_exclusions}")
|
||||||
ctest_submit(PARTS Test)
|
ctest_submit(PARTS Test)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user