mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 03:36:21 +00:00
30 lines
869 B
Bash
Executable File
30 lines
869 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
# Tests are all super fast anyway, and they fault often enough on travis that
|
|
# having only one thread increases debuggability to be worth it.
|
|
export RUST_TEST_THREADS=1
|
|
|
|
# FIXME(rust-lang-nursery/stdsimd#120) run-time feature detection for ARM Neon
|
|
case ${TARGET} in
|
|
aarch*)
|
|
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+neon"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
FEATURES="strict,$FEATURES"
|
|
FEATURES_STD="${FEATURES},std"
|
|
|
|
echo "RUSTFLAGS=${RUSTFLAGS}"
|
|
echo "FEATURES=${FEATURES}"
|
|
echo "OBJDUMP=${OBJDUMP}"
|
|
|
|
cargo test --target $TARGET --features $FEATURES --verbose -- --nocapture
|
|
cargo test --release --target $TARGET --features $FEATURES --verbose -- --nocapture
|
|
|
|
cargo test --target $TARGET --features $FEATURES_STD --verbose -- --nocapture
|
|
cargo test --release --target $TARGET --features $FEATURES_STD --verbose -- --nocapture
|