[apparmor] First KUnit Tests

Mike Salvatore mike.salvatore at canonical.com
Tue Apr 9 05:06:49 UTC 2019


Eric,

I've created a merge request that includes all of the unit tests I've written,
as well as your patch that makes those tests work with the latest KUnit branch.
The merge request can be viewed here: 
https://gitlab.com/apparmor/apparmor-kernel/merge_requests/3

Also included are a set of fixes for a small bug within many of the unpack_*()
functions. This bug was discovered while I was developing the unit tests. All
tests should now pass.

In the apparmor-next branch of 
http://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor, there is a new
function, unpack_u8() that also duplicates the bug. This function does not exist
in apparmor-kunit branch and will therefore have to be patched separately. I'll
send out the patch in a separate e-mail but I wanted to mention it here.

All the best,
Mike Salvatore



More information about the AppArmor mailing list