Files
rust/library/compiler-builtins/libm/ci/run.sh

23 lines
470 B
Bash
Raw Normal View History

2024-10-06 13:44:25 -05:00
#!/bin/sh
2024-10-06 13:44:25 -05:00
set -eux
2024-10-06 13:44:25 -05:00
target="$1"
cmd="cargo test --all --target $target"
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
$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 libm-test/test-musl-serialized'
$cmd --release --features 'unstable libm-test/test-musl-serialized'