[Cdash] Fwd: Dart2 to CDash migration

THE HIGHHAT thehighhat at gmail.com
Wed May 7 20:45:01 UTC 2008

>  You should use HTTP PUT to submit.php?project=yourprojectname to submit the
 > XML files to CDash directly.
 >  Let us know if that doesn't work,

 Not sure what I am doing wrong.  Wrote a snippet of perl using
 libwww-perl to do this....


 # load www components
 use LWP;

 # create user agent
 $ua = LWP::UserAgent->new;

 # create new request
 $req = HTTP::Request->new( PUT =>
 'http://hostname/CDash/submit.php?project=myProject' );
 $req->content( '<?xml version=1.0 encoding=utf-8 ?><DartSubmission
 version=2.0 createdby=Tester><Site>workstation</Site><BuildName>myBuild</BuildName><Track>Continuous</Track><Test><Name>test1</Name><Status>Passed</Status><Measurement
 name=Message type=text/string>correct
 result</Measurement></Test></DartSubmission>' );

 # send request to server
 $res = $ua->request($req);

 # display results
 if ($res->is_success)
  print $res->content;
  print $res->status_line, "\n";

 Couple things happen.  Error message

  Cannot open file (backup/myProject____Other.xml)


  Cannot write file /var/www/html/CDash/rss/SubmissionRSSmyProject.xml

 CDash is on RHEL5 with all req'd software installed and mysqld running.

More information about the CDash mailing list