Skip to content

Commit

Permalink
enable additional platforms in CI
Browse files Browse the repository at this point in the history
in addition, extend vebosity of log files
  • Loading branch information
aap-sc committed Aug 31, 2024
1 parent 8ea44aa commit 9121710
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/spike-openocd-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build Spike and run a couple of debug tests.

name: Test OpenOCD against 2 spike configurations
name: Test OpenOCD against 4 spike configurations

env:
SPIKE_REPO: https://github.com/riscv-software-src/riscv-isa-sim.git
Expand Down Expand Up @@ -115,7 +115,8 @@ jobs:
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
--sim_cmd /opt/riscv/spike/bin/spike \
--server_cmd $GITHUB_WORKSPACE/src/openocd
--remotelogfile-enable \
--server_cmd "$GITHUB_WORKSPACE/src/openocd -d3"
- name: Run Spike64-2 Tests
if: success() || steps.spike32-tests.conclusion == 'failure'
Expand All @@ -125,7 +126,30 @@ jobs:
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
--sim_cmd /opt/riscv/spike/bin/spike \
--server_cmd $GITHUB_WORKSPACE/src/openocd
--remotelogfile-enable \
--server_cmd "$GITHUB_WORKSPACE/src/openocd -d3"
- name: Run Spike64-2-hwthread Tests
if: success() || steps.spike32-tests.conclusion == 'failure'
run: |
cd riscv-tests/debug
./gdbserver.py targets/RISC-V/spike64-2-hwthread.py --print-failures \
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
--sim_cmd /opt/riscv/spike/bin/spike \
--remotelogfile-enable \
--server_cmd "$GITHUB_WORKSPACE/src/openocd -d3"
- name: Run Spike32-2-hwthread Tests
if: success() || steps.spike32-tests.conclusion == 'failure'
run: |
cd riscv-tests/debug
./gdbserver.py targets/RISC-V/spike32-2-hwthread.py --print-failures \
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
--sim_cmd /opt/riscv/spike/bin/spike \
--remotelogfile-enable \
--server_cmd "$GITHUB_WORKSPACE/src/openocd -d3"
- name: Archive test logs
# Proceed even if there was a failed test
Expand Down

0 comments on commit 9121710

Please sign in to comment.