summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-02-11 02:52:01 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-02-11 02:52:01 (GMT)
commit2756c05b60ef7bc230606813b0155e0e7f1a38df (patch)
tree6cfb0b4cf656da320b66e50791dc36a8e8c4cba5 /Source/ctest.cxx
parentb04e32c642e4cdda0352a3fea7159cdadeb0f846 (diff)
downloadCMake-2756c05b60ef7bc230606813b0155e0e7f1a38df.zip
CMake-2756c05b60ef7bc230606813b0155e0e7f1a38df.tar.gz
CMake-2756c05b60ef7bc230606813b0155e0e7f1a38df.tar.bz2
Fix date issues with different models
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx19
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;