@@ -109,6 +109,7 @@ include:
- drivers/gpu/drm/ci/build.yml
- drivers/gpu/drm/ci/test.yml
- drivers/gpu/drm/ci/check-devicetrees.yml
+ - drivers/gpu/drm/ci/kunit.yml
- 'https://gitlab.freedesktop.org/gfx-ci/lab-status/-/raw/main/lab-status.yml'
new file mode 100755
@@ -0,0 +1,11 @@
+#!/bin/bash
+# SPDX-License-Identifier: MIT
+
+set -euxo pipefail
+
+: "${KERNEL_ARCH:?ERROR: KERNEL_ARCH must be set}"
+
+./tools/testing/kunit/kunit.py run \
+ --arch "${KERNEL_ARCH}" \
+ --make_option LLVM=1 \
+ --kunitconfig=drivers/gpu/drm/tests
new file mode 100644
@@ -0,0 +1,32 @@
+.kunit-packages: &kunit-packages
+ - apt-get update -qq
+ - apt-get install -y --no-install-recommends clang lld llvm
+
+.kunit-base:
+ timeout: "30m"
+ script:
+ - drivers/gpu/drm/ci/kunit.sh
+
+kunit:arm32:
+ extends:
+ - .build:arm32
+ - .kunit-base
+ before_script:
+ - *kunit-packages
+ - apt-get install -y --no-install-recommends qemu-system-arm
+
+kunit:arm64:
+ extends:
+ - .build:arm64
+ - .kunit-base
+ before_script:
+ - *kunit-packages
+ - apt-get install -y --no-install-recommends qemu-system-aarch64
+
+kunit:x86_64:
+ extends:
+ - .build:x86_64
+ - .kunit-base
+ before_script:
+ - *kunit-packages
+ - apt-get install -y --no-install-recommends qemu-system-x86
Add jobs to run KUnit tests using tools/testing/kunit/kunit.py tool. Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com> --- v2: - Run KUnit tests with LLVM. --- drivers/gpu/drm/ci/gitlab-ci.yml | 1 + drivers/gpu/drm/ci/kunit.sh | 11 +++++++++++ drivers/gpu/drm/ci/kunit.yml | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100755 drivers/gpu/drm/ci/kunit.sh create mode 100644 drivers/gpu/drm/ci/kunit.yml