mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 07:06:37 +00:00
23 lines
466 B
Bash
Executable File
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'
|