Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <davidgow@google.com>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Anders Roxell and committed by
Shuah Khan
beaed42c 92238b31

+6 -3
+6 -3
lib/kunit/Kconfig
··· 15 15 if KUNIT 16 16 17 17 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 19 20 help 20 21 Enable debugfs representation for kunit. Currently this consists 21 22 of /sys/kernel/debug/kunit/<test_suite>/results files for each ··· 24 23 run that occurred. 25 24 26 25 config KUNIT_TEST 27 - tristate "KUnit test for KUnit" 26 + tristate "KUnit test for KUnit" if !KUNIT_ALL_TESTS 27 + default KUNIT_ALL_TESTS 28 28 help 29 29 Enables the unit tests for the KUnit test framework. These tests test 30 30 the KUnit test framework itself; the tests are both written using ··· 34 32 expected. 35 33 36 34 config KUNIT_EXAMPLE_TEST 37 - tristate "Example test for KUnit" 35 + tristate "Example test for KUnit" if !KUNIT_ALL_TESTS 36 + default KUNIT_ALL_TESTS 38 37 help 39 38 Enables an example unit test that illustrates some of the basic 40 39 features of KUnit. This test only exists to help new users understand