summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2022-08-31 09:42:20 +0200
committerBjörn Mattsson <bjorn@sunet.se>2022-08-31 09:42:20 +0200
commit88d7ff8f9eb767b7a3b73db7769d4c5c3cf3933e (patch)
treeeff8a4ec7a35c5701f6320e53e467924a64ee535
parent6436d9c5562274d127a7946a928421c3388db286 (diff)
Added check for bad chars
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a2a11a23..69349e6f 100644
--- a/Makefile
+++ b/Makefile
@@ -281,10 +281,18 @@ testRegistrationAuthority:
fi;\
done | grep . && exit 1 || exit 0
+checkInvalidChars:
+ @echo "Check for invalid characters"
+ @for x in `find $(SRCDIRS) -name \*.xml`; do \
+ if grep -q "&#13;" $$x ; 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
-test: syntaxtest testMDUI testEntCat testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact testRegistrationAuthority
+test: syntaxtest testMDUI testEntCat testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact testRegistrationAuthority checkInvalidChars
-test2: $(SWAMIDXML) schematest testEntCat testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact testRegistrationAuthority
+test2: $(SWAMIDXML) schematest testEntCat testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP testRoleDescriptor testAttributeInIdP testValidContact testRegistrationAuthority checkInvalidChars
#test2: $(SWAMIDXML)
.time/%.time: swamid-2.0/%.xml