]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-databases/Makefile.local
test: add machinery to download and verify databases
[notmuch] / test / test-databases / Makefile.local
diff --git a/test/test-databases/Makefile.local b/test/test-databases/Makefile.local
new file mode 100644 (file)
index 0000000..0572e78
--- /dev/null
@@ -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}