[Patch v3 09/11] perf-test: unpack tags.

david at tethera.net david at tethera.net
Sat Dec 15 04:45:12 PST 2012


From: David Bremner <bremner at debian.org>

There is only one set of tags, independant of the size of message
corpus chosen.
---
 performance-test/perf-test-lib.sh |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh
index 564b688..3a7ef2b 100644
--- a/performance-test/perf-test-lib.sh
+++ b/performance-test/perf-test-lib.sh
@@ -56,7 +56,13 @@ add_email_corpus ()
     esac
 
     MAIL_CORPUS="${TEST_DIRECTORY}/corpus/$mail_subdir"
+    TAG_CORPUS="${TEST_DIRECTORY}/corpus/tags"
+
     args=()
+    if [ ! -d "$TAG_CORPUS" ] ; then
+	args+=("notmuch-email-corpus/tags")
+    fi
+
     if [ ! -d "$check_for" ] ; then
 	args+=("notmuch-email-corpus/$mail_subdir")
     fi
@@ -81,6 +87,7 @@ add_email_corpus ()
 
     fi
 
+    cp -lr $TAG_CORPUS $TMP_DIRECTORY/corpus.tags
     cp -lr $MAIL_CORPUS $MAIL_DIR
 
 }
-- 
1.7.10.4



More information about the notmuch mailing list