diff options
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx index cb8bc20..256c255 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -60,6 +60,25 @@ int main (int argc, char *argv[]) inst.SetTest(args[i+1].c_str()); } + if( ( arg.find("-M",0) == 0 || arg.find("--test-model",0) == 0 ) && + (i < args.size() -1) ) + { + std::string& str = args[i+1]; + if ( str == "NIGHTLY" || str == "nightly" || str == "Nightly" ) + { + inst.SetTestModel(cmCTest::NIGHTLY); + } + else if ( str == "CONTINUOUS" || str == "continuous" || + str == "Continuous" ) + { + inst.SetTestModel(cmCTest::CONTINUOUS); + } + else + { + inst.SetTestModel(cmCTest::EXPERIMENTAL); + } + } + if(arg.find("-R",0) == 0 && i < args.size() - 1) { inst.m_UseIncludeRegExp = true; |