public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation: kunit: Clarify test filter format
@ 2024-03-28 14:20 Brendan Jackman
  2024-03-28 18:27 ` Daniel Latypov
  2024-05-14 22:54 ` David Gow
  0 siblings, 2 replies; 4+ messages in thread
From: Brendan Jackman @ 2024-03-28 14:20 UTC (permalink / raw)
  To: linux-kselftest, kunit-dev, linux-doc, linux-kernel
  Cc: Brendan Higgins, davidgow, rmoar, corbet, Brendan Jackman

It seems obvious once you know, but at first I didn't realise that the
suite name is part of this format. Document it and add example.

Signed-off-by: Brendan Jackman <jackmanb@google.com>
---
 Documentation/dev-tools/kunit/run_wrapper.rst | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Documentation/dev-tools/kunit/run_wrapper.rst b/Documentation/dev-tools/kunit/run_wrapper.rst
index 19ddf5e07013..e75a5fc05814 100644
--- a/Documentation/dev-tools/kunit/run_wrapper.rst
+++ b/Documentation/dev-tools/kunit/run_wrapper.rst
@@ -156,13 +156,20 @@ Filtering tests
 ===============
 
 By passing a bash style glob filter to the ``exec`` or ``run``
-commands, we can run a subset of the tests built into a kernel . For
+commands, we can run a subset of the tests built into a kernel,
+identified by a string like ``$suite_name.$test_name``. For
 example: if we only want to run KUnit resource tests, use:
 
 .. code-block::
 
 	./tools/testing/kunit/kunit.py run 'kunit-resource*'
 
+Or to run just one specific test from that suite:
+
+.. code-block::
+
+	./tools/testing/kunit/kunit.py run 'kunit-resource-test.kunit_resource_test_init_resources'
+
 This uses the standard glob format with wildcard characters.
 
 .. _kunit-on-qemu:
-- 
2.44.0.396.g6e790dbe36-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-14 22:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-28 14:20 [PATCH] Documentation: kunit: Clarify test filter format Brendan Jackman
2024-03-28 18:27 ` Daniel Latypov
2024-04-02  9:52   ` Brendan Jackman
2024-05-14 22:54 ` David Gow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox