summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFredrik Domeij <fredrik.domeij@umu.se>2019-04-02 16:01:20 +0200
committerFredrik Domeij <fredrik.domeij@umu.se>2019-06-12 08:10:02 +0200
commite5d4ace31a8584b4cb4fc1f85f0cedbf447a67a2 (patch)
tree062ab2ebfd1b4c3a801fee114e2c31f56614e7fe /Makefile
parent84de70534b953613267e906ff820fd4325c5a9a4 (diff)
add registrationAuthority to all xml files in swamid-2.0 during make tidy
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index debab7fc..020a0e55 100644
--- a/Makefile
+++ b/Makefile
@@ -102,6 +102,7 @@ clean:
@rm -f *.xml *.tbs *.n *.sig
tidy:
+ @for x in `find $(SRCDIRS) -name \*.xml`; do xsltproc xslt/add-rpi.xsl $$x > $$x.c && mv $$x.c $$x; done
@for x in `find $(SRCDIRS) -name \*.xml`; do xsltproc xslt/clean-entitydescriptor.xsl $$x > $$x.c && mv $$x.c $$x; done
testMetadataUsage:
@@ -241,7 +242,15 @@ testAttributeInIdP:
fi;\
done | grep . && exit 1 || exit 0
-test: syntaxtest testMDUI testOrgData testEntCat testSimpleSign testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact
+testRegistrationAuthority:
+ @echo "Check for registrationAuthority="http://www.swamid.se/" in EntityDescriptor/Extensions"
+ @for x in `find $(SRCDIRS) -name \*.xml`; do \
+ if ! cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | sed 's/xmlns="[^"]*"//' | xmllint --xpath "/EntityDescriptor/Extensions" - 2>/dev/null | grep -q 'registrationAuthority="http://www.swamid.se/"' ; then \
+ echo " $$x" | sed 's/.*/&/' ;\
+ fi;\
+ done | grep . && exit 1 || exit 0
+
+test: syntaxtest testMDUI testOrgData testEntCat testSimpleSign testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact testRegistrationAuthority
test2: $(SWAMIDXML) schematest testMDUI testOrgData testEntCat testSimpleSign testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact