summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestLabelRegExp
diff options
context:
space:
mode:
authorAdriaan de Groot <groot@kde.org>2021-03-20 05:53:14 (GMT)
committerCraig Scott <craig.scott@crascit.com>2021-03-28 01:04:05 (GMT)
commit44ad3f0b7f7e0aaf96e5cfd672d07a70e1b76410 (patch)
treea6da9b5be6095fffcb7072ae6cf040d7c54ba2e5 /Tests/CTestTestLabelRegExp
parent61fd90b90c9dfec154aee7fb4d97574921e651d1 (diff)
downloadCMake-44ad3f0b7f7e0aaf96e5cfd672d07a70e1b76410.zip
CMake-44ad3f0b7f7e0aaf96e5cfd672d07a70e1b76410.tar.gz
CMake-44ad3f0b7f7e0aaf96e5cfd672d07a70e1b76410.tar.bz2
ctest: Support multiple -L and -LE options to mean "AND"
Fixes: #21087
Diffstat (limited to 'Tests/CTestTestLabelRegExp')
-rw-r--r--Tests/CTestTestLabelRegExp/test.cmake.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CTestTestLabelRegExp/test.cmake.in b/Tests/CTestTestLabelRegExp/test.cmake.in
index 5c0c9d7..dd40c3b 100644
--- a/Tests/CTestTestLabelRegExp/test.cmake.in
+++ b/Tests/CTestTestLabelRegExp/test.cmake.in
@@ -27,11 +27,15 @@ expect_test_list("test1.*test3.*Total Tests: 2" --label-regex foo)
expect_test_list("test2.*test3.*Total Tests: 2" --label-regex bar)
expect_test_list("test1.*test2.*test3.*Total Tests: 3" --label-regex foo|bar)
expect_test_list("Total Tests: 0" --label-regex baz)
+expect_test_list("Total Tests: 0" --label-regex foo --label-regex baz)
+expect_test_list("test3.*Total Tests: 1" --label-regex foo --label-regex bar)
expect_test_list("test2.*Total Tests: 1" --label-exclude foo)
expect_test_list("test1.*Total Tests: 1" --label-exclude bar)
expect_test_list("Total Tests: 0" --label-exclude foo|bar)
expect_test_list("test1.*test2.*test3.*Total Tests: 3" --label-exclude baz)
+expect_test_list("test1.*test2.*Total Tests: 2" --label-exclude foo --label-exclude bar)
+expect_test_list("test1.*test2.*test3.*Total Tests: 3" --label-exclude foo --label-exclude baz)
expect_test_list("test1.*Total Tests: 1" --label-regex foo --label-exclude bar)
expect_test_list("test2.*Total Tests: 1" --label-regex bar --label-exclude foo)