[pkg-apparmor] [apparmor-profiles-extra] 03/08: Test that apparmor is able to parse the profiles.
Felix Geyer
fgeyer at moszumanska.debian.org
Wed Sep 3 21:29:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
fgeyer pushed a commit to branch debfx/wip
in repository apparmor-profiles-extra.
commit e00d278602f06f72a90d629860aa759e6708856f
Author: Felix Geyer <fgeyer at debian.org>
Date: Fri Aug 29 22:04:38 2014 +0200
Test that apparmor is able to parse the profiles.
---
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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/apparmor-profiles-extra.git
More information about the pkg-apparmor-team
mailing list