diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-09-09 15:44:16 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-09-09 15:44:16 (GMT) |
commit | 6bc394c8e56af1618428fa03b541d9c222aef63e (patch) | |
tree | 9e96729ec96d21d67dee0edd881b373d2b25aaf0 /Source/CTest/cmCTestTestCommand.cxx | |
parent | acbe39ff7e3016638f5d45c0ae0f784a724d7fd2 (diff) | |
download | CMake-6bc394c8e56af1618428fa03b541d9c222aef63e.zip CMake-6bc394c8e56af1618428fa03b541d9c222aef63e.tar.gz CMake-6bc394c8e56af1618428fa03b541d9c222aef63e.tar.bz2 |
BUG: 0007569 add ability to do -R/-E in ctest_test command
Diffstat (limited to 'Source/CTest/cmCTestTestCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestCommand.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx index 4c962e9..b6f298a 100644 --- a/Source/CTest/cmCTestTestCommand.cxx +++ b/Source/CTest/cmCTestTestCommand.cxx @@ -24,6 +24,8 @@ cmCTestTestCommand::cmCTestTestCommand() this->Arguments[ctt_START] = "START"; this->Arguments[ctt_END] = "END"; this->Arguments[ctt_STRIDE] = "STRIDE"; + this->Arguments[ctt_EXCLUDE] = "EXCLUDE"; + this->Arguments[ctt_INCLUDE] = "INCLUDE"; this->Arguments[ctt_LAST] = 0; this->Last = ctt_LAST; } @@ -68,6 +70,14 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler() handler->SetOption("TestsToRunInformation", testsToRunString.str().c_str()); } + if(this->Values[ctt_EXCLUDE]) + { + handler->SetOption("ExcludeRegularExpression", this->Values[ctt_EXCLUDE]); + } + if(this->Values[ctt_INCLUDE]) + { + handler->SetOption("IncludeRegularExpression", this->Values[ctt_INCLUDE]); + } return handler; } |