[Cdash] not using cmake/ctest hoe to add build error?

Felix Klock pfdartdash at pnkfx.org
Fri Jan 9 14:20:11 UTC 2009


Jochen-

On Thu, Jan 8, 2009 at 3:29 PM, Jochen Thäder
<thaeder at kip.uni-heidelberg.de> wrote:
> Maybe I missed something, but how do I insert errors or warnings? If I put
> something in the Log tag, where does it show up?

I had to do a bit of trial-and-error to get my own xml-file generation
working with CDash.

To generate warnings, you use the <Warning> tag.  In our xml-file, I
see examples of warnings appearing as subforms of a <Build> form, like
so:

 <Build>
  <StartDateTime>Fri Jan  9 07:09:04 EST 2009</StartDateTime>
  <BuildCommand>cat
/home/henchman/larcenytest/larceny-native-Nightly-2009-01-09/temp.scm;
larceny --  /home/henchman/larcenytest/larceny-native-Nightly-2009-01-09/temp.scm;
echo | ./larceny.bin -stopcopy -- src/Build/iasn-larceny-heap.sch;
echo | ./larceny.bin -stopcopy -- src/Build/iasn-twobit-heap.sch; echo
| ./larceny -- src/Build/compile-standard-libraries.sch ; du -skh .;
df -kh</BuildCommand>
  <Warning>
   <BuildLogLine>16</BuildLogLine>
   <Text>WARNING from macro expander:</Text>
   <PreContext></PreContext>
   <PostContext></PostContext>
   <RepeatCount>0</RepeatCount>
  </Warning>
  ...
 </Build>

----

As for where something in the <Log> tag shows up, I also find that a
bit mystifying.  From what I can tell, the <Log> form is displayed
when you submit it as a subform of the <Configure> form.  But it does
not seem to show up when you submit it as a subform of the <Build>
form.  (Which is unfortunate; for our project, the output during a
build is often more "interesting" than the output during configure.)

----

disclaimer: I reverse-engineered the format and made our scripts for
generated our XML files months before the CDash:XML page was posted to
the Wiki; so it could be that I went wrong somewhere along the way.

----

Happy to provide more info if you like!

-Felix



More information about the CDash mailing list