2024-10-06 13:44:25 -05:00
|
|
|
#!/bin/sh
|
2019-05-02 11:37:21 -07:00
|
|
|
|
2024-10-06 13:44:25 -05:00
|
|
|
set -eux
|
2019-05-02 11:37:21 -07:00
|
|
|
|
2024-10-06 13:44:25 -05:00
|
|
|
target="$1"
|
|
|
|
|
|
|
|
|
|
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
|
2024-10-05 13:57:10 -05:00
|
|
|
$cmd
|
|
|
|
|
$cmd --release
|
2019-05-02 11:47:46 -07:00
|
|
|
|
2019-09-05 08:36:08 -06:00
|
|
|
# unstable with a feature
|
2024-10-05 13:57:10 -05:00
|
|
|
$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
|
2024-10-25 20:57:19 -04:00
|
|
|
$cmd --features 'unstable libm-test/test-musl-serialized'
|
|
|
|
|
$cmd --release --features 'unstable libm-test/test-musl-serialized'
|