diff options
author | Fredrik Domeij <fredrik.domeij@umu.se> | 2017-06-14 11:26:28 +0200 |
---|---|---|
committer | Fredrik Domeij <fredrik.domeij@umu.se> | 2017-06-14 11:26:28 +0200 |
commit | e4112dc8e4811c4cc758c9a314a027edc7a655f1 (patch) | |
tree | e8957e2c74ff70521cbbbf9a5c3748f436145e39 /Makefile | |
parent | a598538e7b19a3d7e65da17fb1fbd49e04e2e60c (diff) |
schematest all mxml files before complaining
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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/[1;31m&[0m/;s/validates/[1;32m&[0m/'; 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/[1;31m&[0m/;s/validates/[1;32m&[0m/'; if [ $$rc -gt 0 ]; then fail=true ; fi; done ; if $$fail ; then exit 1 ; fi clean: @rm -f *.xml *.tbs *.n *.sig |