mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
ceaf5ca6c0
The caching and uncaching seem to be necessarily manual, as timing the initial notmuch new is one of our goals with this suite.
32 lines
836 B
Makefile
32 lines
836 B
Makefile
# -*- 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.* $(dir)/corpus $(dir)/notmuch.cache.*
|