24 Jun
2019
24 Jun
'19
12:02 p.m.
AMDG On 6/24/19 5:36 AM, James E. King III via Boost wrote:
Currently b2 only shows output when a test fails unexpectedly. If I want to build and run a test and see the stdout from the test all in one command, is there a b2 option that would do that? For example, the output from predef's "info_as_cpp" test is useful, and I'd like to have a single command line that builds it, runs it, and shows stdout. I don't see a way to do this with b2, even with the -d+n flags.
It's controlled by testing.jam and is unaffected by -d. The output for each test is written to a file. (e.g. .../info_as_cpp.run)
I can do it this way, but it's fragile:
$(b2 -a -ox info_as_cpp | grep 'gcc.link' | cut -d' ' -f2)
In Christ, Steven Watanabe