X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=ci.sh;h=8c63a57a4f490a6727061871ac79bc085ffcb45f;hb=52a6ac96b0a2a270400d75ba9ed3aa829826b5db;hp=b914477d44a81ca5817d9818d54b83f807d7868f;hpb=c17e68d9be03ef03d84b0c32457e24d5e54fb0cc;p=rust.git diff --git a/ci.sh b/ci.sh index b914477d44a..8c63a57a4f4 100755 --- a/ci.sh +++ b/ci.sh @@ -1,5 +1,6 @@ #!/bin/bash set -euo pipefail +set -x # Determine configuration export RUSTFLAGS="-D warnings" @@ -8,8 +9,8 @@ export CARGO_EXTRA_FLAGS="--all-features" # Prepare echo "Build and install miri" -./miri build --all-targets --locked ./miri install # implicitly locked +./miri build --all-targets --locked # the build that all the `./miri test` below will use echo # Test @@ -40,6 +41,13 @@ function run_tests { # any interactive questions. ${PYTHON} test-cargo-miri/run-test.py echo + + # Ensure that our benchmarks all work, on the host at least. + if [ -z "${MIRI_TEST_TARGET+exists}" ]; then + for BENCH in $(ls "bench-cargo-miri"); do + cargo miri run --manifest-path bench-cargo-miri/$BENCH/Cargo.toml + done + fi } function run_tests_minimal {