aboutsummaryrefslogtreecommitdiffhomepage
path: root/performance-test/perf-test-lib.sh
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2012-12-03 22:59:56 -0400
committerGravatar David Bremner <bremner@debian.org>2012-12-15 08:17:58 -0400
commit5c35791d7cf7279024befc98e9d973af461336a3 (patch)
treedc52f53390e2eb43938a37db06fcf4a40ce5599d /performance-test/perf-test-lib.sh
parent5f8e37691297135d58839d4d8e683670b9f4eef2 (diff)
perf-test: unpack tags.
There is only one set of tags, independant of the size of message corpus chosen.
Diffstat (limited to 'performance-test/perf-test-lib.sh')
-rw-r--r--performance-test/perf-test-lib.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh
index 564b6884..3a7ef2b3 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
}