From e4112dc8e4811c4cc758c9a314a027edc7a655f1 Mon Sep 17 00:00:00 2001 From: Fredrik Domeij Date: Wed, 14 Jun 2017 11:26:28 +0200 Subject: schematest all mxml files before complaining --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d7b83e79..cbe37e44 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ test: clean dependencies schematest pedantic: clean dependencies schematest testRefedsRnS testGeantCoCo schematest: - @for x in $(MXML); do test=`xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $$x 2>&1`; rc=$$?; echo $$test | sed 's/fails to validate/&/;s/validates/&/'; if [ $$rc -gt 0 ]; then exit 1; fi; done + @fail=false ; for x in $(MXML); do test=`xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $$x 2>&1`; rc=$$?; echo $$test | sed 's/fails to validate/&/;s/validates/&/'; if [ $$rc -gt 0 ]; then fail=true ; fi; done ; if $$fail ; then exit 1 ; fi clean: @rm -f *.xml *.tbs *.n *.sig -- cgit v1.2.3