diff options
| author | Ryota Sakamoto <sakamo.ryota@gmail.com> | 2026-01-25 19:05:48 +0900 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-02-01 12:01:19 -0800 |
| commit | 2f53da43b20389b78ecfdb30f6349753acecb59e (patch) | |
| tree | c41169099bccf3fc9944f43a384057aaa9714507 /security | |
| parent | 859b725579718ad1b66a81237df9d786f38679da (diff) | |
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>
Diffstat (limited to 'security')
| -rw-r--r-- | security/apparmor/.kunitconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/security/apparmor/.kunitconfig b/security/apparmor/.kunitconfig new file mode 100644 index 000000000000..aa842a0266e9 --- /dev/null +++ b/security/apparmor/.kunitconfig @@ -0,0 +1,5 @@ +CONFIG_KUNIT=y +CONFIG_NET=y +CONFIG_SECURITY=y +CONFIG_SECURITY_APPARMOR=y +CONFIG_SECURITY_APPARMOR_KUNIT_TEST=y |
