summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestHandlerCommand.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/CTest/cmCTestHandlerCommand.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/CTest/cmCTestHandlerCommand.cxx')
-rw-r--r--Source/CTest/cmCTestHandlerCommand.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestHandlerCommand.cxx b/Source/CTest/cmCTestHandlerCommand.cxx
index e4ae832..1175879 100644
--- a/Source/CTest/cmCTestHandlerCommand.cxx
+++ b/Source/CTest/cmCTestHandlerCommand.cxx
@@ -33,6 +33,7 @@ cmCTestHandlerCommand::cmCTestHandlerCommand()
this->Arguments[ct_BUILD] = "BUILD";
this->Arguments[ct_SUBMIT_INDEX] = "SUBMIT_INDEX";
this->Last = ct_LAST;
+ this->AppendXML = false;
}
bool cmCTestHandlerCommand
@@ -73,6 +74,8 @@ bool cmCTestHandlerCommand
return false;
}
+ handler->SetAppendXML(this->AppendXML);
+
handler->PopulateCustomVectors(this->Makefile);
if ( this->Values[ct_BUILD] )
{
@@ -143,6 +146,14 @@ bool cmCTestHandlerCommand
//----------------------------------------------------------------------------
bool cmCTestHandlerCommand::CheckArgumentKeyword(std::string const& arg)
{
+ // Look for non-value arguments common to all commands.
+ if(arg == "APPEND")
+ {
+ this->ArgumentDoing = ArgumentDoingNone;
+ this->AppendXML = true;
+ return true;
+ }
+
// Check for a keyword in our argument/value table.
for(unsigned int k=0; k < this->Arguments.size(); ++k)
{