From f196feb61f97d60c7616d9ee6839d62f464e0b7f Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 27 Jun 2017 16:15:55 +0100 Subject: [PATCH] Add means to avoid downloading xmlts.zip in coverage tests Modifies target tests/xmlts.zip so that if the environment variable XMLTS_DIR is set, the xmlts.zip will be copied from there rather than downloaded again from xml.org. I currently need this because I have a very limited internet connection. --- expat/Makefile.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/expat/Makefile.in b/expat/Makefile.in index 01d2ab30..76f77b17 100644 --- a/expat/Makefile.in +++ b/expat/Makefile.in @@ -181,8 +181,12 @@ run-benchmark: tests/benchmark/benchmark tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/recset.xml 65535 3 tests/xmlts.zip: - wget --output-document=tests/xmlts.zip \ - https://www.w3.org/XML/Test/xmlts20080827.zip + if test "$(XMLTS_ZIP)" = ""; then \ + wget --output-document=tests/xmlts.zip \ + https://www.w3.org/XML/Test/xmlts20080827.zip; \ + else \ + cp $(XMLTS_ZIP) tests/xmlts.zip; \ + fi tests/xmlconf: tests/xmlts.zip cd tests && unzip -q xmlts.zip