Skip to content

Commit 8f9c6d8

Browse files
authored
Merge pull request #4562 from RalfJung/ci
re-balance CI
2 parents 883dbf0 + d097150 commit 8f9c6d8

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

ci/ci.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ function run_tests_minimal {
137137

138138
# In particular, fully cover all tier 1 targets.
139139
# We also want to run the many-seeds tests on all tier 1 targets.
140+
# We run GC_STRESS only once for each tier 1 OS.
140141
case $HOST_TARGET in
141142
x86_64-unknown-linux-gnu)
142143
# Host
@@ -147,7 +148,6 @@ case $HOST_TARGET in
147148
;;
148149
i686-unknown-linux-gnu)
149150
# Host
150-
# Without GC_STRESS as this is a slow runner.
151151
MIR_OPT=1 MANY_SEEDS=64 TEST_BENCH=1 CARGO_MIRI_ENV=1 run_tests
152152
# Partially supported targets (tier 2)
153153
BASIC="empty_main integer heap_alloc libc-mem vec string btreemap" # ensures we have the basics: pre-main code, system allocator
@@ -159,17 +159,20 @@ case $HOST_TARGET in
159159
;;
160160
aarch64-unknown-linux-gnu)
161161
# Host
162-
GC_STRESS=1 MIR_OPT=1 MANY_SEEDS=64 TEST_BENCH=1 CARGO_MIRI_ENV=1 run_tests
162+
MIR_OPT=1 MANY_SEEDS=64 TEST_BENCH=1 CARGO_MIRI_ENV=1 run_tests
163163
# Extra tier 2
164164
MANY_SEEDS=16 TEST_TARGET=arm-unknown-linux-gnueabi run_tests # 32bit ARM
165165
MANY_SEEDS=16 TEST_TARGET=aarch64-pc-windows-gnullvm run_tests # gnullvm ABI
166166
MANY_SEEDS=16 TEST_TARGET=s390x-unknown-linux-gnu run_tests # big-endian architecture of choice
167-
# Custom target JSON file
168-
TEST_TARGET=tests/x86_64-unknown-kernel.json MIRI_NO_STD=1 run_tests_minimal no_std
167+
# Not officially supported tier 2
168+
MANY_SEEDS=16 TEST_TARGET=x86_64-unknown-freebsd run_tests
169+
MANY_SEEDS=16 TEST_TARGET=i686-unknown-freebsd run_tests
169170
;;
170171
armv7-unknown-linux-gnueabihf)
171172
# Host
172-
GC_STRESS=1 MIR_OPT=1 MANY_SEEDS=64 TEST_BENCH=1 CARGO_MIRI_ENV=1 run_tests
173+
MIR_OPT=1 MANY_SEEDS=64 TEST_BENCH=1 CARGO_MIRI_ENV=1 run_tests
174+
# Custom target JSON file
175+
TEST_TARGET=tests/x86_64-unknown-kernel.json MIRI_NO_STD=1 run_tests_minimal no_std
173176
;;
174177
aarch64-apple-darwin)
175178
# Host
@@ -181,12 +184,9 @@ case $HOST_TARGET in
181184
MANY_SEEDS=16 TEST_TARGET=mips-unknown-linux-gnu run_tests # a 32bit big-endian target, and also a target without 64bit atomics
182185
MANY_SEEDS=16 TEST_TARGET=x86_64-unknown-illumos run_tests
183186
MANY_SEEDS=16 TEST_TARGET=x86_64-pc-solaris run_tests
184-
MANY_SEEDS=16 TEST_TARGET=x86_64-unknown-freebsd run_tests
185-
MANY_SEEDS=16 TEST_TARGET=i686-unknown-freebsd run_tests
186187
;;
187188
i686-pc-windows-msvc)
188189
# Host
189-
# Without GC_STRESS as this is a very slow runner.
190190
MIR_OPT=1 MANY_SEEDS=64 TEST_BENCH=1 run_tests
191191
# Extra tier 1
192192
# We really want to ensure a Linux target works on a Windows host,
@@ -195,8 +195,7 @@ case $HOST_TARGET in
195195
;;
196196
aarch64-pc-windows-msvc)
197197
# Host
198-
# Without GC_STRESS as this is a very slow runner.
199-
MIR_OPT=1 MANY_SEEDS=64 TEST_BENCH=1 CARGO_MIRI_ENV=1 run_tests
198+
GC_STRESS=1 MIR_OPT=1 MANY_SEEDS=64 TEST_BENCH=1 CARGO_MIRI_ENV=1 run_tests
200199
# Extra tier 1
201200
MANY_SEEDS=64 TEST_TARGET=i686-unknown-linux-gnu run_tests
202201
;;

0 commit comments

Comments
 (0)