Skip to content

Commit 28238e0

Browse files
authored
Merge pull request #159 from tcharding/05-12-build-hangs
Document local integration test strategy
2 parents ff0258e + f4399a0 commit 28238e0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

integration_test/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Integration testing
2+
3+
This crate is used to run tests against all the supported versions of
4+
Core. It runs Core by using `corepc-node` with the `download` feature
5+
enabled. However `node` allows setting the environment variable
6+
`BITCOIND_EXE` to override downloading the Core executable. E.g.
7+
8+
`BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=28_0`
9+
10+
## Shell alias' for the impatient
11+
12+
I have all the Core versions on my machine e.g., `/opt/bitcoin-28.0`
13+
then I use the following shell alias' to run tests
14+
15+
```bash
16+
alias test17='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=0_17_2'
17+
alias test18='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=0_18_1'
18+
alias test19='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=0_19_1'
19+
alias test20='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=0_20_2'
20+
alias test21='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=0_21_2'
21+
alias test22='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=22_1'
22+
alias test23='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=23_2'
23+
alias test24='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=24_2'
24+
alias test25='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=25_2'
25+
alias test26='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=26_2'
26+
alias test27='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=27_2'
27+
alias test28='BITCOIND_EXE=/opt/bitcoin-28.0/bin/bitcoind cargo test --features=28_0'
28+
```

0 commit comments

Comments
 (0)