summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFredrik Domeij <fredrik.domeij@umu.se>2017-02-15 18:38:31 +0100
committerFredrik Domeij <fredrik.domeij@umu.se>2017-02-15 18:38:31 +0100
commit036d2dbb30960840418ecdde745e00e42d52a420 (patch)
tree7b2acb9113ad4e36ac9e71087815bb08fe9019d6 /Makefile
parent6e226ef4842a938c5ca426a3a2d711f75265cce5 (diff)
check for bad strings in metadata (for example empty ServiceName
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 00dd72ca..3c527319 100644
--- a/Makefile
+++ b/Makefile
@@ -191,7 +191,11 @@ testALlevel:
@echo "Check for IdP:s with AL2 without AL1"
@for x in `find $(SRCDIRS) -name \*.xml`; do if grep -q http://www.swamid.se/policy/assurance/al2 $$x && ! grep -q http://www.swamid.se/policy/assurance/al1 $$x ; then echo " $$x" | sed 's/.*/&/' ; fi ; done
-committest: test testMDUI testOrgData testEntCat testSimpleSign testALlevel testRefedsRnS testGeantCoCo testMetadataUsage
+testBadStrings:
+ @echo "Check for bad strings in metadata"
+ @for x in `find $(SRCDIRS) -name \*.xml`; do grep -E 'ServiceName xml:lang="[^"]*"/>' $$x | sed 's/^/ /' ; done | grep . && exit 1 || exit 0
+
+committest: test testMDUI testOrgData testEntCat testSimpleSign testALlevel testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings
deeptest: committest testMDUIreach