|
1 | 1 | #!/bin/sh
|
| 2 | +# ignore-tidy-linelength |
2 | 3 |
|
3 | 4 | set -eu
|
4 | 5 |
|
@@ -26,8 +27,30 @@ python3 "$X_PY" test --stage 2 src/tools/clippy
|
26 | 27 | python3 "$X_PY" test --stage 2 src/tools/rustfmt
|
27 | 28 | python3 "$X_PY" test --stage 2 src/tools/miri
|
28 | 29 | # We natively run this script on x86_64-unknown-linux-gnu and x86_64-pc-windows-msvc.
|
29 |
| -# Also cover some other targets (on both of these hosts) via cross-testing. |
| 30 | +# Also cover some other targets via cross-testing, in particular all tier 1 targets. |
30 | 31 | export BOOTSTRAP_SKIP_TARGET_SANITY=1 # we don't need `cc` for these targets
|
31 |
| -python3 "$X_PY" test --stage 2 src/tools/miri --target i686-pc-windows-msvc |
32 |
| -python3 "$X_PY" test --stage 2 src/tools/miri --target aarch64-apple-darwin |
| 32 | +case $HOST_TARGET in |
| 33 | + x86_64-unknown-linux-gnu) |
| 34 | + # Only this branch runs in PR CI. |
| 35 | + # Fully test all main OSes, including a 32bit target. |
| 36 | + python3 "$X_PY" test --stage 2 src/tools/miri --target x86_64-apple-darwin |
| 37 | + python3 "$X_PY" test --stage 2 src/tools/miri --target i686-pc-windows-msvc |
| 38 | + # Only run "pass" tests for the remaining targets, which is quite a bit faster. |
| 39 | + python3 "$X_PY" test --stage 2 src/tools/miri --target x86_64-pc-windows-gnu --test-args pass |
| 40 | + python3 "$X_PY" test --stage 2 src/tools/miri --target i686-unknown-linux-gnu --test-args pass |
| 41 | + python3 "$X_PY" test --stage 2 src/tools/miri --target aarch64-unknown-linux-gnu --test-args pass |
| 42 | + python3 "$X_PY" test --stage 2 src/tools/miri --target s390x-unknown-linux-gnu --test-args pass |
| 43 | + ;; |
| 44 | + x86_64-pc-windows-msvc) |
| 45 | + # Strangely, Linux targets do not work here. cargo always says |
| 46 | + # "error: cannot produce cdylib for ... as the target ... does not support these crate types". |
| 47 | + # Only run "pass" tests, which is quite a bit faster. |
| 48 | + python3 "$X_PY" test --stage 2 src/tools/miri --target aarch64-apple-darwin --test-args pass |
| 49 | + python3 "$X_PY" test --stage 2 src/tools/miri --target i686-pc-windows-gnu --test-args pass |
| 50 | + ;; |
| 51 | + *) |
| 52 | + echo "FATAL: unexpected host $HOST_TARGET" |
| 53 | + exit 1 |
| 54 | + ;; |
| 55 | +esac |
33 | 56 | unset BOOTSTRAP_SKIP_TARGET_SANITY
|
0 commit comments