From 8413582b6edc859285d68c9f7ad83236788567c0 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 1 Mar 2014 16:12:44 -0400 Subject: test: add machinery to download and verify databases Note that it is intentional that the checksum file is not downloaded. The intent is to check those into git. --- test/test-databases/Makefile | 7 +++++++ test/test-databases/Makefile.local | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/test-databases/Makefile create mode 100644 test/test-databases/Makefile.local (limited to 'test/test-databases') diff --git a/test/test-databases/Makefile b/test/test-databases/Makefile new file mode 100644 index 00000000..b250a8be --- /dev/null +++ b/test/test-databases/Makefile @@ -0,0 +1,7 @@ +# See Makefile.local for the list of files to be compiled in this +# directory. +all: + $(MAKE) -C ../.. all + +.DEFAULT: + $(MAKE) -C ../.. $@ diff --git a/test/test-databases/Makefile.local b/test/test-databases/Makefile.local new file mode 100644 index 00000000..0572e784 --- /dev/null +++ b/test/test-databases/Makefile.local @@ -0,0 +1,14 @@ +# -*- makefile -*- + +TEST_DATABASE_MIRROR=http://notmuchmail.org/releases/test-databases + +dir := test/test-databases + +test_databases := $(dir)/database-v1.tar.xz + +%.tar.xz: + wget -nv -O $@ ${TEST_DATABASE_MIRROR}/$(notdir $@); + +download-test-databases: ${test_databases} + +DISTCLEAN := $(DISTCLEAN) ${test_databases} -- cgit v1.2.3