[CMake] How to make ctest not buffer its output?

Hugo Heden hugoheden at gmail.com
Fri Dec 5 11:55:55 EST 2008


2008/12/5 Hugo Heden <hugoheden at gmail.com>:
> 2008/12/5 Daniel Nelson <torham at connect2.com>:
>> Alexander Neundorf wrote:
>>>
>>> On Thursday 04 December 2008, Hugo Heden wrote:
>>>>
>>>> Good day all,
>>>>
>>>> I use ctest --build-and-test to do some stuff that takes a long time.
>>>> It seems that ctest buffers the output of its subcommands so that
>>>> nothing is written (to the "terminal") until at the end. This is a
>>>> little unconvenient -- as a human I feel more comfortable actually
>>>> seeing that "something is happening".
>>>>
>>>> Is there a way I can force ctest to not buffer the output of
>>>> subcommands, but rather just flush it?
>>>
>>> Does ctest -VV do what you want ?
>>> It switches to "extra verbose" mode.
>>>
>
> No, ctest still buffers the output until the whole build-and-test
> process finishes.
>
>>
>> I submitted this some time ago as bug 0005814.  I don't believe there is a
>> way to view the output until the test finishes.
>
> Ah, thank you. The bug is here: http://public.kitware.com/Bug/view.php?id=5814
>
> Yes, that reflects my issue exactly.
>

I added a little comment to support that bug report. Thanks Daniel.

Hugo Heden


More information about the CMake mailing list