Skip to content

Commit 92238b3

Browse files
roxellshuahkh
authored andcommitted
kunit: Kconfig: enable a KUNIT_ALL_TESTS fragment
Make it easier to enable all KUnit fragments. This is useful for kernel devs or testers, so its easy to get all KUnit tests enabled and if new gets added they will be enabled as well. Fragments that has to be builtin will be missed if CONFIG_KUNIT_ALL_TESTS is set as a module. Signed-off-by: Anders Roxell <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 01397e8 commit 92238b3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/kunit/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,18 @@ config KUNIT_EXAMPLE_TEST
4141
is intended for curious hackers who would like to understand how to
4242
use KUnit for kernel development.
4343

44+
config KUNIT_ALL_TESTS
45+
tristate "All KUnit tests with satisfied dependencies"
46+
help
47+
Enables all KUnit tests, if they can be enabled.
48+
KUnit tests run during boot and output the results to the debug log
49+
in TAP format (http://testanything.org/). Only useful for kernel devs
50+
running the KUnit test harness, and not intended for inclusion into a
51+
production build.
52+
53+
For more information on KUnit and unit tests in general please refer
54+
to the KUnit documentation in Documentation/dev-tools/kunit/.
55+
56+
If unsure, say N.
57+
4458
endif # KUNIT

0 commit comments

Comments
 (0)