File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set -euo pipefail
5
5
# # Run a Rust libstd test suite with Miri.
6
6
# # Assumes Miri to be installed.
7
7
# # Usage:
8
- # # ./run-test.sh CRATE_NAME
8
+ # # ./run-test.sh CRATE_NAME CARGO_TEST_ARGS
9
9
# # Environment variables:
10
10
# # RUST_SRC: The path to the Rust source directory (containing `src`).
11
11
# # Defaults to `$(rustc --print sysroot)/lib/rustlib/src/rust` or
@@ -35,4 +35,4 @@ ln -s "$RUST_SRC"/library/$CRATE lib$CRATE
35
35
# run test
36
36
cd ${CRATE} _miri_test
37
37
XARGO_RUST_SRC=" $RUST_SRC /library" cargo miri setup
38
- MIRI_SYSROOT=~ /.cache/miri/HOST cargo miri test -- " $@ "
38
+ MIRI_SYSROOT=~ /.cache/miri/HOST cargo miri test " $@ "
Original file line number Diff line number Diff line change 1
- nightly-2020-09-17
1
+ nightly-2020-09-21
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ cp -a $(rustc --print sysroot)/lib/rustlib/src/rust/ rust-src-patched
9
9
# run the tests (some also without validation, to exercise those code paths in Miri)
10
10
export RUST_SRC=rust-src-patched
11
11
echo && echo " ## Testing core (no validation, no Stacked Borrows, symbolic alignment)" && echo
12
- ./run-test.sh core - Zmiri-disable-validation -Zmiri-disable-stacked-borrows -Zmiri-symbolic-alignment-check -- --skip align 2>&1 | ts -i ' %.s '
12
+ MIRIFLAGS= " - Zmiri-disable-validation -Zmiri-disable-stacked-borrows -Zmiri-symbolic-alignment-check" ./run-test.sh core -- --skip align 2>&1 | ts -i ' %.s '
13
13
echo && echo " ## Testing core" && echo
14
14
./run-test.sh core 2>&1 | ts -i ' %.s '
15
15
echo && echo " ## Testing alloc (symbolic alignment)" && echo
16
- ./run-test.sh alloc -Zmiri-symbolic-alignment-check 2>&1 | ts -i ' %.s '
16
+ MIRIFLAGS= " -Zmiri-symbolic-alignment-check " ./run-test.sh alloc 2>&1 | ts -i ' %.s '
You can’t perform that action at this time.
0 commit comments