summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/csuite/wt2853_perf/smoke.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/csuite/wt2853_perf/smoke.sh')
-rwxr-xr-xsrc/third_party/wiredtiger/test/csuite/wt2853_perf/smoke.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/third_party/wiredtiger/test/csuite/wt2853_perf/smoke.sh b/src/third_party/wiredtiger/test/csuite/wt2853_perf/smoke.sh
index d2351082329..6dcc4497d14 100755
--- a/src/third_party/wiredtiger/test/csuite/wt2853_perf/smoke.sh
+++ b/src/third_party/wiredtiger/test/csuite/wt2853_perf/smoke.sh
@@ -9,11 +9,13 @@ then
# If the test binary is passed in manually.
test_bin=$1
else
- # If $top_builddir/$top_srcdir aren't set, default to building in build_posix
- # and running in test/csuite.
- top_builddir=${top_builddir:-../../build_posix}
- top_srcdir=${top_srcdir:-../..}
- test_bin=$top_builddir/test/csuite/test_wt2853_perf
+ # If $binary_dir isn't set, default to using the build directory
+ # this script resides under. Our CMake build will sync a copy of this
+ # script to the build directory. Note this assumes we are executing a
+ # copy of the script that lives under the build directory. Otherwise
+ # passing the binary path is required.
+ binary_dir=${binary_dir:-`dirname $0`}
+ test_bin=$binary_dir/test_wt2853_perf
fi
$TEST_WRAPPER $test_bin -t r