aboutsummaryrefslogtreecommitdiffhomepage
path: root/performance-test/Makefile.local
blob: 3834e4d70e5f28b019f50f9dbc16f30e3f77599f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- makefile -*-

dir := performance-test

include $(dir)/version.sh

CORPUS_NAME := notmuch-email-corpus-$(PERFTEST_VERSION).tar.xz
TXZFILE := ${dir}/download/${CORPUS_NAME}
SIGFILE := ${TXZFILE}.asc
TEST_SCRIPT := ${dir}/notmuch-perf-test
DEFAULT_URL :=  http://notmuchmail.org/releases/${CORPUS_NAME}

perf-test: setup-perf-test all
	$(TEST_SCRIPT) $(OPTIONS)

.PHONY: download-corpus setup-perf-test

# Note that this intentionally does not depend on download-corpus.
setup-perf-test: $(TXZFILE)
	gpg --verify $(SIGFILE)

$(TXZFILE):
	@printf "\nPlease download ${TXZFILE} using:\n\n"
	@printf "\t%% make download-corpus\n\n"
	@echo or see http://notmuchmail.org/corpus for download locations
	@echo
	@false

download-corpus:
	wget -O ${TXZFILE} ${DEFAULT_URL}

CLEAN := $(CLEAN) $(dir)/tmp.* $(dir)/corpus $(dir)/notmuch.cache.*