2024-10-06 13:44:25 -05:00

23 lines
466 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/musl-bitwise-tests'
$cmd --release --features 'unstable libm-test/musl-bitwise-tests'