diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-02 17:57:25 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-02 17:57:25 (GMT) |
commit | bec9b174f5f4460c08e6899f62ef6406de7a3a30 (patch) | |
tree | 18b893965d4cadc25417cc285997670f56a36725 /Source/ctest.cxx | |
parent | d6b9c96739b38be482105695af6bfc3f50782792 (diff) | |
download | CMake-bec9b174f5f4460c08e6899f62ef6406de7a3a30.zip CMake-bec9b174f5f4460c08e6899f62ef6406de7a3a30.tar.gz CMake-bec9b174f5f4460c08e6899f62ef6406de7a3a30.tar.bz2 |
ENH: Fix some dart issues. Now it works fine without dart.
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 61 |
1 files changed, 60 insertions, 1 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx index 0152fab..1fe36a5 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -53,7 +53,66 @@ int main (int argc, char *argv[]) inst.m_ShowOnly = true; } - if( ( arg.find("-T",0) == 0 || arg.find("--dart-mode",0) == 0 ) && + if( arg.find("-D",0) == 0 && i < args.size() - 1 ) + { + inst.m_DartMode = true; + std::string arg = args[i+1]; + if ( arg == "Experimental" ) + { + inst.SetTestModel(cmCTest::EXPERIMENTAL); + inst.SetTest("Start"); + inst.SetTest("Configure"); + inst.SetTest("Build"); + inst.SetTest("Test"); + inst.SetTest("Coverage"); + inst.SetTest("Submit"); + } + else if ( arg == "Continuous" ) + { + inst.SetTestModel(cmCTest::CONTINUOUS); + inst.SetTest("Start"); + inst.SetTest("Update"); + inst.SetTest("Configure"); + inst.SetTest("Build"); + inst.SetTest("Test"); + inst.SetTest("Coverage"); + inst.SetTest("Submit"); + } + else if ( arg == "Nightly" ) + { + inst.SetTestModel(cmCTest::NIGHTLY); + inst.SetTest("Start"); + inst.SetTest("Update"); + inst.SetTest("Configure"); + inst.SetTest("Build"); + inst.SetTest("Test"); + inst.SetTest("Coverage"); + inst.SetTest("Submit"); + } + else if ( arg == "MemoryCheck" ) + { + inst.SetTestModel(cmCTest::EXPERIMENTAL); + inst.SetTest("Start"); + inst.SetTest("Configure"); + inst.SetTest("Build"); + inst.SetTest("Purify"); + inst.SetTest("Coverage"); + inst.SetTest("Submit"); + } + else if ( arg == "NightlyMemoryCheck" ) + { + inst.SetTestModel(cmCTest::NIGHTLY); + inst.SetTest("Start"); + inst.SetTest("Update"); + inst.SetTest("Configure"); + inst.SetTest("Build"); + inst.SetTest("Purify"); + inst.SetTest("Coverage"); + inst.SetTest("Submit"); + } + } + + if( ( arg.find("-T",0) == 0 ) && (i < args.size() -1) ) { inst.m_DartMode = true; |