@@ -26,24 +26,24 @@ export RUST_BACKTRACE=1
2626
2727# All steps in order, matching the original script flow
2828ALL_STEPS="
29- workspace- check
30- workspace-tests
31- ldk-upgrade-tests
32- workspace-member-checks
33- lightning-dnssec
34- lightning-block-sync-tests
35- lightning-transaction-sync-checks
36- lightning-transaction-sync-tests
37- lightning-persister-tests
38- lightning-custom-message-tests
39- lightning-backtrace
40- no-std-tests
41- c-bindings-tests
42- other -crate-specific
43- no-std-check
44- msrv-no-dev-deps-check
45- no-std-check -arm
46- cfg-flag-tests
29+ check-workspace
30+ test-workspace
31+ test- ldk-upgrade
32+ test- workspace-members
33+ test- lightning-dnssec
34+ test- lightning-block-sync
35+ check- lightning-transaction-sync
36+ test- lightning-transaction-sync
37+ test- lightning-persister
38+ test- lightning-custom-message
39+ test- lightning-backtrace
40+ test- no-std
41+ test- c-bindings
42+ test -crate-specific
43+ check- no-std
44+ check- msrv-no-dev-deps
45+ check- no-std-arm
46+ test- cfg-flags
4747"
4848
4949# If a step name is passed, run just that step. Otherwise run all.
@@ -58,39 +58,39 @@ WORKSPACE_MEMBERS=( $(cat Cargo.toml | tr '\n' '\r' | sed 's/\r //g' | tr '\r
5858for STEP in $STEPS_TO_RUN ; do
5959case " $STEP " in
6060
61- workspace- check)
61+ check-workspace )
6262echo -e " \n\nChecking the workspace, except lightning-transaction-sync."
6363cargo check --verbose --color always
6464;;
6565
66- workspace-tests )
66+ test-workspace )
6767echo -e " \n\nTesting the workspace, except lightning-transaction-sync."
6868cargo test --verbose --color always
6969;;
7070
71- ldk-upgrade-tests )
71+ test- ldk-upgrade)
7272echo -e " \n\nTesting upgrade from prior versions of LDK"
7373pushd lightning-tests
7474cargo test
7575popd
7676;;
7777
78- workspace-member-checks )
78+ test- workspace-members )
7979echo -e " \n\nChecking and building docs for all workspace members individually..."
8080for DIR in " ${WORKSPACE_MEMBERS[@]} " ; do
8181 cargo check -p " $DIR " --verbose --color always
8282 cargo doc -p " $DIR " --document-private-items
8383done
8484;;
8585
86- lightning-dnssec)
86+ test- lightning-dnssec)
8787echo -e " \n\nChecking and testing lightning with features"
8888cargo test -p lightning --verbose --color always --features dnssec
8989cargo check -p lightning --verbose --color always --features dnssec
9090cargo doc -p lightning --document-private-items --features dnssec
9191;;
9292
93- lightning-block-sync-tests )
93+ test- lightning-block-sync)
9494echo -e " \n\nChecking and testing Block Sync Clients with features"
9595
9696cargo test -p lightning-block-sync --verbose --color always --features rest-client
@@ -103,15 +103,15 @@ cargo test -p lightning-block-sync --verbose --color always --features rpc-clien
103103cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
104104;;
105105
106- lightning-transaction-sync-checks )
106+ check- lightning-transaction-sync)
107107echo -e " \n\nChecking Transaction Sync Clients with features."
108108cargo check -p lightning-transaction-sync --verbose --color always --features esplora-blocking
109109cargo check -p lightning-transaction-sync --verbose --color always --features esplora-async
110110cargo check -p lightning-transaction-sync --verbose --color always --features esplora-async-https
111111cargo check -p lightning-transaction-sync --verbose --color always --features electrum
112112;;
113113
114- lightning-transaction-sync-tests )
114+ test- lightning-transaction-sync)
115115if [ -z " $CI_ENV " ] && [[ -z " $BITCOIND_EXE " || -z " $ELECTRS_EXE " ]]; then
116116 echo -e " \n\nSkipping testing Transaction Sync Clients due to BITCOIND_EXE or ELECTRS_EXE being unset."
117117 cargo check -p lightning-transaction-sync --tests
@@ -124,25 +124,25 @@ else
124124fi
125125;;
126126
127- lightning-persister-tests )
127+ test- lightning-persister)
128128echo -e " \n\nChecking and testing lightning-persister with features"
129129cargo test -p lightning-persister --verbose --color always --features tokio
130130cargo check -p lightning-persister --verbose --color always --features tokio
131131cargo doc -p lightning-persister --document-private-items --features tokio
132132;;
133133
134- lightning-custom-message-tests )
134+ test- lightning-custom-message)
135135echo -e " \n\nTest Custom Message Macros"
136136cargo test -p lightning-custom-message --verbose --color always
137137[ " $CI_MINIMIZE_DISK_USAGE " != " " ] && cargo clean
138138;;
139139
140- lightning-backtrace)
140+ test- lightning-backtrace)
141141echo -e " \n\nTest backtrace-debug builds"
142142cargo test -p lightning --verbose --color always --features backtrace
143143;;
144144
145- no-std-tests )
145+ test- no-std)
146146echo -e " \n\nTesting no_std builds"
147147for DIR in lightning-invoice lightning-rapid-gossip-sync lightning-liquidity; do
148148 cargo test -p $DIR --verbose --color always --no-default-features
@@ -152,7 +152,7 @@ cargo test -p lightning --verbose --color always --no-default-features
152152cargo test -p lightning-background-processor --verbose --color always --no-default-features
153153;;
154154
155- c-bindings-tests )
155+ test- c-bindings)
156156echo -e " \n\nTesting c_bindings builds"
157157# Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
158158# disable doctests in `c_bindings` so we skip doctests entirely here.
@@ -169,7 +169,7 @@ RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning-background-proce
169169RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --verbose --color always --no-default-features --lib --bins --tests
170170;;
171171
172- other -crate-specific)
172+ test -crate-specific)
173173echo -e " \n\nTesting other crate-specific builds"
174174# Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
175175RUSTFLAGS=" $RUSTFLAGS --cfg=ldk_test_vectors" cargo test -p lightning --verbose --color always --no-default-features --features=std
@@ -178,7 +178,7 @@ RUSTFLAGS="$RUSTFLAGS --cfg=ldk_test_vectors" cargo test -p lightning --verbose
178178cargo test -p lightning-invoice --verbose --color always --no-default-features --features serde
179179;;
180180
181- no-std-check )
181+ check- no-std)
182182echo -e " \n\nTesting no_std build on a downstream no-std crate"
183183# check no-std compatibility across dependencies
184184pushd no-std-check
@@ -187,7 +187,7 @@ cargo check --verbose --color always
187187popd
188188;;
189189
190- msrv-no-dev-deps-check )
190+ check- msrv-no-dev-deps)
191191# Test that we can build downstream code with only the "release pins".
192192pushd msrv-no-dev-deps-check
193193PIN_RELEASE_DEPS
@@ -196,7 +196,7 @@ cargo check
196196popd
197197;;
198198
199- no-std-check -arm)
199+ check- no-std-arm)
200200if [ -f " $( which arm-none-eabi-gcc) " ]; then
201201 pushd no-std-check
202202 cargo build --target=thumbv7m-none-eabi
@@ -205,7 +205,7 @@ if [ -f "$(which arm-none-eabi-gcc)" ]; then
205205fi
206206;;
207207
208- cfg-flag-tests )
208+ test- cfg-flags )
209209echo -e " \n\nTest cfg-flag builds"
210210RUSTFLAGS=" --cfg=taproot" cargo test --verbose --color always -p lightning
211211[ " $CI_MINIMIZE_DISK_USAGE " != " " ] && cargo clean
0 commit comments