]> git.notmuchmail.org Git - notmuch/commitdiff
perf-test: unpack tags.
authorDavid Bremner <bremner@debian.org>
Tue, 4 Dec 2012 02:59:56 +0000 (22:59 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 15 Dec 2012 12:17:58 +0000 (08:17 -0400)
There is only one set of tags, independant of the size of message
corpus chosen.

performance-test/perf-test-lib.sh

index 564b688476db3d9db68beced9f77b1aaeaae9aac..3a7ef2b35999506e7b3c47b0511ed94f9f0d4f4e 100644 (file)
@@ -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
 
 }