Skip to content

Commit

Permalink
[port AArch64 Linux test exclusions from Cirrus CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Jan 17, 2025
1 parent 1b74d02 commit cbcf0a3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
17 changes: 14 additions & 3 deletions .github/actions/4b-test-lit/action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
name: Run LIT testsuite
inputs:
arch:
required: false # Windows only
required: true
runs:
using: composite
steps:

- name: 'Posix: Run LIT testsuite'
if: runner.os != 'Windows'
shell: bash
# temporarily add LLVM bin dir to PATH, so that e.g. wasm-ld is found
run: cd ../build && PATH="$PWD/../llvm/bin:$PATH" ctest -V -R "lit-tests"
run: |
set -eux
if [[ '${{ runner.os }}-${{ inputs.arch }}' == Linux-aarch64 ]]; then
# FIXME: the following tests fail
rm tests/debuginfo/nested_gdb.d
rm tests/debuginfo/print_gdb.d # works for Cirrus CI though
rm tests/sanitizers/fuzz_basic.d
fi
cd ../build
# temporarily add LLVM bin dir to PATH, so that e.g. wasm-ld is found
PATH="$PWD/../llvm/bin:$PATH" ctest -V -R "lit-tests"
- name: 'Windows: Run LIT testsuite'
if: runner.os == 'Windows'
Expand Down
15 changes: 13 additions & 2 deletions .github/actions/4d-test-libs/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run defaultlib unittests & druntime integration tests
inputs:
arch:
required: false # Windows only
required: true
runs:
using: composite
steps:
Expand All @@ -17,7 +17,18 @@ runs:
else
N=$(nproc)
fi
ctest -j$N --output-on-failure -E "dmd-testsuite|lit-tests|ldc2-unittest"
excludes="dmd-testsuite|lit-tests|ldc2-unittest"
if [[ '${{ runner.os }}-${{ inputs.arch }}' == Linux-aarch64 ]]; then
# FIXME: failing unittest(s)
excludes+='|^std.internal.math.gammafunction'
# FIXME: failing unittest(s) with enabled optimizations
excludes+='|^std.math.exponential(-shared)?$'
# FIXME: subtest rt_trap_exceptions fails
excludes+='|^druntime-test-exceptions-debug$'
fi
ctest -j$N --output-on-failure -E "$excludes"
- name: 'Windows: Run defaultlib unittests & druntime integration tests'
if: runner.os == 'Windows'
Expand Down

0 comments on commit cbcf0a3

Please sign in to comment.