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