Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/native-runtime-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,10 @@ jobs:
- name: Test
if: matrix.test_script != ''
run: ./qualcomm-software/scripts/${{ matrix.test_script }}

- name: Upload test results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: always()
with:
name: test-results-${{ matrix.build_script }}-${{ matrix.target_os }}
path: build/**/lit_results.junit.xml
14 changes: 14 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ jobs:
- name: Test
run: ./qualcomm-software/scripts/test.sh

- name: Upload test results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: always()
with:
name: test-results-build.sh-Linux-x86
path: build/**/lit_results.junit.xml

build-and-test:
if: github.repository == 'qualcomm/cpullvm-toolchain'
name: ${{ matrix.build_script }} on ${{ matrix.target_os }}
Expand Down Expand Up @@ -142,3 +149,10 @@ jobs:
- name: Test
if: matrix.test_script != ''
run: ./qualcomm-software/scripts/${{ matrix.test_script }}

- name: Upload test results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: always()
with:
name: test-results-${{ matrix.build_script }}-${{ matrix.target_os }}
path: build/**/lit_results.junit.xml
10 changes: 10 additions & 0 deletions qualcomm-software/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ set -ex
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
REPO_ROOT=$( git -C "${SCRIPT_DIR}" rev-parse --show-toplevel )

# If a test fails, lit will ordinarily return a non-zero result,
# which prevents further testing. Setting the --ignore-fail option
# will cause testing to continue, so that CI systems can get a
# full set of results.
# The lit test suites do not generate xml results by default.
# This can be enabled with the --xunit-xml-output option. The file
# written will be relative to the individual suite's build directly,
# so the same name can be used for all files for consistency.
export LIT_OPTS="--ignore-fail --xunit-xml-output=lit_results.junit.xml"

# Run all relevant test targets. This might be too broad eventually,
# but while we have a limited number of variants (and no compiler-rt
# or libc++ testing enabled) we can run everything.
Expand Down
Loading