Trevor Gross a68516ed6a Rename the musl-bitwise-tests feature to test-musl-serialized
We will have more test features in the near future, and it would be nice
for them all to have a common `test-` prefix. Reverse the existing
feature so this is the case.
2024-10-25 20:57:19 -04:00

23 lines
470 B
Bash
Executable File

#!/bin/sh
set -eux
target="$1"
cmd="cargo test --all --target $target"
# Needed for no-panic to correct detect a lack of panics
export RUSTFLAGS="$RUSTFLAGS -Ccodegen-units=1"
# stable by default
$cmd
$cmd --release
# unstable with a feature
$cmd --features 'unstable'
$cmd --release --features 'unstable'
# also run the reference tests
$cmd --features 'unstable libm-test/test-musl-serialized'
$cmd --release --features 'unstable libm-test/test-musl-serialized'