#!/bin/bash -x if [ -z $srcdir ]; then echo srcdir variable not set. exit 1 fi source $srcdir/test/test-util.sh # start a server with 2 second wait, # 20s timeout, and my_test_db as database test_start_server 2 20 my_test_db sleep 1 ##################### run_to 20 test/sdskv-erase-test $svr_addr 1 my_test_db 10 if [ $? -ne 0 ]; then wait exit 1 fi wait echo cleaning up $TMPBASE rm -rf $TMPBASE exit 0