]> granicus.if.org Git - libexpat/commitdiff
Add means to avoid downloading xmlts.zip in coverage tests
authorRhodri James <rhodri@kynesim.co.uk>
Tue, 27 Jun 2017 15:15:55 +0000 (16:15 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 1 Jul 2017 15:21:24 +0000 (17:21 +0200)
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

index 01d2ab302321629ff18982877ef29c32e8392729..76f77b17f8668208bb6ebb30e6ee94f46c99092f 100644 (file)
@@ -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