diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-02-10 19:24:24 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-02-10 19:24:24 (GMT) |
commit | 4e710a9ebe0ba2bb1b61018469bd981b138e584d (patch) | |
tree | 02fd27ca753aa63f6637d9a4dc2fd1a8524a71cd /Source/CTest/cmCTestTestCommand.cxx | |
parent | 70363cbf8f24e3cb7b340095130777ccf1a16ca3 (diff) | |
download | CMake-4e710a9ebe0ba2bb1b61018469bd981b138e584d.zip CMake-4e710a9ebe0ba2bb1b61018469bd981b138e584d.tar.gz CMake-4e710a9ebe0ba2bb1b61018469bd981b138e584d.tar.bz2 |
ENH: add the ability to run tests by labels
Diffstat (limited to 'Source/CTest/cmCTestTestCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestCommand.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx index b6f298a..3efb39b 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; } |