|
Boost-Build : |
Subject: Re: [Boost-build] [boost-build] testing.unit-test: hide stdout and display only on error?
From: Steve Lorimer (steve.lorimer_at_[hidden])
Date: 2015-09-29 11:19:33
Never mind, I RT'd the FM
Using the `run` rule works as I want:
import testing ;
run
[ glob *.cpp ]
..//strategy
/cay/test
: : : <testing.launcher>"valgrind --leak-check=full --track-origins=yes
--error-exitcode=1 --quiet"
: eos-strategy-testss
;
On 29 September 2015 at 10:09, Steve Lorimer <steve.lorimer_at_[hidden]>
wrote:
> I am using boost-test for my unit tests.
>
> Typical unit test jamfile looks something like this:
>
> import testing ;
>
> unit-test eos-strategy-tests
> : [ glob *.cpp ]
> ..//strategy
> /cay/test
> : <testing.launcher>"valgrind --leak-check=full --track-origins=yes
> --error-exitcode=1 --quiet"
> ;
>
>
> When building, everything written to stdout when running the tests is
> displayed in the build output.
>
> I would like to configure it so that stdout is written to a file, and on a
> test failure, cat the file.
>
> Is this possible?
>
> TIA
> Steve
>
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk