about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-09-13 11:49:01 +0200
committerRalf Jung <post@ralfj.de>2024-09-13 11:49:01 +0200
commitdd01ee7cd2ee5be9d740c0d7f10e054af7131bb9 (patch)
tree9bfb63e5749da1f356f0873851c2ef4dc764388d
parent9621058b7b6013d5fb42bdfe69e188ebcfaf5fda (diff)
downloadrust-dd01ee7cd2ee5be9d740c0d7f10e054af7131bb9.tar.gz
rust-dd01ee7cd2ee5be9d740c0d7f10e054af7131bb9.zip
smoke-test './miri run --dep'
-rwxr-xr-xsrc/tools/miri/ci/ci.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/miri/ci/ci.sh b/src/tools/miri/ci/ci.sh
index 2d7e9aa3ef6..d23c1d3b9c1 100755
--- a/src/tools/miri/ci/ci.sh
+++ b/src/tools/miri/ci/ci.sh
@@ -66,7 +66,7 @@ function run_tests {
     time MIRIFLAGS="${MIRIFLAGS-} -O -Zmir-opt-level=4 -Cdebug-assertions=yes" MIRI_SKIP_UI_CHECKS=1 ./miri test $TARGET_FLAG tests/{pass,panic}
   fi
   if [ -n "${MANY_SEEDS-}" ]; then
-    # Also run some many-seeds tests.
+    # Also run some many-seeds tests. (Also tests `./miri run`.)
     time for FILE in tests/many-seeds/*.rs; do
       ./miri run "--many-seeds=0..$MANY_SEEDS" $TARGET_FLAG "$FILE"
     done
@@ -75,6 +75,8 @@ function run_tests {
     # Check that the benchmarks build and run, but only once.
     time HYPERFINE="hyperfine -w0 -r1" ./miri bench $TARGET_FLAG
   fi
+  # Smoke-test `./miri run --dep`.
+  ./miri run $TARGET_FLAG --dep tests/pass-dep/getrandom.rs
 
   ## test-cargo-miri
   # On Windows, there is always "python", not "python3" or "python2".