[Cmake-commits] [cmake-commits] zach.mullen committed cmCTest.cxx 1.380 1.381 cmCTest.h 1.126 1.127

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Dec 11 14:10:39 EST 2009


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

Modified Files:
	cmCTest.cxx cmCTest.h 
Log Message:
Added a "-http1.0" option to ctest to make it submit using curl's http 1.0 option.  Also added parsing of html reponse output to determine whether errors or warnings were sent in response from the server.  If errors or warnings occurred, the response is output to stdout, and the "submission successful" message has been changed to accurately reflect whether or not warnings or errors were returned with the response.


Index: cmCTest.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCTest.h,v
retrieving revision 1.126
retrieving revision 1.127
diff -C 2 -d -r1.126 -r1.127
*** cmCTest.h	30 Nov 2009 21:08:11 -0000	1.126
--- cmCTest.h	11 Dec 2009 19:10:37 -0000	1.127
***************
*** 194,197 ****
--- 194,199 ----
    bool GetShowOnly();
  
+   bool ShouldUseHTTP10() { return this->UseHTTP10; }
+ 
    //Used for parallel ctest job scheduling
    std::string GetScheduleType() { return this->ScheduleType; }
***************
*** 385,389 ****
    bool ProduceXML;
    bool LabelSummary;
! 
    bool Failover;
    bool BatchJobs;
--- 387,391 ----
    bool ProduceXML;
    bool LabelSummary;
!   bool UseHTTP10;
    bool Failover;
    bool BatchJobs;

Index: cmCTest.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCTest.cxx,v
retrieving revision 1.380
retrieving revision 1.381
diff -C 2 -d -r1.380 -r1.381
*** cmCTest.cxx	30 Nov 2009 21:08:11 -0000	1.380
--- cmCTest.cxx	11 Dec 2009 19:10:36 -0000	1.381
***************
*** 221,224 ****
--- 221,225 ----
    this->ShowOnly               = false;
    this->RunConfigurationScript = false;
+   this->UseHTTP10              = false;
    this->TestModel              = cmCTest::EXPERIMENTAL;
    this->MaxTestNameWidth       = 30;
***************
*** 1705,1709 ****
      }
  
!   if(this->CheckArgument(arg, "--timeout")  && i < args.size() - 1)
      {
      i++;
--- 1706,1715 ----
      }
  
!   if(this->CheckArgument(arg, "--http1.0"))
!     {
!     this->UseHTTP10 = true;
!     }
! 
!   if(this->CheckArgument(arg, "--timeout") && i < args.size() - 1)
      {
      i++;



More information about the Cmake-commits mailing list