diff --git a/hashes/contrib/test.sh b/hashes/contrib/test.sh index bb7fe2e8..bdd3462f 100755 --- a/hashes/contrib/test.sh +++ b/hashes/contrib/test.sh @@ -19,8 +19,8 @@ fi export CARGO_TERM_VERBOSE=true # Defaults / sanity checks -cargo build --all -cargo test --all +cargo build +cargo test if [ "$DO_LINT" = true ] then @@ -28,26 +28,26 @@ then fi if [ "$DO_FEATURE_MATRIX" = true ]; then - cargo build --all --no-default-features - cargo test --all --no-default-features + cargo build --no-default-features + cargo test --no-default-features # All features - cargo build --all --no-default-features --features="$FEATURES" - cargo test --all --no-default-features --features="$FEATURES" + cargo build --no-default-features --features="$FEATURES" + cargo test --no-default-features --features="$FEATURES" # Single features for feature in ${FEATURES} do - cargo build --all --no-default-features --features="$feature" - cargo test --all --no-default-features --features="$feature" + cargo build --no-default-features --features="$feature" + cargo test --no-default-features --features="$feature" # All combos of two features for featuretwo in ${FEATURES}; do - cargo build --all --no-default-features --features="$feature $featuretwo" - cargo test --all --no-default-features --features="$feature $featuretwo" + cargo build --no-default-features --features="$feature $featuretwo" + cargo test --no-default-features --features="$feature $featuretwo" done done # Other combos - cargo test --all --no-default-features --features="std,schemars" + cargo test --no-default-features --features="std,schemars" fi if [ "$DO_SCHEMARS_TESTS" = true ]; then @@ -56,7 +56,7 @@ fi # Build the docs if told to (this only works with the nightly toolchain) if [ "$DO_DOCS" = true ]; then - RUSTDOCFLAGS="--cfg docsrs" cargo doc --all --features="$FEATURES" + RUSTDOCFLAGS="--cfg docsrs" cargo doc --features="$FEATURES" fi # Webassembly stuff @@ -74,11 +74,11 @@ if [ "$DO_ASAN" = true ]; then CC='clang -fsanitize=address -fno-omit-frame-pointer' \ RUSTFLAGS='-Zsanitizer=address -Clinker=clang -Cforce-frame-pointers=yes' \ ASAN_OPTIONS='detect_leaks=1 detect_invalid_pointer_pairs=1 detect_stack_use_after_return=1' \ - cargo test --lib --all --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu + cargo test --lib --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu cargo clean CC='clang -fsanitize=memory -fno-omit-frame-pointer' \ RUSTFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes' \ - cargo test --lib --all --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu + cargo test --lib --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu fi # Bench if told to, only works with non-stable toolchain (nightly, beta).