|
80 | 80 | echo -e "\n\nTesting no-std builds" |
81 | 81 | for DIR in lightning-invoice lightning-rapid-gossip-sync; do |
82 | 82 | cargo test -p $DIR --verbose --color always --no-default-features |
83 | | - # check if there is a conflict between no-std and the c_bindings cfg |
84 | | - RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features |
85 | 83 | done |
86 | 84 |
|
87 | | -echo -e "\n\nTesting no-std flags in various combinations" |
88 | | -for DIR in lightning; do |
89 | | - cargo test -p $DIR --verbose --color always --no-default-features --features no-std |
90 | | - # check if there is a conflict between no-std and the default std feature |
91 | | - cargo test -p $DIR --verbose --color always --features no-std |
92 | | -done |
| 85 | +cargo test -p lightning --verbose --color always --no-default-features --features no-std |
| 86 | +# check if there is a conflict between no-std and the default std feature |
| 87 | +cargo test -p lightning --verbose --color always --features no-std |
| 88 | + |
| 89 | +echo -e "\n\nTesting c_bindings builds" |
| 90 | +RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always |
93 | 91 |
|
94 | | -for DIR in lightning; do |
| 92 | +for DIR in lightning-invoice lightning-rapid-gossip-sync; do |
95 | 93 | # check if there is a conflict between no-std and the c_bindings cfg |
96 | | - RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std |
| 94 | + RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features |
97 | 95 | done |
98 | | -RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always |
99 | 96 |
|
| 97 | +# Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively |
| 98 | +# disable tests in `c_bindings` so we skip doctests entirely here. |
| 99 | +RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning-background-processor --verbose --color always --features futures --no-default-features --lib --bins --tests |
| 100 | +RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --verbose --color always --no-default-features --features=no-std |
| 101 | + |
| 102 | +echo -e "\n\nTesting other crate-specific builds" |
100 | 103 | # Note that outbound_commitment_test only runs in this mode because of hardcoded signature values |
101 | 104 | cargo test -p lightning --verbose --color always --no-default-features --features=std,_test_vectors |
102 | 105 | # This one only works for lightning-invoice |
|
0 commit comments