Sam Elliott | 45fb1c6 | 2020-06-02 18:18:54 +0100 | [diff] [blame] | 1 | # 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 Chadwick | bf9dc38 | 2020-04-17 09:30:40 +0100 | [diff] [blame] | 5 | parameters: |
| 6 | rvc_test_suites: [] |
| 7 | |
| 8 | jobs: |
| 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 Chadwick | bf9dc38 | 2020-04-17 09:30:40 +0100 | [diff] [blame] | 16 | 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 }} |