-
Notifications
You must be signed in to change notification settings - Fork 36
78 lines (68 loc) · 2.25 KB
/
run_regression_tests.yaml
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
name: Run regression tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
regression_tests:
name: ${{matrix.version}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [
'6.12',
'6.11.9',
'6.10.14',
'6.9.12',
'6.8.12',
'6.7.12',
'6.6.62',
'6.1.118',
'5.15.173',
'5.10.230',
'5.4.286',
'4.19.324',
'4.14.336',
'4.9.337',
'3.18.140',
'3.10.108',
'5.14.0-503.11.1.el9_5^AlmaLinux^9.5',
'5.14.0-427.42.1.el9_4^AlmaLinux^9.4',
'5.14.0-362.24.2.el9_3^AlmaLinux^9.3',
'5.14.0-284.30.1.el9_2^AlmaLinux^9.2',
'4.18.0-513.24.1.el8_9^AlmaLinux^8.9',
'4.18.0-477.13.1.el8_8^AlmaLinux^8.8',
'4.18.0-425.19.2.el8_7^AlmaLinux^8.7',
'4.18.0-372.32.1.el8_6^AlmaLinux^8.6',
'3.10.0-1160.118.1.el7^CentOS^7.9.2009',
'5.15.0-302.167.6.el9uek^UEK^9',
'5.4.17-2136.337.5.1.el8uek^UEK^8',
'4.14.35-2047.542.2.el7uek^UEK^7',
'4.1.12-124.48.6.el6uek^UEK^6'
]
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Install libelf-dev
run: |
sudo apt-get install -y libelf-dev
- name: Install sparse
run: |
sudo apt-get install sparse
- name: Install smatch
run: |
git clone https://github.com/error27/smatch.git
cd smatch
make -j
sudo BINDIR=/bin SHAREDIR=/home/runner/share make install
- name: Run regression tests
run: |
err=0
./scripts/run-regression-tests -l -q -k -d /tmp/scst-${{matrix.version}} ${{matrix.version}}-nc-ns-nm | tee output.txt
cat output.txt | grep -A1 "Compiling the patched kernel" | grep -e "FAILED" -e "[^0] errors" > /dev/null 2>&1 && err=1
rm -f output.txt
exit $err