fanquake
commented at 1:17 pm on May 27, 2021:
member
Less setup/overhead for tests that don’t need it. Some naive bench-marking would suggest that a full test_bitcoin run is a few % faster after this change.
Tests which don’t need the BasicTestingSetup can’t accidentally end up depending on it somehow.
Already the case in at least the scheduler and block_filter tests.
This adds missing includes, but more significant is the removal of setup_common.h from tests where it isn’t needed. This saves recompiling those tests when changes are made in the header.
fanquake added the label
Tests
on May 27, 2021
practicalswift
commented at 9:23 pm on May 27, 2021:
contributor
Concept ACK
fanquake force-pushed
on May 28, 2021
fanquake force-pushed
on May 28, 2021
test: remove BasicTestingSetup from allocator unit tests883a5c7d02
test: remove BasicTestingSetup from amount unit tests05590651a0
test: remove BasicTestingSetup from arith_uint256 unit tests4c389ba04b
test: remove BasicTestingSetup from base32 unit testsfd144f6426
test: remove BasicTestingSetup from base64 unit testsf4dcbe4498
test: remove BasicTestingSetup from bech32 unit testsa13dc24831
test: remove BasicTestingSetup from bswap unit tests6d3b78c0e2
test: remove BasicTestingSetup from compilerbug unit tests39cec22935
test: remove BasicTestingSetup from hash unit testscd5bc4b470
test: remove BasicTestingSetup from merkleblock tests3974c962b6
test: remove BasicTestingSetup from policy_fee unit tests57ba949ef5
test: remove BasicTestingSetup from reverse_lock unit tests1aee83421f
test: remove BasicTestingSetup from sync unit testsef8bb0473b
test: remove BasicTestingSetup from torcontrol unit testsc0497a4928
test: remove BasicTestingSetup from uint256 unit testsb53d3c1b1f
test: remove BasicTestingSetup from util_threadnames unit tests6c3fcd5591
fanquake force-pushed
on May 28, 2021
practicalswift
commented at 3:13 pm on May 28, 2021:
contributor
theStack
commented at 3:59 pm on May 28, 2021:
member
Concept ACK
laanwj
commented at 2:44 pm on June 2, 2021:
member
ACK6c3fcd5591eb9947f35483014ecb0d8ab217b780
laanwj merged this
on Jun 2, 2021
laanwj closed this
on Jun 2, 2021
fanquake deleted the branch
on Jun 3, 2021
MarcoFalke
commented at 6:17 am on June 3, 2021:
member
Nice.
In the future we could consider removing BOOST_FIXTURE_TEST_SUITE completely and letting the tests pick their specific modules that they need from the node setup.
sidhujag referenced this in commit
55bb627402
on Jun 3, 2021
gwillen referenced this in commit
e0b40dae0d
on Jun 1, 2022
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-03-31 12:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me