mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
2cbd68de92
Support for out-of-tree builds was added in commit3e4a9d60a9
Author: Carl Worth <cworth@cworth.org> Date: Wed Mar 9 15:02:42 2011 -0800 build: Add support for non-source-directory builds. and broken in commit7beeb8c88a
Author: David Bremner <bremner@debian.org> Date: Sat Nov 17 12:28:15 2012 -0400 test: initial performance testing infrastructure Fix the build breakage. Out-of-tree 'make test' has been broken since earlier than the above, and remains broken, as does out-of-tree perf test, but at least the build now works.
42 lines
1 KiB
Makefile
42 lines
1 KiB
Makefile
# -*- makefile -*-
|
|
|
|
dir := performance-test
|
|
|
|
include $(srcdir)/$(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.*
|