1
1
# Build Spike and run a couple of debug tests.
2
2
3
- name : Test OpenOCD against 2 spike configurations
3
+ name : Test OpenOCD against 4 spike configurations
4
4
5
5
env :
6
6
SPIKE_REPO : https://github.com/riscv-software-src/riscv-isa-sim.git
@@ -115,7 +115,8 @@ jobs:
115
115
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
116
116
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
117
117
--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"
119
120
120
121
- name : Run Spike64-2 Tests
121
122
if : success() || steps.spike32-tests.conclusion == 'failure'
@@ -125,7 +126,30 @@ jobs:
125
126
--gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \
126
127
--gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \
127
128
--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"
129
153
130
154
- name : Archive test logs
131
155
# Proceed even if there was a failed test
0 commit comments