Add configure step

This commit is contained in:
Andy Cedilnik 2003-02-28 11:31:02 -05:00
parent d2faa22732
commit 7479bfce7b
1 changed files with 33 additions and 0 deletions

View File

@ -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");