HomePhabricator

Interleave the debug.log with the unit test log when run via ninja

Description

Interleave the debug.log with the unit test log when run via ninja

Summary:
This diff adds the printtoconsole=1 option to the unit tests that are run via ninja.
Currently only boost content is part of the resulting log, which can be not enough to properly debug a failure. Now upon failure the output is much more verbose, but also more useful.

Test Plan:
Edit any test with BOOST_CHECK(false) and run that test via ninja:

ninja check-bitcoin-<test>

Check that stdout and test/log/<test_name>.log contain the debug.log content.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D16794

Details

Provenance
FabienAuthored on Sep 20 2024, 09:23
FabienPushed on Sep 20 2024, 11:36
Reviewer
Restricted Project
Differential Revision
D16794: Interleave the debug.log with the unit test log when run via ninja
Parents
rABCaaff0e599d1b: [chronik-client] Support history, confirmedTxs, unconfirmedTxs for plugins…
Branches
Unknown
Tags
Unknown