mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-26 14:59:32 +00:00

Add the required boilerplate to start creating KUnit test. To run the tests: $ ./tools/testing/kunit/kunit.py run \ --kunitconfig=drivers/gpu/drm/vkms/tests Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com> Co-developed-by: Arthur Grillo <arthurgrillo@riseup.net> Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net> Co-developed-by: Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250218101214.5790-4-jose.exposito89@gmail.com Signed-off-by: Maxime Ripard <mripard@kernel.org>
32 lines
889 B
Plaintext
32 lines
889 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config DRM_VKMS
|
|
tristate "Virtual KMS (EXPERIMENTAL)"
|
|
depends on DRM && MMU
|
|
select DRM_CLIENT_SELECTION
|
|
select DRM_KMS_HELPER
|
|
select DRM_GEM_SHMEM_HELPER
|
|
select CRC32
|
|
default n
|
|
help
|
|
Virtual Kernel Mode-Setting (VKMS) is used for testing or for
|
|
running GPU in a headless machines. Choose this option to get
|
|
a VKMS.
|
|
|
|
If M is selected the module will be called vkms.
|
|
|
|
config DRM_VKMS_KUNIT_TEST
|
|
tristate "KUnit tests for VKMS" if !KUNIT_ALL_TESTS
|
|
depends on DRM_VKMS && KUNIT
|
|
default KUNIT_ALL_TESTS
|
|
help
|
|
This builds unit tests for VKMS. This option is not useful for
|
|
distributions or general kernels, but only for kernel
|
|
developers working on VKMS.
|
|
|
|
For more information on KUnit and unit tests in general,
|
|
please refer to the KUnit documentation in
|
|
Documentation/dev-tools/kunit/.
|
|
|
|
If in doubt, say "N".
|