File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments