aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarek Vrbka <marek.vrbka@codasip.com>2023-07-18 14:20:50 +0200
committerMarek Vrbka <marek.vrbka@codasip.com>2023-07-18 14:48:31 +0200
commitdeb0d918e26c24fcab10485a916c20a134f33cdf (patch)
treedd390a77723c2beb768371eb3e86429e8f523ac7 /.github
parentb67b80c6ac6476228fa2856b647b416796b3d72a (diff)
downloadriscv-openocd-deb0d918e26c24fcab10485a916c20a134f33cdf.zip
riscv-openocd-deb0d918e26c24fcab10485a916c20a134f33cdf.tar.gz
riscv-openocd-deb0d918e26c24fcab10485a916c20a134f33cdf.tar.bz2
github/ci Make Spike64-2 tests run regardless if Spike32 tests result
This patch separates the Spike tests into their own jobs and makes them run regardless of the results of the previous test. Previously, if Spike32 tests failed, Spike64-2 tests did not even run. This can be an issue if new tests are added in the riscv-tests repository which are not yet passing on riscv-openocd. Change-Id: I0bdaee5fbbba5582babab40f176cfab49660c246 Signed-off-by: Marek Vrbka <marek.vrbka@codasip.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/spike-openocd-tests.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/spike-openocd-tests.yml b/.github/workflows/spike-openocd-tests.yml
index 72cc6ea..da91159 100644
--- a/.github/workflows/spike-openocd-tests.yml
+++ b/.github/workflows/spike-openocd-tests.yml
@@ -100,7 +100,8 @@ jobs:
git checkout "$RISCV_TESTS_REV"
git submodule update --init --recursive
- - name: Run Tests
+ - name: Run Spike32 Tests
+ id: spike32-tests
run: |
cd riscv-tests/debug
./gdbserver.py targets/RISC-V/spike32.py --print-failures \
@@ -108,6 +109,11 @@ jobs:
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
--sim_cmd /opt/riscv/spike/bin/spike \
--server_cmd $GITHUB_WORKSPACE/src/openocd
+
+ - name: Run Spike64-2 Tests
+ if: success() || steps.spike32-tests.conclusion == 'failure'
+ run: |
+ cd riscv-tests/debug
./gdbserver.py targets/RISC-V/spike64-2.py --print-failures \
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \