mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 07:03:28 -04:00
drm/i915/kunit: Add DP link test stub
Add a Kunit stub test module for DP link test cases. v2: Add missing module license. Reviewed-by: Michał Grzelak <michal.grzelak@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20260701153204.4124150-28-imre.deak@intel.com
This commit is contained in:
@@ -386,6 +386,8 @@ i915-y += \
|
||||
i915-$(CONFIG_DRM_I915_DP_TUNNEL) += \
|
||||
display/intel_dp_tunnel.o
|
||||
|
||||
obj-$(CONFIG_DRM_I915_KUNIT_TEST) += display/tests/
|
||||
|
||||
i915-$(CONFIG_DRM_I915_GVT) += \
|
||||
display/intel_gvt_api.o
|
||||
|
||||
|
||||
7
drivers/gpu/drm/i915/display/tests/Makefile
Normal file
7
drivers/gpu/drm/i915/display/tests/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
subdir-ccflags-y += -I$(srctree)/drivers/gpu/drm/i915/display/
|
||||
|
||||
obj-$(CONFIG_DRM_I915_KUNIT_TEST) += i915_display_test.o
|
||||
i915_display_test-y = \
|
||||
intel_dp_link_test.o
|
||||
47
drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c
Normal file
47
drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c
Normal file
@@ -0,0 +1,47 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
/*
|
||||
* Copyright © 2026 Intel Corporation
|
||||
*/
|
||||
|
||||
#include <kunit/test.h>
|
||||
|
||||
struct test_ctx {
|
||||
};
|
||||
|
||||
static struct kunit_case intel_dp_link_test_cases[] = {
|
||||
{}
|
||||
};
|
||||
|
||||
static struct test_ctx test_ctx;
|
||||
|
||||
static int intel_dp_link_test_init(struct kunit *test)
|
||||
{
|
||||
test->priv = &test_ctx;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void intel_dp_link_test_exit(struct kunit *test)
|
||||
{
|
||||
}
|
||||
|
||||
static int intel_dp_link_test_suite_init(struct kunit_suite *test_suite)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct kunit_suite intel_dp_link_test_suite = {
|
||||
.name = "intel_dp_link",
|
||||
.suite_init = intel_dp_link_test_suite_init,
|
||||
.init = intel_dp_link_test_init,
|
||||
.exit = intel_dp_link_test_exit,
|
||||
.test_cases = intel_dp_link_test_cases,
|
||||
};
|
||||
|
||||
kunit_test_suites(&intel_dp_link_test_suite);
|
||||
|
||||
MODULE_IMPORT_NS("EXPORTED_FOR_KUNIT_TESTING");
|
||||
|
||||
MODULE_AUTHOR("Intel Corporation");
|
||||
MODULE_LICENSE("GPL and additional rights");
|
||||
MODULE_DESCRIPTION("Intel DP link KUnit tests");
|
||||
Reference in New Issue
Block a user