2019-07-02 08:22:03 +02:00
|
|
|
#!/usr/bin/env sh
|
2019-05-02 11:37:21 -07:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
TARGET=$1
|
|
|
|
|
2019-09-05 08:32:05 -06:00
|
|
|
CMD="cargo test --all --target $TARGET"
|
2019-05-02 11:37:21 -07:00
|
|
|
|
2022-01-03 21:32:08 +01:00
|
|
|
# Needed for no-panic to correct detect a lack of panics
|
|
|
|
export RUSTFLAGS="$RUSTFLAGS -Ccodegen-units=1"
|
|
|
|
|
2019-09-05 08:36:08 -06:00
|
|
|
# stable by default
|
2019-07-02 08:22:03 +02:00
|
|
|
$CMD
|
|
|
|
$CMD --release
|
2019-05-02 11:47:46 -07:00
|
|
|
|
2019-09-05 08:36:08 -06:00
|
|
|
# unstable with a feature
|
|
|
|
$CMD --features 'unstable'
|
|
|
|
$CMD --release --features 'unstable'
|
2019-07-02 08:22:03 +02:00
|
|
|
|
2019-09-05 08:36:08 -06:00
|
|
|
# also run the reference tests
|
|
|
|
$CMD --features 'unstable musl-reference-tests'
|
|
|
|
$CMD --release --features 'unstable musl-reference-tests'
|