summaryrefslogtreecommitdiff
path: root/performance-test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-12-02 08:53:04 -0400
committerDavid Bremner <david@tethera.net>2017-12-04 21:04:38 -0400
commit1e4e8e3bf564ea190b42e9347b22c62fa6b78396 (patch)
tree19d08790fb0813d2fadb3b67a0d2cf56a9b34875 /performance-test
parentcf08295c503a2cefc4c51c5398f3fc1159521ff1 (diff)
test: unbreak performance tests
In 8e7fb88237aedea22 Jani replaced the use of $(pwd -P) to find the TEST_DIRECTORY in order to better support out of tree builds. Unfortunately the performance-tests need a different value for the variable and were thus broken. This commit splits out the setting of this variable for the two sets of tests. Performance tests still don't work out of tree, because the handling of the downloaded corpus needs to be updated.
Diffstat (limited to 'performance-test')
-rw-r--r--performance-test/perf-test-lib.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh
index 56538abd..b70288cc 100644
--- a/performance-test/perf-test-lib.sh
+++ b/performance-test/perf-test-lib.sh
@@ -29,6 +29,9 @@ done
# Ensure NOTMUCH_SRCDIR and NOTMUCH_BUILDDIR are set.
. $(dirname "$0")/../test/export-dirs.sh || exit 1
+# Where to run the tests
+TEST_DIRECTORY=$NOTMUCH_BUILDDIR/performance-test
+
. "$NOTMUCH_SRCDIR/test/test-lib-common.sh" || exit 1
set -e