Skip to content

Commit 540f241

Browse files
committed
show the time that the main CI steps take
1 parent e9ee190 commit 540f241

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tools/miri/ci/ci.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ function run_tests {
6060

6161
## ui test suite
6262
if [ -n "${GC_STRESS-}" ]; then
63-
MIRIFLAGS="${MIRIFLAGS-} -Zmiri-provenance-gc=1" ./miri test
63+
time MIRIFLAGS="${MIRIFLAGS-} -Zmiri-provenance-gc=1" ./miri test
6464
else
65-
./miri test
65+
time ./miri test
6666
fi
6767

6868
## advanced tests
@@ -73,18 +73,18 @@ function run_tests {
7373
# them. Also error locations change so we don't run the failing tests.
7474
# We explicitly enable debug-assertions here, they are disabled by -O but we have tests
7575
# 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}
7777
fi
7878
if [ -n "${MANY_SEEDS-}" ]; then
7979
# Also run some many-seeds tests. 64 seeds means this takes around a minute per test.
8080
# (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
8282
MIRI_SEEDS=$MANY_SEEDS ./miri many-seeds "$BASH" -c "./miri run '$FILE'"
8383
done
8484
fi
8585
if [ -n "${TEST_BENCH-}" ]; then
8686
# Check that the benchmarks build and run, but without actually benchmarking.
87-
HYPERFINE="'$BASH' -c" ./miri bench
87+
time HYPERFINE="'$BASH' -c" ./miri bench
8888
fi
8989

9090
## test-cargo-miri
@@ -106,7 +106,7 @@ function run_tests {
106106
echo 'build.rustc-wrapper = "thisdoesnotexist"' > .cargo/config.toml
107107
fi
108108
# Run the actual test
109-
${PYTHON} test-cargo-miri/run-test.py
109+
time ${PYTHON} test-cargo-miri/run-test.py
110110
# Clean up
111111
unset RUSTC MIRI
112112
rm -rf .cargo

0 commit comments

Comments
 (0)