summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBjörn Mattsson <Bjorn.Mattsson@bth.se>2018-11-07 16:23:26 +0100
committerBjörn Mattsson <Bjorn.Mattsson@bth.se>2018-11-07 16:23:26 +0100
commit7e96670449c5104286bcc9a9f8bceebbaba84924 (patch)
tree0a45e57c1c79329454c105b90a6c8cb66208700f /Makefile
parentba77b7a0ff66bbe3d32ffa2e2630f9f2efd7e2ff (diff)
Added Contact information + updated Makefile part : test2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a222111e..1ef64d19 100644
--- a/Makefile
+++ b/Makefile
@@ -243,11 +243,16 @@ testAttributeInIdP:
test: syntaxtest testMDUI testOrgData testEntCat testSimpleSign testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact
-test2: $(SWAMIDXML)
+test2: $(SWAMIDXML) testMDUI testOrgData testEntCat testSimpleSign testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact
.time/%.time: swamid-2.0/%.xml
- @#testMDUI testOrgData testEntCat testSimpleSign testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact
+ @# make tidy
+ @xsltproc xslt/clean-entitydescriptor.xsl $< > $<.c && mv $<.c $<
+
+ @# make schematest
@xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $< 2>&1
+
+ @# make testMDUI
@cat $< | sed -n 's/.*xml:lang="\([^"]*\)".*/\1/p' | sort -u | grep -vxE 'cs|da|de|en|fi|fr|it|sv' | sed 's/.*/Bad lang code : &/' | grep . && exit 1 || true
@if ( grep -q IDPSSODescriptor $< ) ; then \
echo "Do IdP checks" ; \
@@ -256,6 +261,7 @@ test2: $(SWAMIDXML)
for x in `find $(SRCDIRS) -name \*.xml | xargs grep -l IDPSSODescriptor | egrep -v $<` ; do cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | sed 's/xmlns="[^"]*"//' | xmllint --xpath "/EntityDescriptor/IDPSSODescriptor/Extensions/UIInfo/DisplayName[@xml:lang='$$lang']" - 2>/dev/null | tr -d '\n' | sed 's;<[^>]*>\([^<]*\)</[^>]*>;\1\n;g' | egrep "^$$mdui_displayname$$" | sed "s;^;Duplicate DisplayName in $$x for lang = $$lang\n;" | sed 's/.*/&/' ; done | grep . && exit 1 || true;\
done \
fi
+
# | sed 's/^[ ]*//;s/[ ]*$$//' ; done\
#| tr -d '\n' | sed 's;<[^>]*>\([^<]*\)</[^>]*>;\1\n;g'
@#echo "Checking for invalid IPHint"