Skip to content
Snippets Groups Projects
Commit 7fbcc478 authored by intrigeri's avatar intrigeri
Browse files

Add autopkgtests to parse the profiles installed by this package, to ensure...

Add autopkgtests to parse the profiles installed by this package, to ensure that parser and abstraction updates don't break them (Closes: #866368).

That's basically the same tests we run at build time already (see
override_dh_auto_test); they don't mess with the kernel, and don't require
AppArmor to be enabled.
parent 4d8b869b
Branches
Tags
No related merge requests found
Tests: test-installed
Depends: @
Restrictions: allow-stderr
#!/bin/sh
set -e
set -u
set -x
PROFILES_NAMES=$(find profiles -maxdepth 1 -type f -printf '%f\n')
for profile_name in $PROFILES_NAMES ; do
echo "Testing $profile_name"
/sbin/apparmor_parser \
--add \
--skip-cache \
--skip-kernel-load \
"/etc/apparmor.d/$profile_name"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment