[CMake] SOLVED Scripting Ctest for dashboard submision

Alexandre GOUAILLARD hanfei at caltech.edu
Wed May 9 21:15:04 EDT 2007


Hi guys,

Comparing the output of --debug, I realyzed that the code is skipping the
TAG generation part if you chose to send results using XML and do not give a
time for the nightly to run.

It seems quit strange to me, as one might as well send
experimental/continuous/... build results through XML, but that's the way
it's coded (even in the actual CVS code):

In cmCTest::Initialize(...)
(
   If ( this->ProduceXML )
   {
      [...]
   
      If ( this->GetCTestConfiguration("NightlyStartTime").empty() )
      {
         [...]
         Return 0;
      }
   }
   // tag generation code follows
}

A quick workaround is to add the following line in the DartConfig.cmake:
SET (NIGHTLY_START_TIME "00:00:00 MET").

It's working for me now.

Alex.


On 5/9/07 4:08 PM, "Trevor Kellaway" <tkellaway at asl-electronics.co.uk>
wrote:

> Alex,
> 
>> Unfortunatly, everything goes fine except the submission
>> part. The /<binary-tree>/Testing/ folder is created at the
>> configuration time, but the intermediate directory is not
>> created and thus, the xml files are not present when Ctest
>> try to send them.
> 
> Which intermediate directory? Please give us an example.
> 
> As a workaround, you can get your CMake script to create any directories
> at configure time with:
> 
>  FILE (MAKE_DIRECTORY my_dir)
> 
>  - TrevK
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake




More information about the CMake mailing list