summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestTestCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-02-10 14:24:24 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2009-02-10 14:24:24 -0500
commit4e710a9ebe0ba2bb1b61018469bd981b138e584d (patch)
tree02fd27ca753aa63f6637d9a4dc2fd1a8524a71cd /Source/CTest/cmCTestTestCommand.cxx
parent70363cbf8f24e3cb7b340095130777ccf1a16ca3 (diff)
downloadcmake-4e710a9ebe0ba2bb1b61018469bd981b138e584d.tar.gz
ENH: add the ability to run tests by labels
Diffstat (limited to 'Source/CTest/cmCTestTestCommand.cxx')
-rw-r--r--Source/CTest/cmCTestTestCommand.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx
index b6f298ad03..3efb39baa0 100644
--- a/Source/CTest/cmCTestTestCommand.cxx
+++ b/Source/CTest/cmCTestTestCommand.cxx
@@ -26,6 +26,8 @@ cmCTestTestCommand::cmCTestTestCommand()
this->Arguments[ctt_STRIDE] = "STRIDE";
this->Arguments[ctt_EXCLUDE] = "EXCLUDE";
this->Arguments[ctt_INCLUDE] = "INCLUDE";
+ this->Arguments[ctt_EXCLUDE_LABEL] = "EXCLUDE_LABEL";
+ this->Arguments[ctt_INCLUDE_LABEL] = "INCLUDE_LABEL";
this->Arguments[ctt_LAST] = 0;
this->Last = ctt_LAST;
}
@@ -78,6 +80,16 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler()
{
handler->SetOption("IncludeRegularExpression", this->Values[ctt_INCLUDE]);
}
+ if(this->Values[ctt_EXCLUDE_LABEL])
+ {
+ handler->SetOption("ExcludeLabelRegularExpression",
+ this->Values[ctt_EXCLUDE_LABEL]);
+ }
+ if(this->Values[ctt_INCLUDE_LABEL])
+ {
+ handler->SetOption("LabelRegularExpression",
+ this->Values[ctt_INCLUDE_LABEL]);
+ }
return handler;
}