]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
security: apparmor: default KUNIT_* fragments to KUNIT_ALL_TESTS
authorAnders Roxell <anders.roxell@linaro.org>
Mon, 11 May 2020 13:14:42 +0000 (15:14 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 1 Jun 2020 20:25:15 +0000 (14:25 -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>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
security/apparmor/Kconfig

index 0fe336860773bbc14a6684d648e991233c6513a9..03fae1bd48a67ce3549c4bf03c7ebb3979d99081 100644 (file)
@@ -70,8 +70,9 @@ config SECURITY_APPARMOR_DEBUG_MESSAGES
          the kernel message buffer.
 
 config SECURITY_APPARMOR_KUNIT_TEST
-       bool "Build KUnit tests for policy_unpack.c"
+       bool "Build KUnit tests for policy_unpack.c" if !KUNIT_ALL_TESTS
        depends on KUNIT=y && SECURITY_APPARMOR
+       default KUNIT_ALL_TESTS
        help
          This builds the AppArmor KUnit tests.