Skip to content

Commit beaed42

Browse files
roxellshuahkh
authored andcommitted
kunit: 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 92238b3 commit beaed42

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/kunit/Kconfig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ menuconfig KUNIT
1515
if KUNIT
1616

1717
config KUNIT_DEBUGFS
18-
bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation"
18+
bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" if !KUNIT_ALL_TESTS
19+
default KUNIT_ALL_TESTS
1920
help
2021
Enable debugfs representation for kunit. Currently this consists
2122
of /sys/kernel/debug/kunit/<test_suite>/results files for each
2223
test suite, which allow users to see results of the last test suite
2324
run that occurred.
2425

2526
config KUNIT_TEST
26-
tristate "KUnit test for KUnit"
27+
tristate "KUnit test for KUnit" if !KUNIT_ALL_TESTS
28+
default KUNIT_ALL_TESTS
2729
help
2830
Enables the unit tests for the KUnit test framework. These tests test
2931
the KUnit test framework itself; the tests are both written using
@@ -32,7 +34,8 @@ config KUNIT_TEST
3234
expected.
3335

3436
config KUNIT_EXAMPLE_TEST
35-
tristate "Example test for KUnit"
37+
tristate "Example test for KUnit" if !KUNIT_ALL_TESTS
38+
default KUNIT_ALL_TESTS
3639
help
3740
Enables an example unit test that illustrates some of the basic
3841
features of KUnit. This test only exists to help new users understand

0 commit comments

Comments
 (0)