diff --git a/contrib/test.sh b/contrib/test.sh index 0e403a3..379059e 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -2,6 +2,7 @@ set -ex +REPO_DIR=$(git rev-parse --show-toplevel) FEATURES="bitcoin-hashes global-context lowmemory rand recovery serde std alloc bitcoin-hashes-std rand-std" cargo --version @@ -108,6 +109,12 @@ if [ "$DO_ASAN" = true ]; then CC='clang -fsanitize=memory -fno-omit-frame-pointer' \ RUSTFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes -Cllvm-args=-msan-eager-checks=0' \ cargo test --lib --all --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu + + pushd "$REPO_DIR/no_std_test" > /dev/null || exit 1 + # See https://github.com/rust-bitcoin/rust-secp256k1/pull/641#issuecomment-1671598914 + cargo update -p cc --precise 1.0.79 + popd > /dev/null || exit 1 + cargo run --release --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified Successfully" cargo run --release --features=alloc --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified alloc Successfully" fi