This patch introduces an initial KUnit test suite for GEM objects backed by shmem buffers. Suggested-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Marco Pagani <marpagan@redhat.com> v5: - using __drm_kunit_helper_alloc_drm_device() to avoid local struct v4: - Add missing MMU dependency for DRM_GEM_SHMEM_HELPER (kernel test robot) v3: - Explicitly cast pointers in the helpers - Removed unused pointer to parent dev in struct fake_dev - Test entries reordering in Kconfig and Makefile sent as a separate patch v2: - Improved description of test cases - Cleaner error handling using KUnit actions - Alphabetical order in Kconfig and Makefile Signed-off-by: Maxime Ripard <mripard@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20231130171417.74162-1-marpagan@redhat.com
25 lines
565 B
Makefile
25 lines
565 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_DRM_KUNIT_TEST_HELPERS) += \
|
|
drm_kunit_helpers.o
|
|
|
|
obj-$(CONFIG_DRM_KUNIT_TEST) += \
|
|
drm_buddy_test.o \
|
|
drm_cmdline_parser_test.o \
|
|
drm_connector_test.o \
|
|
drm_damage_helper_test.o \
|
|
drm_dp_mst_helper_test.o \
|
|
drm_exec_test.o \
|
|
drm_format_helper_test.o \
|
|
drm_format_test.o \
|
|
drm_framebuffer_test.o \
|
|
drm_gem_shmem_test.o \
|
|
drm_managed_test.o \
|
|
drm_mm_test.o \
|
|
drm_modes_test.o \
|
|
drm_plane_helper_test.o \
|
|
drm_probe_helper_test.o \
|
|
drm_rect_test.o
|
|
|
|
CFLAGS_drm_mm_test.o := $(DISABLE_STRUCTLEAK_PLUGIN)
|