Skip to content

Commit 5f215aa

Browse files
roxellshuahkh
authored andcommitted
lib: Kconfig.debug: default KUNIT_* fragments to KUNIT_ALL_TESTS
This makes it easier to enable all KUnit fragments. Adding 'if !KUNIT_ALL_TESTS' so individual tests can not be turned off. Therefore if KUNIT_ALL_TESTS is enabled that will hide the prompt in menuconfig. Reviewed-by: David Gow <[email protected]> Signed-off-by: Anders Roxell <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent beaed42 commit 5f215aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Kconfig.debug

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,8 +2064,9 @@ config TEST_SYSCTL
20642064
If unsure, say N.
20652065

20662066
config SYSCTL_KUNIT_TEST
2067-
tristate "KUnit test for sysctl"
2067+
tristate "KUnit test for sysctl" if !KUNIT_ALL_TESTS
20682068
depends on KUNIT
2069+
default KUNIT_ALL_TESTS
20692070
help
20702071
This builds the proc sysctl unit test, which runs on boot.
20712072
Tests the API contract and implementation correctness of sysctl.
@@ -2075,8 +2076,9 @@ config SYSCTL_KUNIT_TEST
20752076
If unsure, say N.
20762077

20772078
config LIST_KUNIT_TEST
2078-
tristate "KUnit Test for Kernel Linked-list structures"
2079+
tristate "KUnit Test for Kernel Linked-list structures" if !KUNIT_ALL_TESTS
20792080
depends on KUNIT
2081+
default KUNIT_ALL_TESTS
20802082
help
20812083
This builds the linked list KUnit test suite.
20822084
It tests that the API and basic functionality of the list_head type

0 commit comments

Comments
 (0)