Skip to content

Commit 6aa9826

Browse files
Thadeu Lima de Souza Cascardogregkh
authored andcommitted
char: misc: improve testing Kconfig description
Describe that it tests the miscdevice API and include the usual disclaimer about KUnit not being fit for production kernels. While at it, also fix KUnit capitalization. Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d940667 commit 6aa9826

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

lib/Kconfig.debug

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,13 +2479,20 @@ config TEST_IDA
24792479
tristate "Perform selftest on IDA functions"
24802480

24812481
config TEST_MISC_MINOR
2482-
tristate "Basic misc minor Kunit test" if !KUNIT_ALL_TESTS
2482+
tristate "miscdevice KUnit test" if !KUNIT_ALL_TESTS
24832483
depends on KUNIT
24842484
default KUNIT_ALL_TESTS
24852485
help
2486-
Kunit test for the misc minor.
2487-
It tests misc minor functions for dynamic and misc dynamic minor.
2488-
This include misc_xxx functions
2486+
Kunit test for miscdevice API, specially its behavior in respect to
2487+
static and dynamic minor numbers.
2488+
2489+
KUnit tests run during boot and output the results to the debug log
2490+
in TAP format (https://testanything.org/). Only useful for kernel devs
2491+
running the KUnit test harness, and not intended for inclusion into a
2492+
production build.
2493+
2494+
For more information on KUnit and unit tests in general please refer
2495+
to the KUnit documentation in Documentation/dev-tools/kunit/.
24892496

24902497
If unsure, say N.
24912498

0 commit comments

Comments
 (0)