@@ -60,9 +60,9 @@ function run_tests {
60
60
61
61
# # ui test suite
62
62
if [ -n " ${GC_STRESS-} " ]; then
63
- MIRIFLAGS=" ${MIRIFLAGS-} -Zmiri-provenance-gc=1" ./miri test
63
+ time MIRIFLAGS=" ${MIRIFLAGS-} -Zmiri-provenance-gc=1" ./miri test
64
64
else
65
- ./miri test
65
+ time ./miri test
66
66
fi
67
67
68
68
# # advanced tests
@@ -73,18 +73,18 @@ function run_tests {
73
73
# them. Also error locations change so we don't run the failing tests.
74
74
# We explicitly enable debug-assertions here, they are disabled by -O but we have tests
75
75
# which exist to check that we panic on debug assertion failures.
76
- MIRIFLAGS=" ${MIRIFLAGS-} -O -Zmir-opt-level=4 -Cdebug-assertions=yes" MIRI_SKIP_UI_CHECKS=1 ./miri test -- tests/{pass,panic}
76
+ time MIRIFLAGS=" ${MIRIFLAGS-} -O -Zmir-opt-level=4 -Cdebug-assertions=yes" MIRI_SKIP_UI_CHECKS=1 ./miri test -- tests/{pass,panic}
77
77
fi
78
78
if [ -n " ${MANY_SEEDS-} " ]; then
79
79
# Also run some many-seeds tests. 64 seeds means this takes around a minute per test.
80
80
# (Need to invoke via explicit `bash -c` for Windows.)
81
- for FILE in tests/many-seeds/* .rs; do
81
+ time for FILE in tests/many-seeds/* .rs; do
82
82
MIRI_SEEDS=$MANY_SEEDS ./miri many-seeds " $BASH " -c " ./miri run '$FILE '"
83
83
done
84
84
fi
85
85
if [ -n " ${TEST_BENCH-} " ]; then
86
86
# Check that the benchmarks build and run, but without actually benchmarking.
87
- HYPERFINE=" '$BASH ' -c" ./miri bench
87
+ time HYPERFINE=" '$BASH ' -c" ./miri bench
88
88
fi
89
89
90
90
# # test-cargo-miri
@@ -106,7 +106,7 @@ function run_tests {
106
106
echo ' build.rustc-wrapper = "thisdoesnotexist"' > .cargo/config.toml
107
107
fi
108
108
# Run the actual test
109
- ${PYTHON} test-cargo-miri/run-test.py
109
+ time ${PYTHON} test-cargo-miri/run-test.py
110
110
# Clean up
111
111
unset RUSTC MIRI
112
112
rm -rf .cargo
0 commit comments