linux/drivers/gpu/drm/ci/kunit.sh
Vignesh Raman 786bd08c00
drm/ci: Add jobs to run KUnit tests
Add jobs to run KUnit tests using tools/testing/kunit/kunit.py tool.

Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com>
Acked-by: Helen Koike <helen.fornazier@gmail.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250623085033.39680-3-vignesh.raman@collabora.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
2025-06-23 11:42:26 +02:00

16 lines
370 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: MIT
set -euxo pipefail
: "${KERNEL_ARCH:?ERROR: KERNEL_ARCH must be set}"
: "${LLVM_VERSION:?ERROR: LLVM_VERSION must be set}"
./drivers/gpu/drm/ci/setup-llvm-links.sh
export PATH="/usr/bin:$PATH"
./tools/testing/kunit/kunit.py run \
--arch "${KERNEL_ARCH}" \
--make_options LLVM=1 \
--kunitconfig=drivers/gpu/drm/tests