blob: a94d9519d1b4de367f484815c39cc512cb1f66ae [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) }}
Philipp Wagner359de272020-11-10 11:38:10 +000010 # Disable RISC-V Compliance tests due to excessive runtimes in simulation
11 # (#4128).
12 condition: false
Greg Chadwickbf9dc382020-04-17 09:30:40 +010013 displayName: Execute RISC-V compliance tests for ${{ join(' ', parameters.rvc_test_suites) }}
14 pool:
Philipp Wagner5d1450c2020-10-06 12:26:36 +010015 vmImage: ubuntu-18.04
Greg Chadwickbf9dc382020-04-17 09:30:40 +010016 dependsOn:
Michael Schaffner93fe50c2021-03-31 16:25:42 -070017 - chip_earlgrey_verilator
Greg Chadwickbf9dc382020-04-17 09:30:40 +010018 - sw_build
Greg Chadwickbf9dc382020-04-17 09:30:40 +010019 steps:
20 - template: install-package-dependencies.yml
21 - template: download-artifacts-template.yml
22 - bash: |
23 set -x
24 sudo util/get-toolchain.py \
Srikrishna Iyer98333ba2020-11-16 23:12:29 -080025 --install-dir="${TOOLCHAIN_PATH}" \
Greg Chadwickbf9dc382020-04-17 09:30:40 +010026 --release-version="${TOOLCHAIN_VERSION}" \
27 --update
28 displayName: Install toolchain
29 - ${{ each test_suite in parameters.rvc_test_suites }}:
30 - bash: |
31 set -e
Miguel Young de la Sota630e15e2020-09-21 14:44:39 -040032 ci/run_riscv_compliance.sh ${{ test_suite }}
Greg Chadwickbf9dc382020-04-17 09:30:40 +010033 displayName: Execute ${{ test_suite }}