summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-08 15:07:51 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-09-08 15:07:51 (GMT)
commit81fa6bbcc7daca38517da1f347de91d70db6a02f (patch)
treea923aa765b8d171323a1c5dac6ffb6d68f18bf6f /Tests
parentc9b0e1da5cf449ad54f873bc2b4d45df9197efb5 (diff)
parent32242affea45eb3c3ffa2691657e970eaac49799 (diff)
downloadCMake-81fa6bbcc7daca38517da1f347de91d70db6a02f.zip
CMake-81fa6bbcc7daca38517da1f347de91d70db6a02f.tar.gz
CMake-81fa6bbcc7daca38517da1f347de91d70db6a02f.tar.bz2
Merge topic 'ctest-show-labels'
32242af Added CTest command --print-labels
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 5383bda..8e8d0ca 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1315,6 +1315,11 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
--output-log "${CMake_BINARY_DIR}/Tests/CTestTestParallel/testOutput.log"
)
+ ADD_TEST(CTestTestPrintLabels ${CMAKE_CTEST_COMMAND} --print-labels)
+ SET_TESTS_PROPERTIES(CTestTestPrintLabels PROPERTIES LABELS "Label1;Label2")
+ SET_TESTS_PROPERTIES(CTestTestPrintLabels PROPERTIES PASS_REGULAR_EXPRESSION
+ "All Labels:.* Label1.* Label2")
+
CONFIGURE_FILE(
"${CMake_SOURCE_DIR}/Tests/CTestTestResourceLock/test.cmake.in"
"${CMake_BINARY_DIR}/Tests/CTestTestResourceLock/test.cmake"