Run codegen tests outside if not llvm-15

This commit is contained in:
Guillaume Gomez 2023-11-01 15:48:12 +01:00
parent 260d91bd41
commit 13f7f052d8
4 changed files with 15 additions and 3 deletions

View file

@ -57,8 +57,9 @@ jobs:
os: ubuntu-20.04-4core-16gb
env: {}
- name: x86_64-gnu-llvm-15
env:
SKIP_CODEGEN_TESTS: "1"
os: ubuntu-20.04-16core-64gb
env: {}
- name: x86_64-gnu-tools
os: ubuntu-20.04-16core-64gb
env: {}

View file

@ -4,7 +4,11 @@ set -ex
# Only run the stage 1 tests on merges, not on PR CI jobs.
if [[ -z "${PR_CI_JOB}" ]]; then
../x.py --stage 1 test --skip src/tools/tidy --skip tests/codegen
if [[ "${SKIP_CODEGEN_TESTS}" == "1" ]]; then
../x.py --stage 1 test --skip src/tools/tidy --skip tests/codegen
else
../x.py --stage 1 test --skip src/tools/tidy
fi
# Run the `mir-opt` tests again but this time for a 32-bit target.
# This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
@ -20,7 +24,11 @@ if [[ -z "${PR_CI_JOB}" ]]; then
fi
# NOTE: intentionally uses all of `x.py`, `x`, and `x.ps1` to make sure they all work on Linux.
../x.py --stage 2 test --skip src/tools/tidy --skip tests/codegen
if [[ "${SKIP_CODEGEN_TESTS}" == "1" ]]; then
../x.py --stage 2 test --skip src/tools/tidy --skip tests/codegen
else
../x.py --stage 2 test --skip src/tools/tidy
fi
# Run the `mir-opt` tests again but this time for a 32-bit target.
# This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have

View file

@ -271,6 +271,7 @@ docker \
run \
--workdir /checkout/obj \
--env SRC=/checkout \
--env "SKIP_CODEGEN_TESTS=$SKIP_CODEGEN_TESTS" \
$args \
--env CARGO_HOME=/cargo \
--env DEPLOY \

View file

@ -332,6 +332,8 @@ jobs:
- name: x86_64-gnu-llvm-15
<<: *job-linux-16c
env:
SKIP_CODEGEN_TESTS: "1"
- name: x86_64-gnu-tools
<<: *job-linux-16c