Thread (26 messages) 26 messages, 4 authors, 2025-03-13
STALE487d REVIEWED: 1 (0M)
Revisions (8)
  1. v13 [diff vs current]
  2. v13 [diff vs current]
  3. v14 [diff vs current]
  4. v15 [diff vs current]
  5. v16 [diff vs current]
  6. v16 current
  7. v17 [diff vs current]
  8. v18 [diff vs current]

[PATCH v16 6/7] drm/vkms: Add how to run the Kunit tests

From: José Expósito <hidden>
Date: 2025-01-31 08:41:34
Also in: dri-devel, lkml

From: Arthur Grillo <redacted>

Now that we have KUnit tests, add instructions on how to run them.

Signed-off-by: Arthur Grillo <redacted>
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
Oh nice, I missed this in [1].

Reviewed-by: José Expósito <redacted>

[1] https://patchwork.kernel.org/project/dri-devel/patch/20250129110059.12199-3-jose.exposito89@gmail.com/
quoted hunk ↗ jump to hunk
---
 Documentation/gpu/vkms.rst | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff --git a/Documentation/gpu/vkms.rst b/Documentation/gpu/vkms.rst
index 13b866c3617cd44043406252d3caa912c931772f..5ef5ef2e6a210382a070eaf3552bbce75b04ff0c 100644
--- a/Documentation/gpu/vkms.rst
+++ b/Documentation/gpu/vkms.rst
@@ -89,6 +89,17 @@ You can also run subtests if you do not want to run the entire test::
   sudo ./build/tests/kms_flip --run-subtest basic-plain-flip --device "sys:/sys/devices/platform/vkms"
   sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/tests/kms_flip --run-subtest basic-plain-flip
 
+Testing With KUnit
+==================
+
+KUnit (Kernel unit testing framework) provides a common framework for unit tests
+within the Linux kernel.
+More information in ../dev-tools/kunit/index.rst .
+
+To run the VKMS KUnit tests::
+
+  tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/vkms/tests
+
 TODO
 ====
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help