2025-03-22 06:36:40 +01:00
|
|
|
#!/bin/bash
|
2025-04-20 08:34:47 +00:00
|
|
|
set -eux
|
2025-03-22 06:36:40 +01:00
|
|
|
|
|
|
|
|
# We need Tree Borrows as some of our raw pointer patterns are not
|
|
|
|
|
# compatible with Stacked Borrows.
|
|
|
|
|
export MIRIFLAGS="-Zmiri-tree-borrows"
|
|
|
|
|
|
|
|
|
|
# One target that sets `mem-unaligned` and one that does not,
|
|
|
|
|
# and a big-endian target.
|
2025-04-20 08:34:47 +00:00
|
|
|
targets=(
|
|
|
|
|
x86_64-unknown-linux-gnu
|
2025-03-22 06:36:40 +01:00
|
|
|
armv7-unknown-linux-gnueabihf
|
2025-04-20 08:34:47 +00:00
|
|
|
s390x-unknown-linux-gnu
|
|
|
|
|
)
|
|
|
|
|
for target in "${targets[@]}"; do
|
2025-03-22 06:36:40 +01:00
|
|
|
# Only run the `mem` tests to avoid this taking too long.
|
2025-04-20 08:34:47 +00:00
|
|
|
cargo miri test --manifest-path builtins-test/Cargo.toml --features no-asm --target "$target" -- mem
|
2025-03-22 06:36:40 +01:00
|
|
|
done
|