-
Notifications
You must be signed in to change notification settings - Fork 76
95 lines (83 loc) · 3.3 KB
/
test-regression-exceptions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Regression exceptions tests
on:
workflow_call:
jobs:
regression-tests:
name: Regression exceptions tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:20250103160559
strategy:
matrix:
bus: ["axi"]
test: ["machine_external_ints", "dbus_store_error", "lsu_trigger_hit", "machine_external_vec_ints", "dside_pic_access_error",
"iside_fetch_precise_bus_error", "dside_access_region_prediction_error", "cmark", "iside_core_local_unmapped_address_error",
"dside_access_across_region_boundary", "nmi_pin_assertion", "dside_size_misaligned_access_to_non_idempotent_address",
"dside_core_local_access_unmapped_address_error", "dbus_nonblocking_load_error", "internal_timer_ints", "ebreak_ecall", "illegal_instruction",
"clk_override", "core_pause"]
coverage: ["branch", "toggle"] #TODO: add functional coverage
cache_waypack: ["0", "1"]
priv: ["0"]
env:
DEBIAN_FRONTEND: "noninteractive"
CCACHE_DIR: "/opt/regression/.cache/"
steps:
- name: Install utils
run: |
sudo apt -qqy update && sudo apt -qqy --no-install-recommends install \
git python3 python3-pip build-essential ninja-build ccache \
gcc-riscv64-unknown-elf
pip3 install meson
- name: Setup repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install coverage dependencies
shell: bash
run: |
python3 -m venv .venv
source .venv/bin/activate
pip install -r .github/scripts/requirements-coverage.txt
echo "PATH=$PATH" >> $GITHUB_ENV
- name: Setup environment
shell: bash
run: |
echo "/opt/verilator/bin" >> $GITHUB_PATH
RV_ROOT=`pwd`
echo "RV_ROOT=$RV_ROOT" >> $GITHUB_ENV
PYTHONUNBUFFERED=1
echo "PYTHONUNBUFFERED=$PYTHONUNBUFFERED" >> $GITHUB_ENV
TEST_PATH=$RV_ROOT/test_results
echo "TEST_PATH=$TEST_PATH" >> $GITHUB_ENV
- name: Run tests
shell: bash
run: |
export PATH=/opt/verilator/bin:$PATH
export RV_ROOT=`pwd`
.github/scripts/run_regression_test.sh $TEST_PATH ${{ matrix.bus }} ${{ matrix.test}} ${{ matrix.coverage }} ${{ matrix.priv }} ${{ matrix.cache_waypack }}
- name: Prepare coverage data
shell: bash
run: |
source .venv/bin/activate
sis -d convert --dat-dir ${TEST_PATH}/
mkdir -p results
mv ${TEST_PATH}/coverage.info \
results/coverage_exceptions_${{ matrix.bus }}_${{ matrix.test }}_${{ matrix.waypack }}_${{ matrix.coverage }}.info
- name: Pack artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: regression_tests_coverage_data
path: results/*.info
custom-regression-exceptions-tests:
name: Custom regression exceptions tests
runs-on: [ self-hosted, Linux, X64, gcp-custom-runners ]
container: centos:8
env:
GHA_EXTERNAL_DISK: additional-tools
GHA_SA: gh-sa-veer-uploader
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Run tests
run: _secret_custom_regression_exceptions_tests