2022-05-09 13:09:47

by Javier Martinez Canillas

[permalink] [raw]
Subject: [PATCH] drm/todo: Add entry for converting kselftests to kunit

Many of the kselftests in DRM can be converted to kunit tests instead,
since that framework is more suitable for unit testing.

Suggested-by: Maxime Ripard <[email protected]>
Signed-off-by: Javier Martinez Canillas <[email protected]>
---

Documentation/gpu/todo.rst | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst
index 10bfb50908d1..513b20ccef1e 100644
--- a/Documentation/gpu/todo.rst
+++ b/Documentation/gpu/todo.rst
@@ -617,6 +617,17 @@ Contact: Javier Martinez Canillas <[email protected]>

Level: Intermediate

+Convert Kernel Selftests (kselftest) to KUnit tests when appropriate
+--------------------------------------------------------------------
+
+Many of the `Kselftest <https://www.kernel.org/doc/html/latest/dev-tools/kselftest.html>`_
+tests in DRM could be converted to Kunit tests instead, since that framework
+is more suitable for unit testing.
+
+Contact: Javier Martinez Canillas <[email protected]>
+
+Level: Starter
+
Enable trinity for DRM
----------------------

--
2.35.1



2022-05-09 13:59:42

by Maxime Ripard

[permalink] [raw]
Subject: Re: [PATCH] drm/todo: Add entry for converting kselftests to kunit

On Mon, May 09, 2022 at 03:08:46PM +0200, Javier Martinez Canillas wrote:
> Many of the kselftests in DRM can be converted to kunit tests instead,
> since that framework is more suitable for unit testing.
>
> Suggested-by: Maxime Ripard <[email protected]>
> Signed-off-by: Javier Martinez Canillas <[email protected]>

Acked-by: Maxime Ripard <[email protected]>

Maxime


Attachments:
(No filename) (384.00 B)
signature.asc (235.00 B)
Download all attachments

2022-05-11 16:16:04

by Javier Martinez Canillas

[permalink] [raw]
Subject: Re: [PATCH] drm/todo: Add entry for converting kselftests to kunit

On 5/9/22 15:08, Javier Martinez Canillas wrote:
> Many of the kselftests in DRM can be converted to kunit tests instead,
> since that framework is more suitable for unit testing.
>
> Suggested-by: Maxime Ripard <[email protected]>
> Signed-off-by: Javier Martinez Canillas <[email protected]>
> ---

Pushed this to drm-misc (drm-misc-next).

--
Best regards,

Javier Martinez Canillas
Linux Engineering
Red Hat