perf-test: use $(dirname "$0") for sourcing perf-test-lib.sh

Don't assume the tests are always run from within the source tree.
This commit is contained in:
Jani Nikula 2017-09-25 23:38:20 +03:00 committed by David Bremner
parent a863de1e43
commit fd36ae9f51
11 changed files with 11 additions and 11 deletions

View file

@ -2,7 +2,7 @@
test_description='notmuch new' test_description='notmuch new'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
# ensure initial 'notmuch new' is run by memory_start # ensure initial 'notmuch new' is run by memory_start
uncache_database uncache_database

View file

@ -2,7 +2,7 @@
test_description='dump and restore' test_description='dump and restore'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
memory_start memory_start

View file

@ -2,7 +2,7 @@
test_description='show' test_description='show'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
memory_start memory_start

View file

@ -2,7 +2,7 @@
test_description='search' test_description='search'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
memory_start memory_start

View file

@ -2,7 +2,7 @@
test_description='search' test_description='search'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
memory_start memory_start

View file

@ -2,7 +2,7 @@
test_description='reindex' test_description='reindex'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
memory_start memory_start

View file

@ -2,7 +2,7 @@
test_description='search' test_description='search'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
memory_start memory_start

View file

@ -2,7 +2,7 @@
test_description='notmuch new' test_description='notmuch new'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
uncache_database uncache_database

View file

@ -2,7 +2,7 @@
test_description='dump and restore' test_description='dump and restore'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
time_start time_start

View file

@ -2,7 +2,7 @@
test_description='tagging' test_description='tagging'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
time_start time_start

View file

@ -2,7 +2,7 @@
test_description='tagging' test_description='tagging'
. ./perf-test-lib.sh || exit 1 . $(dirname "$0")/perf-test-lib.sh || exit 1
time_start time_start