summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Latypov <dlatypov@google.com>2021-01-19 15:52:26 -0800
committerShuah Khan <skhan@linuxfoundation.org>2021-02-08 15:40:12 -0700
commitc9ef2d3e3f3b3e56429f56bbea2d16882b054dbe (patch)
tree56fc2344b67ae4b826a09167ba3ca12bc29f08e5
parentd3bae4a0b6e1bfbfcff3dbc2a6d96a505e31677e (diff)
downloadlinux-stable-c9ef2d3e3f3b3e56429f56bbea2d16882b054dbe.tar.gz
linux-stable-c9ef2d3e3f3b3e56429f56bbea2d16882b054dbe.tar.bz2
linux-stable-c9ef2d3e3f3b3e56429f56bbea2d16882b054dbe.zip
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 <dlatypov@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
-rw-r--r--Documentation/dev-tools/kunit/start.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/dev-tools/kunit/start.rst b/Documentation/dev-tools/kunit/start.rst
index 454f307813ea..560f27af4619 100644
--- a/Documentation/dev-tools/kunit/start.rst
+++ b/Documentation/dev-tools/kunit/start.rst
@@ -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``: