security: apparmor: default KUNIT_* fragments to KUNIT_RUN_ALL
Subsystems (2)
PATCH v2 6/6 security: apparmor: default KUNIT_* fragments to KUNIT_RUN_ALL
This makes it easier to enable all KUnit fragments.
Adding 'if !KUNIT_RUN_ALL' so individual test can be turned of if someone wants that even though KUNIT_RUN_ALL is enabled.
Signed-off-by Anders Roxell <[email protected]>
--- security/apparmor/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
security/apparmor/Kconfig +2 -1
@@ -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_RUN_ALL depends on KUNIT=y && SECURITY_APPARMOR + default KUNIT_RUN_ALL help This builds the AppArmor KUnit tests.
Signature · 1 line
2.20.1
Quoted 5 lines · Anders Roxell
This makes it easier to enable all KUnit fragments.
Adding 'if !KUNIT_RUN_ALL' so individual test can be turned of if someone wants that even though
KUNIT_RUN_ALLis enabled.
Again, as with the other patches, might be worth revising this description when changing the config name.
Quoted 2 lines
Signed-off-by Anders Roxell <[email protected]>
Reviewed-by David Gow <[email protected]>
Thanks again for the patchset, it's working well for me.
-- David
Quoted 22 lines
--- security/apparmor/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)security/apparmor/Kconfig +2
-2@@ -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_RUN_ALL depends on KUNIT=y && SECURITY_APPARMOR + default KUNIT_RUN_ALL help This builds the AppArmor KUnit tests. --2.20.1