[Dart] need one (or two) ctest features
Andy Cedilnik
andy.cedilnik at kitware.com
Mon May 15 08:14:51 EDT 2006
Hi Alex,
The way CTest works is it parses standard output and standard error
independently. Once it has enough output or error for the full line, it
displays it. This is why sometimes you see the error or warning before
or after the output lines.
The second thing is the way the context is handled. If the previous line
is also warning or error, it is not displayed. Otherwise up to 5
previous and following lines are displayed.
In Testing/Temporary, there is full build output, so you can see it by hand.
Andy
Alexander Neundorf wrote:
>Hi,
>
>
>
>>Von: "Jim Miller" <millerjv at gmail.com>
>>
>>Alex,
>>
>>Can you provide some more information on the issue you are having with
>>
>>
>the
>
>
>>logs?
>>
>>I believe CTest is capturing stdout and stderr as two separate "logs".
>>
>>
>I
>
>
>>was just looking
>>through that code the other day and it appears to create a separate
>>
>>
>thread
>
>
>>to read each
>>log to avoid blocking issues.
>>
>>When the logs are sent to Dart, each error/warning is sent as three
>>packets
>>of information:
>>the line of the log with the error, a block of the log immediately
>>
>>
>before
>
>
>>the error, and a
>>block of the log immediately after the error. The presentation of the
>>build
>>information
>>then separates errors and warnings presentations.
>>
>>Are errors and warnings appearing out of order?
>>
>>I do not know what happens to the logs if you do a parallel make.
>>Information conceivably
>>could be jumbled there...
>>
>>
>
>
>Here are some problematic examples:
>
>No context at all:
>
>Error Build Log Line 14197
> File: firmware/exp/display/testfunctions.cpp Line: 123
>/.../xscale/firmware/exp/display/testfunctions.cpp:123: error:
>`IO_SP3EDP' undeclared (first use this function)
>
>----------------
>
>No log output before the error:
>
>Error Build Log Line 681
> File: Unknown Line: Unknown
>objcopy: error: the input file 'egui1' is empty
>gmake[6]: [firmware/exp/gui1/egui1] Error 1 (ignored)
>objcopy: 'egui1': No such file
>
>-----------------------
>
>There were also some messages where the error from a previous link
>command appeared much later in the output, i.e. somewhere between output
>when the next source files were compiled. Unfortunately I can't find them
>anymore, because I can't find the dahsboard page from friday anymore :-/
>When clicking on "next day" on thursday it takes to today, monday. Hmm.
>
>Bye
>Alex
>
>
>
>
--
Andy Cedilnik
Kitware Inc.
More information about the Dart
mailing list