--- /dev/null
+Return-Path: <bremner@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id ABCA3431FD0\r
+ for <notmuch@notmuchmail.org>; Sat, 30 Nov 2013 19:00:34 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 7TmkQaiYQig9 for <notmuch@notmuchmail.org>;\r
+ Sat, 30 Nov 2013 19:00:26 -0800 (PST)\r
+Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
+ (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id BE97A431FAF\r
+ for <notmuch@notmuchmail.org>; Sat, 30 Nov 2013 19:00:26 -0800 (PST)\r
+Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
+ (envelope-from <bremner@tethera.net>)\r
+ id 1VmxGi-0006P1-8g; Sat, 30 Nov 2013 23:00:24 -0400\r
+Received: (nullmailer pid 18172 invoked by uid 1000); Sun, 01 Dec 2013\r
+ 03:00:20 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] perf-test: bump version to 0.4, use manifest files\r
+Date: Sat, 30 Nov 2013 23:00:03 -0400\r
+Message-Id: <1385866803-17847-1-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 1.8.4.2\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 01 Dec 2013 03:00:34 -0000\r
+\r
+The new revision of the performance test includes manifests for each corpus,\r
+so update the support library to use these manifests at the same time.\r
+---\r
+\r
+Jani's message\r
+ \r
+ id:d74499f1e462755676edf9aa6ab689ba47fa2471.1385825425.git.jani@nikula.org\r
+\r
+reminded me I had an update of the performance test suite in the\r
+works. The new suite is available from\r
+\r
+ http://tesseract.cs.unb.ca/notmuch/notmuch-email-corpus-0.4.tar.xz\r
+ http://tesseract.cs.unb.ca/notmuch/notmuch-email-corpus-0.4.tar.xz.asc\r
+\r
+I haven't yet uploaded it to notmuchmail.org because of disk space concerns.\r
+\r
+ .../download/notmuch-email-corpus-0.4.tar.xz.asc | 14 +++++\r
+ performance-test/perf-test-lib.sh | 72 ++++++++++++++--------\r
+ performance-test/version.sh | 2 +-\r
+ 3 files changed, 60 insertions(+), 28 deletions(-)\r
+ create mode 100644 performance-test/download/notmuch-email-corpus-0.4.tar.xz.asc\r
+\r
+diff --git a/performance-test/download/notmuch-email-corpus-0.4.tar.xz.asc b/performance-test/download/notmuch-email-corpus-0.4.tar.xz.asc\r
+new file mode 100644\r
+index 0000000..72dedd8\r
+--- /dev/null\r
++++ b/performance-test/download/notmuch-email-corpus-0.4.tar.xz.asc\r
+@@ -0,0 +1,14 @@\r
++-----BEGIN PGP SIGNATURE-----\r
++Version: GnuPG v1.4.15 (GNU/Linux)\r
++\r
++iQGcBAABCAAGBQJSdaDkAAoJEPIClx2kp54sQ54L/ikkvF1fy88hjLitN59v6g2J\r
++vw85YNRifNHyp/UXI6nt2eXFzyWJiRHuvHFoBgmEsJVxauOKw61Gs2zd53x9Ear4\r
++MGcQWyiM1cnwX/nD7GvxRQNh33f+FEamTjg+QhG47K0A2YdLWcDC7r9GMatGT11x\r
++5KE24WQGOqtgQn/9qNtJvkiKIehpRiDTaW/QJ7mTCYeJFjIHJUY8dxyfiTtkJ0z7\r
++cJ6omehvWSw4STbEg65XJgqykxMdltNEavfvSbAT73FgmkkyXxul0s5hDZ/esd0n\r
++re3dyDxGt085POiAgPti05a4tJI5EQC2wLBUFri0s2JdMtazcD6yVuHNbVzZ4Do3\r
++nL/sgwKGUq5wRrPqPWp6HXtZ9zG+/V7hFNrr/l42qGrLqsSh0bqvEnUiwczZLBGy\r
++NEs4G8VjmfS2cMKePsWaekBAvFUtb47PSB6JIPwpCNvKXDrcCb28eOQVB2atgj1h\r
++9SktOtWYJhWIQp2YW9iae30Z6lhCcdPRRHTFMQq2nQ==\r
++=eSMY\r
++-----END PGP SIGNATURE-----\r
+diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh\r
+index 9ee7661..44708cf 100644\r
+--- a/performance-test/perf-test-lib.sh\r
++++ b/performance-test/perf-test-lib.sh\r
+@@ -41,52 +41,70 @@ add_email_corpus ()\r
+ {\r
+ rm -rf ${MAIL_DIR}\r
+ \r
+- case "$corpus_size" in\r
+- small)\r
+- mail_subdir="mail/enron/bailey-s"\r
+- check_for="${TEST_DIRECTORY}/corpus/$mail_subdir"\r
+- ;;\r
+- medium)\r
+- mail_subdir="mail/notmuch-archive"\r
+- check_for="${TEST_DIRECTORY}/corpus/$mail_subdir"\r
+- ;;\r
+- *)\r
+- mail_subdir=mail\r
+- check_for="${TEST_DIRECTORY}/corpus/$mail_subdir/enron/wolfe-j"\r
+- esac\r
++ CORPUS_DIR=${TEST_DIRECTORY}/corpus\r
++ mkdir -p "${CORPUS_DIR}"\r
+ \r
+- MAIL_CORPUS="${TEST_DIRECTORY}/corpus/$mail_subdir"\r
+- TAG_CORPUS="${TEST_DIRECTORY}/corpus/tags"\r
++ MAIL_CORPUS="${CORPUS_DIR}/mail.${corpus_size}"\r
++ TAG_CORPUS="${CORPUS_DIR}/tags"\r
+ \r
+- args=()\r
+- if [ ! -d "$TAG_CORPUS" ] ; then\r
+- args+=("notmuch-email-corpus/tags")\r
++ if command -v pixz > /dev/null; then\r
++ XZ=pixz\r
++ else\r
++ XZ=xz\r
+ fi\r
+ \r
+- if [ ! -d "$check_for" ] ; then\r
+- args+=("notmuch-email-corpus/$mail_subdir")\r
++ if [ ! -d "${CORPUS_DIR}/manifest" ]; then\r
++\r
++ printf "Unpacking manifests\n"\r
++ tar --extract --use-compress-program ${XZ} --strip-components=1 \\r
++ --directory ${TEST_DIRECTORY}/corpus \\r
++ --wildcards --file ../download/notmuch-email-corpus-${PERFTEST_VERSION}.tar.xz \\r
++ 'notmuch-email-corpus/manifest/*'\r
+ fi\r
+ \r
+- if [[ ${#args[@]} > 0 ]]; then\r
+- if command -v pixz > /dev/null; then\r
+- XZ=pixz\r
++ file_list=$(mktemp file_listXXXXXX)\r
++ if [ ! -d "$TAG_CORPUS" ] ; then\r
++ echo "notmuch-email-corpus/tags" >> $file_list\r
++ fi\r
++\r
++ if [ ! -d "$MAIL_CORPUS" ] ; then\r
++ if [[ "$corpus_size" != "large" ]]; then\r
++ sed s,^,notmuch-email-corpus/, < \\r
++ ${TEST_DIRECTORY}/corpus/manifest/MANIFEST.${corpus_size} >> $file_list\r
+ else\r
+- XZ=xz\r
++ echo "notmuch-email-corpus/mail" >> $file_list\r
+ fi\r
++ fi\r
+ \r
+- printf "Unpacking corpus\n"\r
+- mkdir -p "${TEST_DIRECTORY}/corpus"\r
++ if [[ -s $file_list ]]; then\r
+ \r
++ printf "Unpacking corpus\n"\r
+ tar --checkpoint=.5000 --extract --strip-components=1 \\r
+ --directory ${TEST_DIRECTORY}/corpus \\r
+ --use-compress-program ${XZ} \\r
+ --file ../download/notmuch-email-corpus-${PERFTEST_VERSION}.tar.xz \\r
+- "${args[@]}"\r
++ --anchored --recursion \\r
++ --files-from $file_list\r
+ \r
+ printf "\n"\r
+ \r
++ if [[ ! -d ${MAIL_CORPUS} ]]; then\r
++ printf "creating link farm\n"\r
++\r
++ if [[ "$corpus_size" = large ]]; then\r
++ cp -rl ${TEST_DIRECTORY}/corpus/mail ${MAIL_CORPUS}\r
++ else\r
++ while read -r file; do\r
++ tdir=${MAIL_CORPUS}/$(dirname $file)\r
++ mkdir -p $tdir\r
++ ln ${TEST_DIRECTORY}/corpus/$file $tdir\r
++ done <${TEST_DIRECTORY}/corpus/manifest/MANIFEST.${corpus_size}\r
++ fi\r
++ fi\r
++\r
+ fi\r
+ \r
++ rm $file_list\r
+ cp -lr $TAG_CORPUS $TMP_DIRECTORY/corpus.tags\r
+ cp -lr $MAIL_CORPUS $MAIL_DIR\r
+ }\r
+diff --git a/performance-test/version.sh b/performance-test/version.sh\r
+index afafc73..f02527a 100644\r
+--- a/performance-test/version.sh\r
++++ b/performance-test/version.sh\r
+@@ -1,3 +1,3 @@\r
+ # this should be both a valid Makefile fragment and valid POSIX(ish) shell.\r
+ \r
+-PERFTEST_VERSION=0.3\r
++PERFTEST_VERSION=0.4\r
+-- \r
+1.8.4.2\r
+\r