Skip to content

Commit 9121710

Browse files
committed
enable additional platforms in CI
in addition, extend vebosity of log files
1 parent 8ea44aa commit 9121710

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.github/workflows/spike-openocd-tests.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Build Spike and run a couple of debug tests.
22

3-
name: Test OpenOCD against 2 spike configurations
3+
name: Test OpenOCD against 4 spike configurations
44

55
env:
66
SPIKE_REPO: https://github.com/riscv-software-src/riscv-isa-sim.git
@@ -115,7 +115,8 @@ jobs:
115115
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
116116
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
117117
--sim_cmd /opt/riscv/spike/bin/spike \
118-
--server_cmd $GITHUB_WORKSPACE/src/openocd
118+
--remotelogfile-enable \
119+
--server_cmd "$GITHUB_WORKSPACE/src/openocd -d3"
119120
120121
- name: Run Spike64-2 Tests
121122
if: success() || steps.spike32-tests.conclusion == 'failure'
@@ -125,7 +126,30 @@ jobs:
125126
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
126127
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
127128
--sim_cmd /opt/riscv/spike/bin/spike \
128-
--server_cmd $GITHUB_WORKSPACE/src/openocd
129+
--remotelogfile-enable \
130+
--server_cmd "$GITHUB_WORKSPACE/src/openocd -d3"
131+
132+
- name: Run Spike64-2-hwthread Tests
133+
if: success() || steps.spike32-tests.conclusion == 'failure'
134+
run: |
135+
cd riscv-tests/debug
136+
./gdbserver.py targets/RISC-V/spike64-2-hwthread.py --print-failures \
137+
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
138+
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
139+
--sim_cmd /opt/riscv/spike/bin/spike \
140+
--remotelogfile-enable \
141+
--server_cmd "$GITHUB_WORKSPACE/src/openocd -d3"
142+
143+
- name: Run Spike32-2-hwthread Tests
144+
if: success() || steps.spike32-tests.conclusion == 'failure'
145+
run: |
146+
cd riscv-tests/debug
147+
./gdbserver.py targets/RISC-V/spike32-2-hwthread.py --print-failures \
148+
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
149+
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
150+
--sim_cmd /opt/riscv/spike/bin/spike \
151+
--remotelogfile-enable \
152+
--server_cmd "$GITHUB_WORKSPACE/src/openocd -d3"
129153
130154
- name: Archive test logs
131155
# Proceed even if there was a failed test

0 commit comments

Comments
 (0)