2017-10-11 17:33:41 -07:00

14 lines
380 B
Bash
Executable File

#!/bin/sh
set -ex
# FIXME(rust-lang/rust#45201) shouldn't need to specify one codegen unit
export RUSTFLAGS="$RUSTFLAGS -C codegen-units=1"
# 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
cargo test --target $TARGET
cargo test --release --target $TARGET