Skip to content

Commit 2f53da4

Browse files
ryota-sakamotojrjohansen
authored andcommitted
apparmor: add .kunitconfig
Add .kunitconfig file to the AppArmor directory to enable easy execution of KUnit tests. AppArmor tests (CONFIG_SECURITY_APPARMOR_KUNIT_TEST) depend on CONFIG_SECURITY_APPARMOR which also depends on CONFIG_SECURITY and CONFIG_NET. Without explicitly enabling these configs in the .kunitconfig, developers will need to specify config manually. With the .kunitconfig, developers can run the tests: $ ./tools/testing/kunit/kunit.py run --kunitconfig security/apparmor Signed-off-by: Ryota Sakamoto <sakamo.ryota@gmail.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 859b725 commit 2f53da4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

security/apparmor/.kunitconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONFIG_KUNIT=y
2+
CONFIG_NET=y
3+
CONFIG_SECURITY=y
4+
CONFIG_SECURITY_APPARMOR=y
5+
CONFIG_SECURITY_APPARMOR_KUNIT_TEST=y

0 commit comments

Comments
 (0)