|
1 | 1 | set -ex |
2 | 2 |
|
3 | | -if rustup component add miri && cargo miri setup ; then |
4 | | - cargo miri test --no-default-features -- -Zmiri-seed=42 -- -Zunstable-options --exclude-should-panic |
5 | | - cargo miri test --features=serde1,log -- -Zmiri-seed=42 -- -Zunstable-options --exclude-should-panic |
6 | | - cargo miri test --manifest-path rand_core/Cargo.toml |
7 | | - cargo miri test --manifest-path rand_core/Cargo.toml --no-default-features |
8 | | - #cargo miri test --manifest-path rand_distr/Cargo.toml # no unsafe and lots of slow tests |
9 | | - cargo miri test --manifest-path rand_isaac/Cargo.toml --features=serde1 |
10 | | - cargo miri test --manifest-path rand_pcg/Cargo.toml --features=serde1 |
11 | | - cargo miri test --manifest-path rand_xorshift/Cargo.toml --features=serde1 |
12 | | - cargo miri test --manifest-path rand_xoshiro/Cargo.toml |
13 | | - cargo miri test --manifest-path rand_chacha/Cargo.toml --no-default-features |
14 | | - cargo miri test --manifest-path rand_hc/Cargo.toml |
15 | | - cargo miri test --manifest-path rand_jitter/Cargo.toml |
16 | | - cargo miri test --manifest-path rand_os/Cargo.toml -- -Zmiri-seed=42 |
17 | | -fi |
| 3 | +MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri) |
| 4 | +echo "Installing latest nightly with Miri: $MIRI_NIGHTLY" |
| 5 | +rustup default "$MIRI_NIGHTLY" |
| 6 | + |
| 7 | +rustup component add miri |
| 8 | +cargo miri setup |
| 9 | + |
| 10 | +cargo miri test --no-default-features -- -Zmiri-seed=42 -- -Zunstable-options --exclude-should-panic |
| 11 | +cargo miri test --features=serde1,log -- -Zmiri-seed=42 -- -Zunstable-options --exclude-should-panic |
| 12 | +cargo miri test --manifest-path rand_core/Cargo.toml |
| 13 | +cargo miri test --manifest-path rand_core/Cargo.toml --no-default-features |
| 14 | +#cargo miri test --manifest-path rand_distr/Cargo.toml # no unsafe and lots of slow tests |
| 15 | +cargo miri test --manifest-path rand_isaac/Cargo.toml --features=serde1 |
| 16 | +cargo miri test --manifest-path rand_pcg/Cargo.toml --features=serde1 |
| 17 | +cargo miri test --manifest-path rand_xorshift/Cargo.toml --features=serde1 |
| 18 | +cargo miri test --manifest-path rand_xoshiro/Cargo.toml |
| 19 | +cargo miri test --manifest-path rand_chacha/Cargo.toml --no-default-features |
| 20 | +cargo miri test --manifest-path rand_hc/Cargo.toml |
| 21 | +cargo miri test --manifest-path rand_jitter/Cargo.toml |
| 22 | +cargo miri test --manifest-path rand_os/Cargo.toml -- -Zmiri-seed=42 |
0 commit comments