-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 1.54 KB
/
test.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
name: Testing
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
kunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [ 'arm', 'arm64', 'x86' ]
suite:
- drivers/gpu/drm/vc4/tests
- drivers/gpu/drm/tests
- drivers/fpga/tests
- drivers/base/test
- drivers/input/tests
- drivers/hid
- drivers/gpu/drm/ttm/tests
- fs/ext4
- fs/fat
- net/handshake
exclude:
- arch: arm
suite: drivers/gpu/drm/ttm/tests
- arch: arm64
suite: drivers/gpu/drm/ttm/tests
- arch: x86
suite: drivers/gpu/drm/vc4/tests
env:
ARCH: ${{matrix.arch}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
clean: true
- name: Setup environment
uses: ./.github/actions/setup-env
with:
arch: ${{matrix.arch}}
- name: Run kunit testsuite
run: |
mkdir ${{github.workspace}}/build
if [[ "$ARCH" == "arm"* ]]; then
./tools/testing/kunit/kunit.py run \
--build_dir=${{github.workspace}}/build \
--kunitconfig=${{matrix.suite}} \
--cross_compile=$CROSS_COMPILE --arch=$ARCH
else
./tools/testing/kunit/kunit.py run \
--build_dir=${{github.workspace}}/build \
--kunitconfig=${{matrix.suite}}
fi