summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-01-12 14:11:29 (GMT)
committerBrad King <brad.king@kitware.com>2009-01-12 14:11:29 (GMT)
commitcccac773cea0d724474a441a2e205cdb2d7193de (patch)
tree7c9e24087bf1fa8de084a6b7d9fd729829eb51ce /Source/cmCTest.cxx
parentae2c4143d288624b6703085602ecee2289b3ee27 (diff)
downloadCMake-cccac773cea0d724474a441a2e205cdb2d7193de.zip
CMake-cccac773cea0d724474a441a2e205cdb2d7193de.tar.gz
CMake-cccac773cea0d724474a441a2e205cdb2d7193de.tar.bz2
ENH: Teach ctest_* to create appending XML files
This adds an APPEND option to the ctest_* commands which tells them to put the Append="true" attribute in the Site element of their XML file.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 6a5fc39..9567033 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -1269,7 +1269,7 @@ int cmCTest::RunTest(std::vector<const char*> argv,
}
//----------------------------------------------------------------------
-void cmCTest::StartXML(std::ostream& ostr)
+void cmCTest::StartXML(std::ostream& ostr, bool append)
{
if(this->CurrentTag.empty())
{
@@ -1289,6 +1289,7 @@ void cmCTest::StartXML(std::ostream& ostr)
<< this->GetTestModelString() << "\"\n\tName=\""
<< this->GetCTestConfiguration("Site") << "\"\n\tGenerator=\"ctest"
<< cmVersion::GetCMakeVersion() << "\"\n"
+ << (append? "\tAppend=\"true\"\n":"")
<< "\tOSName=\"" << info.GetOSName() << "\"\n"
<< "\tHostname=\"" << info.GetHostname() << "\"\n"
<< "\tOSRelease=\"" << info.GetOSRelease() << "\"\n"