blob: d0cd42a8d0b846eee4cd8c02ebe2f6738625e568 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env sh
set -ex
TARGET=$1
CMD="cargo test --all --target $TARGET"
# Needed for no-panic to correct detect a lack of panics
export RUSTFLAGS="$RUSTFLAGS -Ccodegen-units=1"
# stable by default
$CMD
$CMD --release
# unstable with a feature
$CMD --features 'unstable'
$CMD --release --features 'unstable'
# also run the reference tests
$CMD --features 'unstable musl-reference-tests'
$CMD --release --features 'unstable musl-reference-tests'
|