diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2015-12-03 09:58:10 -0500 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2015-12-03 09:58:10 -0500 |
commit | e53e2795e1683d4d7283b42636efd6d90817e863 (patch) | |
tree | 84c45c9fc00328283aa7c71701b5889503ff0098 | |
parent | 2df5658da316d60fcfeec0e94467af48d63cb885 (diff) | |
download | mongo-e53e2795e1683d4d7283b42636efd6d90817e863.tar.gz |
WT-2225 Allow script to take a command line arg to pass to wtperf.
-rwxr-xr-x | bench/wtperf/runners/wtperf_run.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bench/wtperf/runners/wtperf_run.sh b/bench/wtperf/runners/wtperf_run.sh index ac31c2a2e78..e07239358c5 100755 --- a/bench/wtperf/runners/wtperf_run.sh +++ b/bench/wtperf/runners/wtperf_run.sh @@ -12,12 +12,16 @@ # 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 +wtarg="" +if test "$#" -eq "3"; then + wtarg=$3 +fi home=./WT_TEST outfile=./wtperf.out @@ -77,7 +81,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 if test "$?" -ne "0"; then exit 1 fi |