summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFredrik Åslund <fredrik.aslund@umu.se>2014-03-26 13:30:33 +0100
committerFredrik Åslund <fredrik.aslund@umu.se>2014-03-26 13:30:33 +0100
commit83d4b144127f337c29a2b15314d89e4ca3016ea6 (patch)
tree3bc4f4cab0a55ae1bea31c2edbd813ab115ba54d /Makefile
parentbcd871494a635b848c4e56e02b41d10afdcb25ef (diff)
geolocation fixed for idp.his.se
committest for geolocation syntax
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9441db91..49201279 100644
--- a/Makefile
+++ b/Makefile
@@ -128,6 +128,8 @@ committest: test
@for x in `find $(SRCDIRS) -name \*.xml`; do if cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | xmllint --xpath /EntityDescriptor/IDPSSODescriptor/Extensions/EntityAttributes - 2>/dev/null | grep -q entity-category ; then echo " $$x" ; fi ; done | grep . && exit 1 || true
@echo "Checking for MDUI in EntityDescriptor/Extensions"
@for x in `find $(SRCDIRS) -name \*.xml`; do if cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | xmllint --xpath /EntityDescriptor/Extensions/UIInfo - 2>/dev/null | grep -q . ; then echo " $$x" ; fi ; done | grep . && exit 1 || true
+ @echo "Checking for invalid geodata"
+ @for x in `find $(SRCDIRS) -name \*.xml`; do if cat $$x | sed -n 's;.*<[a-z0-9:]*GeolocationHint>\(.*\)</[a-z0-9:]*GeolocationHint>;\1;p' | grep -q -vE '^$$|^geo:[0-9][0-9][0-9.]*,[0-9][0-9][0-9.]*$$' ; then echo " $$x" ; fi ; done | grep . && exit 1 || true
commit: tidy committest
@git diff --color