drivers: base: default KUNIT_* fragments to KUNIT_ALL_TESTS
authorAnders Roxell <anders.roxell@linaro.org>
Mon, 11 May 2020 13:14:33 +0000 (15:14 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 1 Jun 2020 20:24:25 +0000 (14:24 -0600)
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>
drivers/base/Kconfig
drivers/base/test/Kconfig

index 5f0bc74d2409a2c71e91d35403bb35f50e457abb..8d7001712062eb547be3abd446c85c77fe6f8b0e 100644 (file)
@@ -149,8 +149,9 @@ config DEBUG_TEST_DRIVER_REMOVE
          test this functionality.
 
 config PM_QOS_KUNIT_TEST
-       bool "KUnit Test for PM QoS features"
+       bool "KUnit Test for PM QoS features" if !KUNIT_ALL_TESTS
        depends on KUNIT=y
+       default KUNIT_ALL_TESTS
 
 config HMEM_REPORTING
        bool
index 305c7751184a29de43243dd8964277afa807a66c..ba225eb1b7615fb6a56996acd3c18cbba773afe8 100644 (file)
@@ -9,5 +9,6 @@ config TEST_ASYNC_DRIVER_PROBE
 
          If unsure say N.
 config KUNIT_DRIVER_PE_TEST
-       bool "KUnit Tests for property entry API"
+       bool "KUnit Tests for property entry API" if !KUNIT_ALL_TESTS
        depends on KUNIT=y
+       default KUNIT_ALL_TESTS