diff mbox series

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

Message ID 20210119235226.93280-1-dlatypov@google.com
State Accepted
Commit c9ef2d3e3f3b3e56429f56bbea2d16882b054dbe
Headers show
Series KUnit: Docs: make start.rst example Kconfig follow style.rst | expand

Commit Message

Daniel Latypov Jan. 19, 2021, 11:52 p.m. UTC
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>
---
 Documentation/dev-tools/kunit/start.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


base-commit: 146620506274bd24d52fb1c589110a30eed8240b

Comments

Brendan Higgins Feb. 5, 2021, 11:30 p.m. UTC | #1
On Tue, Jan 19, 2021 at 3:52 PM Daniel Latypov <dlatypov@google.com> wrote:
>

> 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>
diff mbox series

Patch

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``: