From: Andrew Tridgell Date: Fri, 1 Jun 2007 09:04:51 +0000 (+1000) Subject: convert ctdbd.sh tests to use an event script X-Git-Tag: tevent-0.9.20~348^2~2615 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=869d70d9c9b05fc97102317c88bd02fed9aba421;p=thirdparty%2Fsamba.git convert ctdbd.sh tests to use an event script (This used to be ctdb commit b3eff804fe59238ed37cd692cc04785089a89dc3) --- diff --git a/ctdb/tests/ctdbd.sh b/ctdb/tests/ctdbd.sh index 72bd47eb604..5aedf2e3d59 100755 --- a/ctdb/tests/ctdbd.sh +++ b/ctdb/tests/ctdbd.sh @@ -3,8 +3,10 @@ killall -q ctdbd echo "Starting 2 ctdb daemons" -$VALGRIND bin/ctdbd --nlist direct/nodes.txt -$VALGRIND bin/ctdbd --nlist direct/nodes.txt +$VALGRIND bin/ctdbd --nlist direct/nodes.txt --event-script=tests/events --logfile=- +$VALGRIND bin/ctdbd --nlist direct/nodes.txt --event-script=tests/events --logfile=- + +sleep 2 echo "Testing ping" $VALGRIND bin/ctdb ping || exit 1 @@ -19,7 +21,7 @@ echo "Testing statisticsreset" $VALGRIND bin/ctdb -n all statisticsreset || exit 1 echo "Testing debug" -$VALGRIND bin/ctdb -n all setdebug 5 || exit 1 +$VALGRIND bin/ctdb -n all setdebug 3 || exit 1 $VALGRIND bin/ctdb -n all getdebug || exit 1 $VALGRIND bin/ctdb -n all setdebug 0 || exit 1 $VALGRIND bin/ctdb -n all getdebug || exit 1 @@ -31,6 +33,15 @@ $VALGRIND bin/ctdb attach test2.tdb || exit 1 echo "Testing getdbmap" $VALGRIND bin/ctdb getdbmap || exit 1 -echo "All done" +echo "Testing status" +$VALGRIND bin/ctdb status || exit 1 +sleep 1 + +echo "Testing shutdown" +$VALGRIND bin/ctdb shutdown -n all || exit 1 + +sleep 1 + +echo "All done" killall -q ctdbd