diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-28 16:31:02 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-28 16:31:02 (GMT) |
commit | 7479bfce7b02cbc675951b7d6687980f63213121 (patch) | |
tree | f6da1f654c730b5eaebed96063e896f86d8bfb4c /Source/cmCTest.cxx | |
parent | d2faa2273218761b2f65f4db327cb64c09b637ba (diff) | |
download | CMake-7479bfce7b02cbc675951b7d6687980f63213121.zip CMake-7479bfce7b02cbc675951b7d6687980f63213121.tar.gz CMake-7479bfce7b02cbc675951b7d6687980f63213121.tar.bz2 |
Add configure step
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index bcc04a6..7e2e0be 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -803,6 +803,13 @@ int cmCTest::ConfigureDirectory() bool res = true; if ( !m_ShowOnly ) { + std::ofstream os; + if ( !this->OpenOutputFile("", "Configure.xml", os) ) + { + std::cout << "Cannot open log file" << std::endl; + } + std::string start_time = ::CurrentTime(); + res = cmSystemTools::RunCommand(cCommand.c_str(), output, retVal, buildDirectory.c_str(), m_Verbose); @@ -812,6 +819,28 @@ int cmCTest::ConfigureDirectory() ofs << output; ofs.close(); } + + if ( os ) + { + os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + << "<Site BuildName=\"" << m_DartConfiguration["BuildName"] + << "\" BuildStamp=\"" << m_CurrentTag << "-" + << this->GetTestModelString() << "\" Name=\"" + << m_DartConfiguration["Site"] << "\">\n" + << "<Configure>\n" + << "\t<StartDateTime>" << start_time << "</StartDateTime>" << std::endl; + if ( retVal ) + { + os << retVal; + } + os << "<ConfigureCommand>" << cCommand.c_str() << "</ConfigureCommand>" << std::endl; + //std::cout << "End" << std::endl; + os << "<Log>" << output << "</Log>" << std::endl; + std::string end_time = ::CurrentTime(); + os << "\t<EndDateTime>" << end_time << "</EndDateTime>\n" + << "</Configure>\n" + << "</site>" << std::endl; + } } else { @@ -1722,6 +1751,10 @@ int cmCTest::SubmitResults() { files.push_back("Update.xml"); } + if ( this->CTestFileExists("Configure.xml") ) + { + files.push_back("Configure.xml"); + } if ( this->CTestFileExists("Build.xml") ) { files.push_back("Build.xml"); |