Skip to content

Commit 6f78f2a

Browse files
committed
tests: add curated bitcoin core test set
After analyzing countless Bitcoin Core tests from test/functional folder, invariants were picked for corepc such that if a particular assertion failed, that means corepc has a bug. The tests are complementary and do not repeat or collide with existing corepc integration tests. Identical test copies from core proved unproductive, extense and tested much more than necessary for corepc. All existing tests are derivations centered around checking corepc honors a particular invariant. Optional fields were specially targeted to prevent absence failures that into_model() conversions failed to catch. Some setups exercise previously untested fields.
1 parent fc26eaa commit 6f78f2a

8 files changed

Lines changed: 1300 additions & 0 deletions

File tree

integration_test/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ alias test28='BITCOIND_EXE=/opt/bitcoin-28.2/bin/bitcoind cargo test --features=
3333
alias test29='BITCOIND_EXE=/opt/bitcoin-29.0/bin/bitcoind cargo test --features=29_0'
3434
alias test30='BITCOIND_EXE=/opt/bitcoin-30.2/bin/bitcoind cargo test --features=30_2'
3535
```
36+
37+
## Bitcoin Core Tests
38+
39+
Tests derived from Bitcoin Core's `test/functional/` folder live in
40+
`tests/` alongside the modelled tests, with a `_core` filename suffix.

0 commit comments

Comments
 (0)