diff options
author | Fredrik Åslund <fredrik.aslund@umu.se> | 2014-03-26 13:30:33 +0100 |
---|---|---|
committer | Fredrik Åslund <fredrik.aslund@umu.se> | 2014-03-26 13:30:33 +0100 |
commit | 83d4b144127f337c29a2b15314d89e4ca3016ea6 (patch) | |
tree | 3bc4f4cab0a55ae1bea31c2edbd813ab115ba54d /Makefile | |
parent | bcd871494a635b848c4e56e02b41d10afdcb25ef (diff) |
geolocation fixed for idp.his.se
committest for geolocation syntax
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |