Skip to content

Commit 859d3d1

Browse files
committed
[ci] Add RISCOF tests
Run riscv-compliance v2 tests, but ignore failures. RISCOF based compliance check is still in active development and some tests are known to fail.
1 parent c433d25 commit 859d3d1

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

azure-pipelines.yml

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
git clone https://github.com/riscv/riscv-compliance.git
8787
cd riscv-compliance
8888
git checkout "$RISCV_COMPLIANCE_GIT_VERSION"
89+
git worktree add ../riscv-compliance-v2 --detach "$RISCV_COMPLIANCE_GIT_VERSION2"
8990
displayName: Get RISC-V Compliance test suite
9091
9192
# Run Ibex RTL CI per supported configuration

ci/ibex-rtl-ci-steps.yml

+14
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,17 @@ steps:
6565
done
6666
exit $fail
6767
displayName: Run RISC-V Compliance test for Ibex RV32IMC for ${{ config }}
68+
69+
- bash: |
70+
# Run compliance test suite
71+
export IBEX_SIMULATOR=$PWD/build/lowrisc_ibex_ibex_riscv_compliance_0.1/sim-verilator/Vibex_riscv_compliance
72+
export RISCV_PREFIX=riscv32-unknown-elf-
73+
riscof run --config dv/riscof/config.ini --suite build/riscv-compliance-v2/riscv-test-suite --no-browser
74+
if [ $? != 0 ]; then
75+
echo -n "##vso[task.logissue type=error]"
76+
echo "RISCOF compliance test suite failure. Ignoring exit condition."
77+
exit 0
78+
fi
79+
80+
displayName: Run RISC-V Compliance Version 2 test for Ibex RV32IMC for ${{ config }}
81+
continueOnError: true

ci/vars.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ variables:
1010
RISCV_TOOLCHAIN_TAR_VERSION: "20200904-1"
1111
RISCV_TOOLCHAIN_TAR_VARIANT: "lowrisc-toolchain-gcc-rv32imcb"
1212
RISCV_COMPLIANCE_GIT_VERSION: "844c6660ef3f0d9b96957991109dfd80cc4938e2"
13+
RISCV_COMPLIANCE_GIT_VERSION2: "65cd9556846c60608c06e9db22ab573c1e86fe6b"
1314
VERIBLE_VERSION: "v0.0-705-g75249d0"
1415
# lowRISC-internal version numbers of Ibex-specific Spike builds.
1516
SPIKE_IBEX_VERSION: "20201023-git-255bf1cacc599b1413438c269100f3ecd0eb3352"

0 commit comments

Comments
 (0)