blob: 57c1ecb5ac7390b178403d0337ba52ccc6a936f7 [file] [log] [blame]
Sam Elliott45fb1c62020-06-02 18:18:54 +01001# Copyright lowRISC contributors.
2# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3# SPDX-License-Identifier: Apache-2.0
4
Greg Chadwickbf9dc382020-04-17 09:30:40 +01005parameters:
6 rvc_test_suites: []
7
8jobs:
9 - job: riscv_compliance_tests_${{ join('_', parameters.rvc_test_suites) }}
10 displayName: Execute RISC-V compliance tests for ${{ join(' ', parameters.rvc_test_suites) }}
11 pool:
12 vmImage: ubuntu-16.04
13 dependsOn:
14 - top_earlgrey_verilator
15 - sw_build
Greg Chadwickbf9dc382020-04-17 09:30:40 +010016 steps:
17 - template: install-package-dependencies.yml
18 - template: download-artifacts-template.yml
19 - bash: |
20 set -x
21 sudo util/get-toolchain.py \
22 --target-dir="${TOOLCHAIN_PATH}" \
23 --release-version="${TOOLCHAIN_VERSION}" \
24 --update
25 displayName: Install toolchain
26 - ${{ each test_suite in parameters.rvc_test_suites }}:
27 - bash: |
28 set -e
29 . util/build_consts.sh
30 export TARGET_SIM="$BIN_DIR/hw/top_earlgrey/Vtop_earlgrey_verilator"
31 export RISCV_DEVICE=rv32imc
32 export RISCV_TARGET=opentitan
33 export OT_BIN="$BIN_DIR"
34 export OT_TARGET=verilator
35 export OT_TOOLS="$TOOLCHAIN_PATH/bin"
36 cd sw/vendor/riscv_compliance
37 make RISCV_ISA=${{ test_suite }}
38 displayName: Execute ${{ test_suite }}