Skip to content

Commit 3d57428

Browse files
authored
Merge pull request #61 from RalfJung/std
test std more systematically
2 parents 0e49530 + b16f43c commit 3d57428

File tree

2 files changed

+10
-23
lines changed

2 files changed

+10
-23
lines changed

ci-test.sh

+9-22
Original file line numberDiff line numberDiff line change
@@ -50,39 +50,26 @@ alloc)
5050
done
5151
;;
5252
std)
53-
# Modules that we skip entirely, because they need a lot of shims we don't support.
53+
# Modules that we skip because they need a lot of shims we don't support.
5454
SKIP="fs:: net:: process:: sys::pal::"
55-
# Core modules, that we are testing on a bunch of targets.
56-
# These are the most OS-specific (among the modules we do not skip).
57-
CORE="time:: sync:: thread:: env::"
5855

59-
for TARGET in x86_64-unknown-linux-gnu aarch64-apple-darwin x86_64-pc-windows-msvc i686-pc-windows-gnu; do
60-
echo "::group::Testing std core ($CORE on $TARGET)"
56+
# A 64bit little-endian and a 32bit big-endian target,
57+
# as well as targets covering all major OSes and both ABIs on Windows.
58+
# rustc itself tests i686-pc-windows-msvc so we test the other.
59+
for TARGET in x86_64-unknown-linux-gnu mips-unknown-linux-gnu aarch64-apple-darwin i686-pc-windows-gnu x86_64-pc-windows-msvc; do
60+
echo "::group::Testing std ($TARGET)"
6161
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-disable-isolation" \
6262
./run-test.sh std --target $TARGET --lib --tests \
63-
-- $CORE \
63+
-- $(for M in $SKIP; do echo "--skip $M "; done) \
6464
2>&1 | ts -i '%.s '
6565
echo "::endgroup::"
66-
echo "::group::Testing std core docs ($CORE on $TARGET, ignore leaks)"
66+
echo "::group::Testing std docs ($TARGET, ignore leaks)"
6767
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-ignore-leaks -Zmiri-disable-isolation" \
6868
./run-test.sh std --target $TARGET --doc \
69-
-- $CORE \
69+
-- $(for M in $SKIP; do echo "--skip $M "; done) \
7070
2>&1 | ts -i '%.s '
7171
echo "::endgroup::"
7272
done
73-
# Test the remaining modules only on Linux.
74-
echo "::group::Testing remaining std (all except for $SKIP, ignore leaks)"
75-
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-disable-isolation" \
76-
./run-test.sh std --lib --tests \
77-
-- $(for M in $CORE; do echo "--skip $M "; done) $(for M in $SKIP; do echo "--skip $M "; done) \
78-
2>&1 | ts -i '%.s '
79-
echo "::endgroup::"
80-
echo "::group::Testing remaining std docs (all except for $SKIP, ignore leaks)"
81-
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-ignore-leaks -Zmiri-disable-isolation" \
82-
./run-test.sh std --doc \
83-
-- $(for M in $CORE; do echo "--skip $M "; done) $(for M in $SKIP; do echo "--skip $M "; done) \
84-
2>&1 | ts -i '%.s '
85-
echo "::endgroup::"
8673
;;
8774
simd)
8875
export CARGO_TARGET_DIR=$(pwd)/target

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2024-04-09
1+
nightly-2024-04-28

0 commit comments

Comments
 (0)