Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit f6603c2

Browse files
committed
Run tests without std enabled
Currently when we run the test suite we always enable the "std" feature. There are tests that can be run without "std", we should run these without "std" to better test our no-std code.
1 parent 20e4c39 commit f6603c2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contrib/test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ if [ "$DO_FEATURE_MATRIX" = true ]; then
2828

2929
# All features
3030
cargo build --all --no-default-features --features="$FEATURES"
31-
cargo test --all --features="$FEATURES"
31+
cargo test --all --no-default-features --features="$FEATURES"
3232
# Single features
3333
for feature in ${FEATURES}
3434
do
3535
cargo build --all --no-default-features --features="$feature"
36-
cargo test --all --features="$feature"
36+
cargo test --all --no-default-features --features="$feature"
3737
# All combos of two features
3838
for featuretwo in ${FEATURES}; do
3939
cargo build --all --no-default-features --features="$feature $featuretwo"
40-
cargo test --all --features="$feature $featuretwo"
40+
cargo test --all --no-default-features --features="$feature $featuretwo"
4141
done
4242
done
4343

@@ -67,11 +67,11 @@ if [ "$DO_ASAN" = true ]; then
6767
CC='clang -fsanitize=address -fno-omit-frame-pointer' \
6868
RUSTFLAGS='-Zsanitizer=address -Clinker=clang -Cforce-frame-pointers=yes' \
6969
ASAN_OPTIONS='detect_leaks=1 detect_invalid_pointer_pairs=1 detect_stack_use_after_return=1' \
70-
cargo test --lib --all --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
70+
cargo test --lib --all --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
7171
cargo clean
7272
CC='clang -fsanitize=memory -fno-omit-frame-pointer' \
7373
RUSTFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes' \
74-
cargo test --lib --all --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
74+
cargo test --lib --all --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
7575
fi
7676

7777
# Bench

0 commit comments

Comments
 (0)