aboutsummaryrefslogtreecommitdiffhomepage
path: root/performance-test/Makefile.local
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2012-11-17 12:28:15 -0400
committerGravatar David Bremner <bremner@debian.org>2012-11-26 08:39:21 -0400
commit7beeb8c88a014ecbc53d8241f10683b3c4c16228 (patch)
treeccd4592417e741447cf97904bab1fd8888f78948 /performance-test/Makefile.local
parent20b7e0ff2f12e612dee00efc6ff1634aae8172a4 (diff)
test: initial performance testing infrastructure
This is not near as fancy as as the unit tests, on the theory that the code should typically be crashing when performance tuning. Nonetheless, there is plenty of room for improvement. Several more of the pieces of the test infrastructure (e.g. the option parsing) could be factored out into test/test-lib-common.sh
Diffstat (limited to 'performance-test/Makefile.local')
-rw-r--r--performance-test/Makefile.local32
1 files changed, 32 insertions, 0 deletions
diff --git a/performance-test/Makefile.local b/performance-test/Makefile.local
new file mode 100644
index 00000000..5d2acbd7
--- /dev/null
+++ b/performance-test/Makefile.local
@@ -0,0 +1,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.*