]> git.notmuchmail.org Git - notmuch/blob - performance-test/Makefile.local
perf-test: rename current tests as "time tests"
[notmuch] / performance-test / Makefile.local
1 # -*- makefile -*-
2
3 dir := performance-test
4
5 include $(dir)/version.sh
6
7 CORPUS_NAME := notmuch-email-corpus-$(PERFTEST_VERSION).tar.xz
8 TXZFILE := ${dir}/download/${CORPUS_NAME}
9 SIGFILE := ${TXZFILE}.asc
10 TEST_SCRIPT := ${dir}/notmuch-perf-test
11 DEFAULT_URL :=  http://notmuchmail.org/releases/${CORPUS_NAME}
12
13 time-test: setup-perf-test all
14         $(TEST_SCRIPT) $(OPTIONS)
15
16 .PHONY: download-corpus setup-perf-test
17
18 # Note that this intentionally does not depend on download-corpus.
19 setup-perf-test: $(TXZFILE)
20         gpg --verify $(SIGFILE)
21
22 $(TXZFILE):
23         @printf "\nPlease download ${TXZFILE} using:\n\n"
24         @printf "\t%% make download-corpus\n\n"
25         @echo or see http://notmuchmail.org/corpus for download locations
26         @echo
27         @false
28
29 download-corpus:
30         wget -O ${TXZFILE} ${DEFAULT_URL}
31
32 CLEAN := $(CLEAN) $(dir)/tmp.* $(dir)/corpus $(dir)/notmuch.cache.*