summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/checkpoint/recovery-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/checkpoint/recovery-test.sh')
-rwxr-xr-xsrc/third_party/wiredtiger/test/checkpoint/recovery-test.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/test/checkpoint/recovery-test.sh b/src/third_party/wiredtiger/test/checkpoint/recovery-test.sh
index fc98ff2f463..1cc0653aef9 100755
--- a/src/third_party/wiredtiger/test/checkpoint/recovery-test.sh
+++ b/src/third_party/wiredtiger/test/checkpoint/recovery-test.sh
@@ -2,12 +2,25 @@
set -x
-home=${1:-WT_TEST}
+usage () {
+ cat << EOF
+Usage: recovery_test.sh {config} {home directory}
+EOF
+}
+
+if [ "$#" -ne 2 ]; then
+ echo "Illegal number of parameters."
+ usage
+ exit 1
+fi
+
+config=$1
+home=$2
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 -t r -s 2 -m -W 3 -D -p -x -n 100000 -k 100000 -C cache_size=100MB -h $home > $home.out 2>&1 &
+./t ${config} -h ${home} > $home.out 2>&1 &
pid=$!
trap "kill -9 $pid" 0 1 2 3 13 15