File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ include:
111
111
- drivers/gpu/drm/ci/build.yml
112
112
- drivers/gpu/drm/ci/test.yml
113
113
- drivers/gpu/drm/ci/check-devicetrees.yml
114
+ - drivers/gpu/drm/ci/kunit.yml
114
115
- ' https://gitlab.freedesktop.org/gfx-ci/lab-status/-/raw/main/lab-status.yml'
115
116
116
117
@@ -121,6 +122,7 @@ stages:
121
122
- build-for-tests
122
123
- build-only
123
124
- static-checks
125
+ - kunit
124
126
- code-validation
125
127
- amdgpu
126
128
- i915
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ set -euxo pipefail
5
+
6
+ : " ${KERNEL_ARCH:? ERROR: KERNEL_ARCH must be set} "
7
+ : " ${LLVM_VERSION:? ERROR: LLVM_VERSION must be set} "
8
+
9
+ ./drivers/gpu/drm/ci/setup-llvm-links.sh
10
+
11
+ export PATH=" /usr/bin:$PATH "
12
+
13
+ ./tools/testing/kunit/kunit.py run \
14
+ --arch " ${KERNEL_ARCH} " \
15
+ --make_options LLVM=1 \
16
+ --kunitconfig=drivers/gpu/drm/tests
Original file line number Diff line number Diff line change
1
+ .kunit-packages : &kunit-packages
2
+ - apt-get update -qq
3
+ # Minimum supported version of LLVM for building x86 kernels is 15.0.0.
4
+ # In mesa-ci containers, LLVM_VERSION is defined as a container-level property and is currently set to 19.
5
+ - apt-get install -y --no-install-recommends clang-${LLVM_VERSION} lld-${LLVM_VERSION} llvm-${LLVM_VERSION}
6
+
7
+ .kunit-base :
8
+ stage : kunit
9
+ timeout : " 30m"
10
+ variables :
11
+ GIT_DEPTH : 1
12
+ script :
13
+ - drivers/gpu/drm/ci/kunit.sh
14
+
15
+ kunit:arm32 :
16
+ extends :
17
+ - .build:arm32
18
+ - .kunit-base
19
+ before_script :
20
+ - *kunit-packages
21
+ - apt-get install -y --no-install-recommends qemu-system-arm
22
+
23
+ kunit:arm64 :
24
+ extends :
25
+ - .build:arm64
26
+ - .kunit-base
27
+ before_script :
28
+ - *kunit-packages
29
+ - apt-get install -y --no-install-recommends qemu-system-aarch64
30
+
31
+ kunit:x86_64 :
32
+ extends :
33
+ - .build:x86_64
34
+ - .kunit-base
35
+ before_script :
36
+ - *kunit-packages
37
+ - apt-get install -y --no-install-recommends qemu-system-x86
You can’t perform that action at this time.
0 commit comments