mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-04 15:05:30 +00:00
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.
23 lines
470 B
Bash
Executable File
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'
|