@@ -75,25 +75,26 @@ grep '^max_level_' lightning/Cargo.toml | awk '{ print $1 }'| while read -r FEAT
75
75
done
76
76
77
77
echo -e " \n\nTesting no-std builds"
78
- for DIR in lightning-invoice lightning-background-processor lightning-rapid-gossip-sync; do
78
+ for DIR in lightning-invoice lightning-background-processor lightning-rapid-gossip-sync; do
79
79
cargo test -p $DIR --verbose --color always --no-default-features
80
- # check if there is a conflict between no-std and the c_bindings cfg
81
- RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features
82
80
done
83
81
84
- echo -e " \n\nTesting no-std flags in various combinations "
85
- for DIR in lightning ; do
86
- cargo test -p $DIR --verbose --color always --no-default-features --features no-std
87
- # check if there is a conflict between no-std and the default std feature
88
- cargo test -p $DIR --verbose --color always --features no-std
89
- done
82
+ cargo test -p lightning --verbose --color always --no-default-features --features no-std
83
+ # check if there is a conflict between no-std and the default std feature
84
+ cargo test -p lightning --verbose --color always --features no-std
85
+
86
+ echo -e " \n\nTesting c_bindings builds "
87
+ RUSTFLAGS= " $RUSTFLAGS --cfg=c_bindings " cargo test --verbose --color always
90
88
91
- for DIR in lightning; do
89
+ for DIR in lightning-invoice lightning-background-processor lightning-rapid-gossip-sync ; do
92
90
# check if there is a conflict between no-std and the c_bindings cfg
93
- RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std
91
+ RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features
94
92
done
95
- RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always
96
93
94
+ # check if there is a conflict between no-std and the c_bindings cfg
95
+ RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --verbose --color always --no-default-features --features=no-std
96
+
97
+ echo -e " \n\nTesting other crate-specific builds"
97
98
# Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
98
99
cargo test -p lightning --verbose --color always --no-default-features --features=std,_test_vectors
99
100
# This one only works for lightning-invoice
0 commit comments