diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-04-01 19:57:55 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-04-01 19:57:55 (GMT) |
commit | 7acfc4dc3cd8c5865ff55ed94e210776cff6876b (patch) | |
tree | f68de1f9e3885b48f37857dfaf3b5120ca93072d /Source/cmCTest.cxx | |
parent | eca18a2e9fcd9a33dce6d87bcca86de236598ae1 (diff) | |
download | CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.zip CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.tar.gz CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.tar.bz2 |
ENH: Start adding support for CTest testfiles
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index e8e16a2..ed28560 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -234,6 +234,7 @@ cmCTest::cmCTest() m_InteractiveDebugMode = true; m_TimeOut = 0; m_CompressXMLFiles = false; + m_CTestConfigFile = ""; int cc; for ( cc=0; cc < cmCTest::LAST_TEST; cc ++ ) { @@ -370,7 +371,15 @@ int cmCTest::Initialize(const char* binary_dir) bool cmCTest::UpdateCTestConfiguration() { - std::string fileName = m_BinaryDir + "/DartConfiguration.tcl"; + std::string fileName = m_CTestConfigFile; + if ( fileName.empty() ) + { + fileName = m_BinaryDir + "/DartConfiguration.tcl"; + if ( !cmSystemTools::FileExists(fileName.c_str()) ) + { + fileName = m_BinaryDir + "/CTestConfiguration.tcl"; + } + } if ( !cmSystemTools::FileExists(fileName.c_str()) ) { std::cerr << "Cannot find file: " << fileName.c_str() << std::endl; @@ -1221,6 +1230,12 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output) for(unsigned int i=1; i < args.size(); ++i) { std::string arg = args[i]; + if(arg.find("--dart-config",0) == 0 && i < args.size() - 1) + { + i++; + this->m_CTestConfigFile= args[i]; + } + if(arg.find("-C",0) == 0 && i < args.size() - 1) { i++; |