KUnit: Docs: make start.rst example Kconfig follow style.rst
authorDaniel Latypov <dlatypov@google.com>
Tue, 19 Jan 2021 23:52:26 +0000 (15:52 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 8 Feb 2021 22:40:12 +0000 (15:40 -0700)
The primary change is that we want to encourage people to respect
KUNIT_ALL_TESTS to make it easy to run all the relevant tests for a
given config.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Documentation/dev-tools/kunit/start.rst

index 454f307..560f27a 100644 (file)
@@ -196,8 +196,9 @@ Now add the following to ``drivers/misc/Kconfig``:
 .. code-block:: kconfig
 
        config MISC_EXAMPLE_TEST
-               bool "Test for my example"
+               tristate "Test for my example" if !KUNIT_ALL_TESTS
                depends on MISC_EXAMPLE && KUNIT=y
+               default KUNIT_ALL_TESTS
 
 and the following to ``drivers/misc/Makefile``: