Skip to content

Commit 099b79f

Browse files
committed
drm/doc: Document KUnit expectations
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>
1 parent b93f07c commit 099b79f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/gpu/drm-internals.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ follows:
208208
``CONFIG_VIRTIO_UML`` and ``CONFIG_UML_PCI_OVER_VIRTIO`` are not
209209
included in it because they are only required for User Mode Linux.
210210

211+
KUnit Coverage Rules
212+
~~~~~~~~~~~~~~~~~~~~
213+
214+
KUnit support is gradually added to the DRM framework and helpers. There's no
215+
general requirement for the framework and helpers to have KUnit tests at the
216+
moment. However, patches that are affecting a function or helper already
217+
covered by KUnit tests must provide tests if the change calls for one.
211218

212219
Legacy Support Code
213220
===================

0 commit comments

Comments
 (0)