]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
convert ctdbd.sh tests to use an event script
authorAndrew Tridgell <tridge@samba.org>
Fri, 1 Jun 2007 09:04:51 +0000 (19:04 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 1 Jun 2007 09:04:51 +0000 (19:04 +1000)
(This used to be ctdb commit b3eff804fe59238ed37cd692cc04785089a89dc3)

ctdb/tests/ctdbd.sh

index 72bd47eb604cada050e194debaea5d39b70aa4c0..5aedf2e3d594fecea3367703762a8c89b7be2512 100755 (executable)
@@ -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