diff options
author | Fredrik Åslund <fredrik.aslund@umu.se> | 2013-10-08 15:21:51 +0200 |
---|---|---|
committer | Fredrik Åslund <fredrik.aslund@umu.se> | 2013-10-08 15:21:51 +0200 |
commit | c476cad6a7ad14a00ecd4f94a29850a11cc08d9d (patch) | |
tree | ca225c81c3b10cc8e9eabfe74f34d49b88b85c74 /Makefile | |
parent | bea6705368bc655bb85c6f38a64c3548f457b2c0 (diff) |
check for badly located entity categories during test
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -114,6 +114,8 @@ swamid-ki-sll: test: clean swamid2-deps @for x in $(MXML); do xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $$x 2>&1 ; done | sed 's/fails to validate/[1;31m&[0m/;s/validates/[1;32m&[0m/' @for x in $(MXML); do xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $$x > /dev/null 2>&1 || exit 1 ; done + @echo "Checking for entity-categories in SPSSODescriptors" + @for x in `find $(SRCDIRS) -name \*.xml`; do if cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | xmllint --xpath /EntityDescriptor/SPSSODescriptor/Extensions/EntityAttributes - 2>/dev/null | grep -q entity-category ; then echo " $$x" ; fi ; done | grep . && exit 1 || true clean: @rm -f *.xml *.tbs *.n @@ -128,4 +130,3 @@ commit: tidy test @echo "Checking for not committed files in swamid-2.0/" ; if git status --porcelain --ignored | awk '{print $$2}' | grep "^swamid-2.0/" | sed 's/^/ /' | grep . ; then echo "Not committed files in swamid-2.0/, aborting" ; exit 1 ; fi @echo ; echo -n "Run 'git push'? [Y/n] " ; read x ; case $$x in "Y"|"y"|"") ;; *) exit 1 ;; esac @git push - |