Boost logo

Boost-Build :

Subject: [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:09:16

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 ]
: <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?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at