summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Åslund <fredrik.aslund@umu.se>2013-10-08 15:21:51 +0200
committerFredrik Åslund <fredrik.aslund@umu.se>2013-10-08 15:21:51 +0200
commitc476cad6a7ad14a00ecd4f94a29850a11cc08d9d (patch)
treeca225c81c3b10cc8e9eabfe74f34d49b88b85c74
parentbea6705368bc655bb85c6f38a64c3548f457b2c0 (diff)
check for badly located entity categories during test
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e13d6402..bc803fd0 100644
--- a/Makefile
+++ b/Makefile
@@ -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/&/;s/validates/&/'
@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
-