diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/checkpoint/recovery-test.sh')
-rwxr-xr-x | src/third_party/wiredtiger/test/checkpoint/recovery-test.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/test/checkpoint/recovery-test.sh b/src/third_party/wiredtiger/test/checkpoint/recovery-test.sh index c776156ddec..d5500f83f79 100755 --- a/src/third_party/wiredtiger/test/checkpoint/recovery-test.sh +++ b/src/third_party/wiredtiger/test/checkpoint/recovery-test.sh @@ -4,11 +4,11 @@ set -x usage () { cat << EOF -Usage: recovery_test.sh {config} {home directory} +Usage: recovery_test.sh {config} {home directory} [test binary] EOF } -if [ "$#" -ne 2 ]; then +if [ "$#" -lt 2 ] || [ "$#" -gt 3 ]; then echo "Illegal number of parameters." usage exit 1 @@ -16,11 +16,17 @@ fi config=$1 home=$2 +if [ -z "$3" ]; then + bin="t" +else + bin=$3 +fi backup=$home.backup recovery=$home.recovery + #./t -t r -W 3 -D -X -n 100000 -k 100000 -C cache_size=100MB -h $home > $home.out 2>&1 & -./t ${config} -h ${home} > $home.out 2>&1 & +./${bin} ${config} -h ${home} > $home.out 2>&1 & pid=$! trap "kill -9 $pid" 0 1 2 3 13 15 @@ -37,7 +43,7 @@ while kill -STOP $pid ; do cp $home/* $backup kill -CONT $pid cp $backup/* $recovery - ./t -t r -D -v -h $recovery || exit 1 + ./${bin} -t r -D -v -h $recovery || exit 1 done # Clean the home directory once the test is completed. Note that once we fail to send the signal to |