build_script:
- set RUSTFLAGS=-C debug-assertions
# Build and install miri
- - cargo build --release --all-features --all-targets
+ - cargo build --release --all-features --all-targets --locked
- cargo install --all-features --force --path . --locked --offline
# Get ourselves a MIR-full libstd, and use it henceforth
- cargo miri setup
- set RUST_TEST_NOCAPTURE=1
- set RUST_BACKTRACE=1
# Test miri
- - cargo test --release --all-features
+ - cargo test --release --all-features --locked
# Test cargo integration
- cd test-cargo-miri
- '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
# Prepare
echo "Build and install miri"
-./miri build --all-targets
-./miri install
+./miri build --all-targets --locked
+./miri install # implicitly locked
echo
# Test
function run_tests {
- ./miri test
+ ./miri test --locked
# "miri test" has built the sysroot for us, now this should pass without
# any interactive questions.
test-cargo-miri/run-test.py