libm/ci/run.sh

22 lines
454 B
Bash
Raw Normal View History

2019-07-02 08:22:03 +02:00
#!/usr/bin/env sh
set -ex
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
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'