]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/doc: Document KUnit expectations
authorMaxime Ripard <mripard@kernel.org>
Mon, 13 Jan 2025 10:11:00 +0000 (11:11 +0100)
committerMaxime Ripard <mripard@kernel.org>
Wed, 26 Feb 2025 15:04:15 +0000 (16:04 +0100)
The DRM and KMS frameworks and helpers gain more and more kunit
coverage, so let's document what our expectations are.

Suggested-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: MaĆ­ra Canal <mcanal@igalia.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250113101100.1373856-1-mripard@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Documentation/gpu/drm-internals.rst

index cb9ae282771c8ade7148a5e777da27a95ddbb108..94f93fd3b8a0a0d5b4f400b1c030916bab5af4fe 100644 (file)
@@ -208,6 +208,13 @@ follows:
        ``CONFIG_VIRTIO_UML`` and ``CONFIG_UML_PCI_OVER_VIRTIO`` are not
        included in it because they are only required for User Mode Linux.
 
+KUnit Coverage Rules
+~~~~~~~~~~~~~~~~~~~~
+
+KUnit support is gradually added to the DRM framework and helpers. There's no
+general requirement for the framework and helpers to have KUnit tests at the
+moment. However, patches that are affecting a function or helper already
+covered by KUnit tests must provide tests if the change calls for one.
 
 Legacy Support Code
 ===================