[pkg-apparmor] [PATCH 3/6] Test that apparmor is able to parse the profiles.
Felix Geyer
fgeyer at debian.org
Fri Aug 29 21:19:22 UTC 2014
---
debian/control | 2 +-
debian/rules | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index effcfde..b603fe9 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: extra
Maintainer: Debian AppArmor Team <pkg-apparmor-team at lists.alioth.debian.org>
Uploaders: intrigeri <intrigeri at debian.org>,
Holger Levsen <holger at debian.org>
-Build-Depends: debhelper (>= 9), dh-apparmor
+Build-Depends: debhelper (>= 9), dh-apparmor, apparmor
Standards-Version: 3.9.5
Homepage: https://wiki.debian.org/AppArmor
Vcs-Git: git://anonscm.debian.org/collab-maint/apparmor-profiles-extra.git
diff --git a/debian/rules b/debian/rules
index 3ab92b0..1a4be61 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,7 @@ debian/apparmor-profiles-extra.install: $(PROFILES)
override_dh_clean:
rm -f debian/apparmor-profiles-extra.install
+ rm -rf tests
dh_clean
override_dh_install: debian/apparmor-profiles-extra.install
@@ -24,3 +25,10 @@ override_dh_install: debian/apparmor-profiles-extra.install
dh_apparmor --profile-name=$$profile -papparmor-profiles-extra; \
done
dh_install
+
+override_dh_auto_test:
+ mkdir -p tests/local
+ set -ex && for profile in $(PROFILES); do \
+ touch tests/local/`basename $$profile`; \
+ apparmor_parser -aKQ -I profiles -I tests $$profile; \
+ done
--
2.1.0
More information about the pkg-apparmor-team
mailing list