summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-02-10 19:24:24 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-02-10 19:24:24 (GMT)
commit4e710a9ebe0ba2bb1b61018469bd981b138e584d (patch)
tree02fd27ca753aa63f6637d9a4dc2fd1a8524a71cd /Source/cmCTest.cxx
parent70363cbf8f24e3cb7b340095130777ccf1a16ca3 (diff)
downloadCMake-4e710a9ebe0ba2bb1b61018469bd981b138e584d.zip
CMake-4e710a9ebe0ba2bb1b61018469bd981b138e584d.tar.gz
CMake-4e710a9ebe0ba2bb1b61018469bd981b138e584d.tar.bz2
ENH: add the ability to run tests by labels
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 1b44226..70dba4d 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -1813,6 +1813,22 @@ void cmCTest::HandleCommandLineArguments(size_t &i,
this->GetHandler("memcheck")->
SetPersistentOption("IncludeRegularExpression", args[i].c_str());
}
+ if(this->CheckArgument(arg, "-L", "--label-regex") && i < args.size() - 1)
+ {
+ i++;
+ this->GetHandler("test")->
+ SetPersistentOption("LabelRegularExpression", args[i].c_str());
+ this->GetHandler("memcheck")->
+ SetPersistentOption("LabelRegularExpression", args[i].c_str());
+ }
+ if(this->CheckArgument(arg, "-LE", "--label-exclude") && i < args.size() - 1)
+ {
+ i++;
+ this->GetHandler("test")->
+ SetPersistentOption("ExcludeLabelRegularExpression", args[i].c_str());
+ this->GetHandler("memcheck")->
+ SetPersistentOption("ExcludeLabelRegularExpression", args[i].c_str());
+ }
if(this->CheckArgument(arg, "-E", "--exclude-regex") &&
i < args.size() - 1)