Skip to content

Commit

Permalink
enable strict provenance for some std tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jan 9, 2023
1 parent 62591ed commit 6a557a3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,15 @@ std)
# These are the most OS-specific (among the modules we do not skip).
CORE="time:: sync:: thread:: env::"

# FIXME: strict provenance should be possible, but needs
# <https://github.com/rust-lang/rust/pull/104658> and a getrandom bump.
for TARGET in x86_64-unknown-linux-gnu aarch64-apple-darwin; do
echo "::group::Testing std core ($CORE on $TARGET, permissive provenance)"
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-disable-isolation -Zmiri-permissive-provenance" \
echo "::group::Testing std core ($CORE on $TARGET)"
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-disable-isolation" \
./run-test.sh std --target $TARGET --lib --tests \
-- $CORE \
2>&1 | ts -i '%.s '
echo "::endgroup::"
echo "::group::Testing std core docs ($CORE on $TARGET, ignore leaks, permissive provenance)"
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-ignore-leaks -Zmiri-disable-isolation -Zmiri-permissive-provenance" \
echo "::group::Testing std core docs ($CORE on $TARGET, ignore leaks)"
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-ignore-leaks -Zmiri-disable-isolation" \
./run-test.sh std --target $TARGET --doc \
-- $CORE \
2>&1 | ts -i '%.s '
Expand Down

0 comments on commit 6a557a3

Please sign in to comment.