public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] kunit: Expose some built-in features to modules
@ 2023-07-31 14:10 Janusz Krzysztofik
  2023-07-31 14:10 ` [PATCH v3 1/3] kunit: Report the count of test suites in a module Janusz Krzysztofik
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Janusz Krzysztofik @ 2023-07-31 14:10 UTC (permalink / raw)
  To: Brendan Higgins, David Gow
  Cc: linux-kselftest, kunit-dev, Mauro Carvalho Chehab, igt-dev,
	intel-xe, linux-kernel, Janusz Krzysztofik

Submit the top-level headers also from the kunit test module notifier
initialization callback, so external tools that are parsing dmesg for
kunit test output are able to tell how many test suites should be expected
and whether to continue parsing after complete output from the first test
suite is collected.

Extend kunit module notifier initialization callback with a processing
path for only listing the tests provided by a module if the kunit action
parameter is set to "list", so external tools can obtain a list of test
cases to be executed in advance and can make a better job on assigning
kernel messages interleaved with kunit output to specific tests.

Use test filtering functions in kunit module notifier callback functions,
so external tools are able to execute individual test cases from kunit
test modules in order to still better isolate their potential impact on
kernel messages that appear interleaved with output from other tests.

v3: Fix CONFIG_GLOB, required by filtering fuctions, not selected when
    building as a module.
v2: Fix new name of a structure moved to kunit namespace not updated
    across all uses.

Janusz Krzysztofik (3):
  kunit: Report the count of test suites in a module
  kunit: Make 'list' action available to kunit test modules
  kunit: Allow kunit test modules to use test filtering

 include/kunit/test.h | 14 +++++++++++
 lib/kunit/Kconfig    |  2 +-
 lib/kunit/executor.c | 57 +++++++++++++++++++++++++-------------------
 lib/kunit/test.c     | 57 +++++++++++++++++++++++++++++++++++++++++++-
 4 files changed, 104 insertions(+), 26 deletions(-)

-- 
2.41.0


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

end of thread, other threads:[~2023-08-04  9:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-31 14:10 [PATCH v3 0/3] kunit: Expose some built-in features to modules Janusz Krzysztofik
2023-07-31 14:10 ` [PATCH v3 1/3] kunit: Report the count of test suites in a module Janusz Krzysztofik
2023-08-01 13:17   ` Mauro Carvalho Chehab
2023-08-01 15:13     ` Janusz Krzysztofik
2023-08-03 20:57   ` Rae Moar
2023-08-04  9:33     ` Janusz Krzysztofik
2023-07-31 14:10 ` [PATCH v3 2/3] kunit: Make 'list' action available to kunit test modules Janusz Krzysztofik
2023-08-01 13:21   ` Mauro Carvalho Chehab
2023-08-01 15:18     ` Janusz Krzysztofik
2023-08-03 21:27   ` Rae Moar
2023-07-31 14:10 ` [PATCH v3 3/3] kunit: Allow kunit test modules to use test filtering Janusz Krzysztofik

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