[Cmake-commits] [cmake-commits] king committed cmCTest.cxx 1.346 1.347 cmCTest.h 1.107 1.108

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Jan 12 09:11:31 EST 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv20133/Source

Modified Files:
	cmCTest.cxx cmCTest.h 
Log Message:
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.


Index: cmCTest.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCTest.h,v
retrieving revision 1.107
retrieving revision 1.108
diff -C 2 -d -r1.107 -r1.108
*** cmCTest.h	9 Jan 2009 17:32:52 -0000	1.107
--- cmCTest.h	12 Jan 2009 14:11:29 -0000	1.108
***************
*** 200,204 ****
  
    //! Start CTest XML output file
!   void StartXML(std::ostream& ostr);
  
    //! End CTest XML output file
--- 200,204 ----
  
    //! Start CTest XML output file
!   void StartXML(std::ostream& ostr, bool append);
  
    //! End CTest XML output file

Index: cmCTest.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCTest.cxx,v
retrieving revision 1.346
retrieving revision 1.347
diff -C 2 -d -r1.346 -r1.347
*** cmCTest.cxx	9 Jan 2009 21:44:19 -0000	1.346
--- cmCTest.cxx	12 Jan 2009 14:11:29 -0000	1.347
***************
*** 1270,1274 ****
  
  //----------------------------------------------------------------------
! void cmCTest::StartXML(std::ostream& ostr)
  {
    if(this->CurrentTag.empty())
--- 1270,1274 ----
  
  //----------------------------------------------------------------------
! void cmCTest::StartXML(std::ostream& ostr, bool append)
  {
    if(this->CurrentTag.empty())
***************
*** 1290,1293 ****
--- 1290,1294 ----
         << this->GetCTestConfiguration("Site") << "\"\n\tGenerator=\"ctest"
         << cmVersion::GetCMakeVersion()  << "\"\n"
+        << (append? "\tAppend=\"true\"\n":"")
         << "\tOSName=\"" << info.GetOSName() << "\"\n"
         << "\tHostname=\"" << info.GetHostname() << "\"\n"



More information about the Cmake-commits mailing list