|
8 | 8 | if [ -z $TARGET ]; then
|
9 | 9 | CARGO=cargo
|
10 | 10 | else
|
11 |
| - CARGO="cross --target $TARGET" |
| 11 | + CARGO=cross |
| 12 | + TARGET="--target $TARGET" |
12 | 13 | fi
|
13 | 14 |
|
14 | 15 | # ALLOC defaults on; is disabled for rustc < 1.36
|
|
23 | 24 |
|
24 | 25 | main() {
|
25 | 26 | if [ "0$NIGHTLY" -ge 1 ]; then
|
26 |
| - $CARGO test --all-features |
27 |
| - $CARGO test --benches --features=nightly |
| 27 | + $CARGO test $TARGET --all-features |
| 28 | + $CARGO test $TARGET --benches --features=nightly |
28 | 29 | else
|
29 | 30 | # all stable features:
|
30 |
| - $CARGO test --features=serde1,log,small_rng |
| 31 | + $CARGO test $TARGET --features=serde1,log,small_rng |
31 | 32 | fi
|
32 | 33 |
|
33 | 34 | if [ "$ALLOC" -ge 1 ]; then
|
34 |
| - $CARGO test --tests --no-default-features --features=alloc,getrandom,small_rng |
| 35 | + $CARGO test $TARGET --tests --no-default-features --features=alloc,getrandom,small_rng |
| 36 | + $CARGO test $TARGET --manifest-path rand_core/Cargo.toml --no-default-features --features=alloc |
35 | 37 | fi
|
36 | 38 |
|
37 |
| - $CARGO test --tests --no-default-features |
38 |
| - $CARGO test --examples |
| 39 | + $CARGO test $TARGET --tests --no-default-features |
| 40 | + $CARGO test $TARGET --examples |
39 | 41 |
|
40 |
| - $CARGO test --manifest-path rand_core/Cargo.toml |
41 |
| - $CARGO test --manifest-path rand_core/Cargo.toml --no-default-features |
42 |
| - $CARGO test --manifest-path rand_core/Cargo.toml --no-default-features --features=alloc |
43 |
| - $CARGO test --manifest-path rand_core/Cargo.toml --no-default-features --features=getrandom |
| 42 | + $CARGO test $TARGET --manifest-path rand_core/Cargo.toml |
| 43 | + $CARGO test $TARGET --manifest-path rand_core/Cargo.toml --no-default-features |
| 44 | + $CARGO test $TARGET --manifest-path rand_core/Cargo.toml --no-default-features --features=getrandom |
44 | 45 |
|
45 |
| - $CARGO test --manifest-path rand_distr/Cargo.toml |
46 |
| - $CARGO test --manifest-path rand_isaac/Cargo.toml --features=serde1 |
47 |
| - $CARGO test --manifest-path rand_pcg/Cargo.toml --features=serde1 |
48 |
| - $CARGO test --manifest-path rand_xorshift/Cargo.toml --features=serde1 |
49 |
| - $CARGO test --manifest-path rand_xoshiro/Cargo.toml |
50 |
| - $CARGO test --manifest-path rand_chacha/Cargo.toml |
51 |
| - $CARGO test --manifest-path rand_hc/Cargo.toml |
52 |
| - $CARGO test --manifest-path rand_jitter/Cargo.toml |
53 |
| - $CARGO test --manifest-path rand_os/Cargo.toml |
| 46 | + $CARGO test $TARGET --manifest-path rand_distr/Cargo.toml |
| 47 | + $CARGO test $TARGET --manifest-path rand_isaac/Cargo.toml --features=serde1 |
| 48 | + $CARGO test $TARGET --manifest-path rand_pcg/Cargo.toml --features=serde1 |
| 49 | + $CARGO test $TARGET --manifest-path rand_xorshift/Cargo.toml --features=serde1 |
| 50 | + $CARGO test $TARGET --manifest-path rand_xoshiro/Cargo.toml |
| 51 | + $CARGO test $TARGET --manifest-path rand_chacha/Cargo.toml |
| 52 | + $CARGO test $TARGET --manifest-path rand_hc/Cargo.toml |
| 53 | + $CARGO test $TARGET --manifest-path rand_jitter/Cargo.toml |
| 54 | + $CARGO test $TARGET --manifest-path rand_os/Cargo.toml |
54 | 55 | }
|
55 | 56 |
|
56 | 57 | # we don't run the "test phase" when doing deploys
|
|
0 commit comments