Merge branch 'cboltz-ci-check-includes' into 'master'

run "make -C profiles check-abstractions.d" in ci

See merge request apparmor/apparmor!449

Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
Christian Boltz 2020-02-03 21:30:22 +00:00
commit 65bb277d8b
2 changed files with 3 additions and 2 deletions

View file

@ -44,6 +44,7 @@ test-all:
- make -C utils check PYFLAKES=/usr/bin/pyflakes3 PYTHON_VERSIONS=/usr/bin/python3
- make -C changehat/mod_apparmor check
- make -C profiles check-parser
- make -C profiles check-abstractions.d
# Disabled due to aa-logprof dependency on /sbin/apparmor_parser existing
# - make -C profiles check-profiles

View file

@ -117,7 +117,7 @@ check-abstractions.d:
@echo "*** Checking if all abstractions (with a few exceptions) contain #include if exists <abstractions/*.d>"
$(Q)cd apparmor.d/abstractions && for file in * ; do \
test -d "$$file" && continue ; \
test "$$file" == 'ubuntu-browsers' && continue ; \
test "$$file" == 'ubuntu-helpers' && continue ; \
test "$$file" = 'ubuntu-browsers' && continue ; \
test "$$file" = 'ubuntu-helpers' && continue ; \
grep -q "^ #include if exists <abstractions/$${file}.d>$$" $$file || { echo "$$file does not contain '#include if exists <abstractions/$${file}.d>'"; exit 1; } ; \
done