diff options
Diffstat (limited to 'contrib/ctest/common.ctest.inc')
-rw-r--r-- | contrib/ctest/common.ctest.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/ctest/common.ctest.inc b/contrib/ctest/common.ctest.inc index 40d2db7..c95259c 100644 --- a/contrib/ctest/common.ctest.inc +++ b/contrib/ctest/common.ctest.inc @@ -134,8 +134,16 @@ if (CTEST_TOOLCHAIN) else() set(CTEST_BUILD_TARGET "") endif() + ctest_build() # build custom target that depends on all the actual tests -ctest_test() # run tests +if (NOT "${USCXML_EXCLUDE_LABEL_REGEX}" STREQUAL "") + ctest_test(EXCLUDE_LABEL ${USCXML_EXCLUDE_LABEL_REGEX}) +elseif(NOT "${USCXML_INCLUDE_LABEL_REGEX}" STREQUAL "") + ctest_test(INCLUDE_LABEL ${USCXML_INCLUDE_LABEL_REGEX}) +else() + ctest_test() +endif() + if(CTEST_COVERAGE_COMMAND) ctest_coverage() |