2012-11-17 17:28:15 +01:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
dir := performance-test
|
|
|
|
|
2013-05-25 13:18:58 +02:00
|
|
|
include $(srcdir)/$(dir)/version.sh
|
2012-11-17 17:28:15 +01:00
|
|
|
|
2012-12-16 13:33:17 +01:00
|
|
|
TIME_TEST_SCRIPT := ${dir}/notmuch-time-test
|
|
|
|
MEMORY_TEST_SCRIPT := ${dir}/notmuch-memory-test
|
|
|
|
|
2012-11-17 17:28:15 +01:00
|
|
|
CORPUS_NAME := notmuch-email-corpus-$(PERFTEST_VERSION).tar.xz
|
|
|
|
TXZFILE := ${dir}/download/${CORPUS_NAME}
|
|
|
|
SIGFILE := ${TXZFILE}.asc
|
|
|
|
DEFAULT_URL := http://notmuchmail.org/releases/${CORPUS_NAME}
|
|
|
|
|
2012-12-16 13:33:17 +01:00
|
|
|
perf-test: time-test memory-test
|
|
|
|
|
2012-12-16 15:55:51 +01:00
|
|
|
time-test: setup-perf-test all
|
2012-12-16 13:33:17 +01:00
|
|
|
@echo
|
|
|
|
$(TIME_TEST_SCRIPT) $(OPTIONS)
|
|
|
|
|
|
|
|
memory-test: setup-perf-test all
|
|
|
|
@echo
|
|
|
|
$(MEMORY_TEST_SCRIPT) $(OPTIONS)
|
|
|
|
|
2012-11-17 17:28:15 +01:00
|
|
|
|
|
|
|
.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}
|
|
|
|
|
2013-10-22 02:55:38 +02:00
|
|
|
CLEAN := $(CLEAN) $(dir)/tmp.* $(dir)/log.*
|
|
|
|
DISTCLEAN := $(dir)/corpus $(dir)/notmuch.cache.*
|