From: Maxime Ripard Date: Mon, 13 Jan 2025 10:11:00 +0000 (+0100) Subject: drm/doc: Document KUnit expectations X-Git-Tag: v6.15-rc1~120^2~14^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=099b79f94366f3110783301e20d8136d762247f8;p=thirdparty%2Flinux.git 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 Acked-by: MaĆ­ra Canal Acked-by: Tvrtko Ursulin Reviewed-by: Javier Martinez Canillas Acked-by: Jani Nikula Acked-by: Simona Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20250113101100.1373856-1-mripard@kernel.org Signed-off-by: Maxime Ripard --- diff --git a/Documentation/gpu/drm-internals.rst b/Documentation/gpu/drm-internals.rst index cb9ae282771c8..94f93fd3b8a0a 100644 --- a/Documentation/gpu/drm-internals.rst +++ b/Documentation/gpu/drm-internals.rst @@ -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 ===================