Skip to content

Commit 695f1a5

Browse files
committed
tweak ci.sh
1 parent 2a89b74 commit 695f1a5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/tools/miri/ci.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ function run_tests_minimal {
9595
if [ -n "${MIRI_TEST_TARGET:-}" ]; then
9696
begingroup "Testing MINIMAL foreign architecture $MIRI_TEST_TARGET: only testing $@"
9797
else
98-
begingroup "Testing MINIMAL host architecture: only testing $@"
98+
echo "run_tests_minimal requires MIRI_TEST_TARGET to be set"
99+
exit 1
99100
fi
100101

101102
./miri test -- "$@"
@@ -106,15 +107,20 @@ function run_tests_minimal {
106107
endgroup
107108
}
108109

109-
# host
110+
## Main Testing Logic ##
111+
112+
# Host target.
110113
run_tests
111114

115+
# Extra targets.
116+
# In particular, fully cover all tier 1 targets.
112117
case $HOST_TARGET in
113118
x86_64-unknown-linux-gnu)
114119
MIRI_TEST_TARGET=i686-unknown-linux-gnu run_tests
115120
MIRI_TEST_TARGET=aarch64-unknown-linux-gnu run_tests
116121
MIRI_TEST_TARGET=aarch64-apple-darwin run_tests
117122
MIRI_TEST_TARGET=i686-pc-windows-gnu run_tests
123+
# Some targets are only partially supported.
118124
MIRI_TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal hello integer vec panic/panic concurrency/simple pthread-threadname libc-getentropy libc-getrandom libc-misc libc-fs atomic env align
119125
MIRI_TEST_TARGET=aarch64-linux-android run_tests_minimal hello integer vec panic/panic
120126
MIRI_TEST_TARGET=wasm32-wasi run_tests_minimal no_std integer strings wasm

0 commit comments

Comments
 (0)