3 dir := performance-test
5 include $(srcdir)/$(dir)/version.sh
7 TIME_TEST_SCRIPT := ${dir}/notmuch-time-test
8 MEMORY_TEST_SCRIPT := ${dir}/notmuch-memory-test
10 CORPUS_NAME := notmuch-email-corpus-$(PERFTEST_VERSION).tar.xz
11 TXZFILE := ${dir}/download/${CORPUS_NAME}
12 SIGFILE := ${TXZFILE}.asc
13 DEFAULT_URL := https://notmuchmail.org/releases/${CORPUS_NAME}
15 perf-test: time-test memory-test
17 time-test: setup-perf-test all
19 $(TIME_TEST_SCRIPT) $(OPTIONS)
21 memory-test: setup-perf-test all
23 $(MEMORY_TEST_SCRIPT) $(OPTIONS)
26 .PHONY: download-corpus setup-perf-test
28 # Note that this intentionally does not depend on download-corpus.
29 setup-perf-test: $(TXZFILE)
30 gpg --verify $(SIGFILE)
33 @printf "\nPlease download ${TXZFILE} using:\n\n"
34 @printf "\t%% make download-corpus\n\n"
35 @echo or see https://notmuchmail.org/corpus for download locations
40 wget -O ${TXZFILE} ${DEFAULT_URL}
42 CLEAN := $(CLEAN) $(dir)/tmp.* $(dir)/log.*
43 DISTCLEAN := $(DISTCLEAN) $(dir)/corpus $(dir)/notmuch.cache.*
44 DATACLEAN := $(DATACLEAN) $(TXZFILE)