Lines Matching +full:test +full:- +full:msrv
3 set -e
5 CRATE=num-traits
6 MSRV=1.8
9 local array=($(rustc --version));
16 IFS=. read -ra rust <<< "$RUST_VERSION"
17 IFS=. read -ra want <<< "$1"
18 [[ "${rust[0]}" -gt "${want[0]}" ||
19 ( "${rust[0]}" -eq "${want[0]}" &&
20 "${rust[1]}" -ge "${want[1]}" )
25 if ! check_version $MSRV ; then
26 echo "The minimum for $CRATE is rustc $MSRV"
35 set -x
37 # test the default
39 cargo test
41 # test `no_std`
42 cargo build --no-default-features
43 cargo test --no-default-features
45 # test each isolated feature, with and without std
47 cargo build --no-default-features --features="std $feature"
48 cargo test --no-default-features --features="std $feature"
50 cargo build --no-default-features --features="$feature"
51 cargo test --no-default-features --features="$feature"
54 # test all supported features, with and without std
55 cargo build --features="std ${FEATURES[*]}"
56 cargo test --features="std ${FEATURES[*]}"
58 cargo build --features="${FEATURES[*]}"
59 cargo test --features="${FEATURES[*]}"