aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test-databases
diff options
context:
space:
mode:
authorGravatar David Bremner <david@tethera.net>2014-03-01 16:12:44 -0400
committerGravatar David Bremner <david@tethera.net>2014-03-11 19:51:22 -0300
commit8413582b6edc859285d68c9f7ad83236788567c0 (patch)
treebdaf24bb76118273af3817cd132261cea24fa51d /test/test-databases
parentb6606421019daebbe62645c2dbc2fcdd0f32c1e2 (diff)
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.
Diffstat (limited to 'test/test-databases')
-rw-r--r--test/test-databases/Makefile7
-rw-r--r--test/test-databases/Makefile.local14
2 files changed, 21 insertions, 0 deletions
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}