Skip to content

Commit c9ef2d3

Browse files
dlatypovshuahkh
authored andcommitted
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: Daniel Latypov <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent d3bae4a commit c9ef2d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/dev-tools/kunit/start.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,9 @@ Now add the following to ``drivers/misc/Kconfig``:
196196
.. code-block:: kconfig
197197
198198
config MISC_EXAMPLE_TEST
199-
bool "Test for my example"
199+
tristate "Test for my example" if !KUNIT_ALL_TESTS
200200
depends on MISC_EXAMPLE && KUNIT=y
201+
default KUNIT_ALL_TESTS
201202
202203
and the following to ``drivers/misc/Makefile``:
203204

0 commit comments

Comments
 (0)