Commit c9ef2d3e authored by Daniel Latypov's avatar Daniel Latypov Committed by Shuah Khan

KUnit: Docs: make start.rst example Kconfig follow style.rst

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: default avatarDaniel Latypov <dlatypov@google.com>
Reviewed-by: default avatarBrendan Higgins <brendanhiggins@google.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent d3bae4a0
...@@ -196,8 +196,9 @@ Now add the following to ``drivers/misc/Kconfig``: ...@@ -196,8 +196,9 @@ Now add the following to ``drivers/misc/Kconfig``:
.. code-block:: kconfig .. code-block:: kconfig
config MISC_EXAMPLE_TEST config MISC_EXAMPLE_TEST
bool "Test for my example" tristate "Test for my example" if !KUNIT_ALL_TESTS
depends on MISC_EXAMPLE && KUNIT=y depends on MISC_EXAMPLE && KUNIT=y
default KUNIT_ALL_TESTS
and the following to ``drivers/misc/Makefile``: and the following to ``drivers/misc/Makefile``:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment