diff options
author | Brad King <brad.king@kitware.com> | 2009-01-12 14:11:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-01-12 14:11:29 (GMT) |
commit | cccac773cea0d724474a441a2e205cdb2d7193de (patch) | |
tree | 7c9e24087bf1fa8de084a6b7d9fd729829eb51ce /Source/cmCTest.cxx | |
parent | ae2c4143d288624b6703085602ecee2289b3ee27 (diff) | |
download | CMake-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.cxx | 3 |
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" |