summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/bench/wtperf/runners/wtperf_run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/bench/wtperf/runners/wtperf_run.sh')
-rwxr-xr-xsrc/third_party/wiredtiger/bench/wtperf/runners/wtperf_run.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/bench/wtperf/runners/wtperf_run.sh b/src/third_party/wiredtiger/bench/wtperf/runners/wtperf_run.sh
index ac31c2a2e78..7a1ad44f39c 100755
--- a/src/third_party/wiredtiger/bench/wtperf/runners/wtperf_run.sh
+++ b/src/third_party/wiredtiger/bench/wtperf/runners/wtperf_run.sh
@@ -12,16 +12,27 @@
# This script should be invoked with the pathname of the wtperf test
# config to run and the number of runs.
#
-if test "$#" -ne "2"; then
+if test "$#" -lt "2"; then
echo "Must specify wtperf test to run and number of runs"
exit 1
fi
wttest=$1
runmax=$2
+# Jenkins removes the quotes from the passed in arg so we may
+# have 3 or 4 args.
+wtarg=""
+wtarg2=""
+if test "$#" -gt "2"; then
+ wtarg=$3
+ if test "$#" -eq "4"; then
+ wtarg2=$4
+ fi
+fi
home=./WT_TEST
outfile=./wtperf.out
rm -f $outfile
+echo "Parsed $# args: test: $wttest runmax: $runmax args: $wtarg $wtarg2" >> $outfile
# Each of these has an entry for each op in ops below.
avg=(0 0 0 0)
@@ -77,7 +88,7 @@ run=1
while test "$run" -le "$runmax"; do
rm -rf $home
mkdir $home
- LD_PRELOAD=/usr/lib64/libjemalloc.so.1 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ./wtperf -O $wttest
+ LD_PRELOAD=/usr/lib64/libjemalloc.so.1 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ./wtperf -O $wttest $wtarg $wtarg2
if test "$?" -ne "0"; then
exit 1
fi