X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=performance-test%2FMakefile.local;fp=performance-test%2FMakefile.local;h=73aa963bbdb4d6337cb5f1af41d92ca9aeafc404;hb=5102da65c4c797d2a79eb5384b0e0c47176a31f0;hp=0000000000000000000000000000000000000000;hpb=f8950c6020708b2c530426c777785197411959cb;p=obsolete%2Fnotmuch-old diff --git a/performance-test/Makefile.local b/performance-test/Makefile.local new file mode 100644 index 00000000..73aa963b --- /dev/null +++ b/performance-test/Makefile.local @@ -0,0 +1,42 @@ +# -*- makefile -*- + +dir := performance-test + +include $(dir)/version.sh + +TIME_TEST_SCRIPT := ${dir}/notmuch-time-test +MEMORY_TEST_SCRIPT := ${dir}/notmuch-memory-test + +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} + +perf-test: time-test memory-test + +time-test: setup-perf-test all + @echo + $(TIME_TEST_SCRIPT) $(OPTIONS) + +memory-test: setup-perf-test all + @echo + $(MEMORY_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.* $(dir)/log.* $(dir)/corpus $(dir)/notmuch.cache.*