From 7479bfce7b02cbc675951b7d6687980f63213121 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 28 Feb 2003 11:31:02 -0500 Subject: Add configure step --- Source/cmCTest.cxx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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 << "\n" + << "GetTestModelString() << "\" Name=\"" + << m_DartConfiguration["Site"] << "\">\n" + << "\n" + << "\t" << start_time << "" << std::endl; + if ( retVal ) + { + os << retVal; + } + os << "" << cCommand.c_str() << "" << std::endl; + //std::cout << "End" << std::endl; + os << "" << output << "" << std::endl; + std::string end_time = ::CurrentTime(); + os << "\t" << end_time << "\n" + << "\n" + << "" << 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"); -- cgit v0.12