|
77 | 77 | echo -e "\n\nTesting no-std builds"
|
78 | 78 | for DIR in lightning-invoice 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-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-background-processor --verbose --color always --features futures --no-default-features |
| 96 | +RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --verbose --color always --no-default-features --features=no-std |
| 97 | + |
| 98 | +echo -e "\n\nTesting other crate-specific builds" |
97 | 99 | # Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
|
98 | 100 | cargo test -p lightning --verbose --color always --no-default-features --features=std,_test_vectors
|
99 | 101 | # This one only works for lightning-invoice
|
|
0 commit comments