2
2
set -euo pipefail
3
3
set -x
4
4
5
- # Determine configuration
5
+ # Determine configuration for installed build
6
+ echo " Installing release version of Miri"
6
7
export RUSTFLAGS=" -D warnings"
7
8
export CARGO_INCREMENTAL=0
8
-
9
- # Prepare
10
- echo " Build and install miri"
11
9
./miri install # implicitly locked
10
+
11
+ # Prepare debug build for direct `./miri` invocations
12
+ echo " Building debug version of Miri"
13
+ export CARGO_EXTRA_FLAGS=" --locked"
12
14
./miri check --no-default-features # make sure this can be built
13
15
./miri check --all-features # and this, too
14
- ./miri build --all-targets --locked # the build that all the `./miri test` below will use
16
+ ./miri build --all-targets # the build that all the `./miri test` below will use
15
17
echo
16
18
17
19
# Test
@@ -23,13 +25,13 @@ function run_tests {
23
25
fi
24
26
25
27
# # ui test suite
26
- ./miri test --locked
28
+ ./miri test
27
29
if [ -z " ${MIRI_TEST_TARGET+exists} " ]; then
28
30
# Only for host architecture: tests with optimizations (`-O` is what cargo passes, but crank MIR
29
31
# optimizations up all the way).
30
32
# Optimizations change diagnostics (mostly backtraces), so we don't check them
31
33
# FIXME(#2155): we want to only run the pass and panic tests here, not the fail tests.
32
- MIRIFLAGS=" -O -Zmir-opt-level=4" MIRI_SKIP_UI_CHECKS=1 ./miri test --locked -- tests/{pass,panic}
34
+ MIRIFLAGS=" -O -Zmir-opt-level=4" MIRI_SKIP_UI_CHECKS=1 ./miri test -- tests/{pass,panic}
33
35
fi
34
36
35
37
# # test-cargo-miri
@@ -70,7 +72,7 @@ function run_tests_minimal {
70
72
echo " Testing MINIMAL host architecture: only testing $@ "
71
73
fi
72
74
73
- ./miri test --locked -- " $@ "
75
+ ./miri test -- " $@ "
74
76
}
75
77
76
78
# host
0 commit comments