diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-07-10 08:06:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:59:20 -0500 |
commit | 6504900f1f52927adab3489b8d04b6644ceaee7d (patch) | |
tree | 893cadba231a529f320046429767cedf8b0eec30 /source4/cluster/ctdb/tests/ctdbd.sh | |
parent | d4e2d157cbce5a1cdc75efb5ced75d9608a0f7df (diff) | |
download | samba-6504900f1f52927adab3489b8d04b6644ceaee7d.tar.gz samba-6504900f1f52927adab3489b8d04b6644ceaee7d.tar.bz2 samba-6504900f1f52927adab3489b8d04b6644ceaee7d.zip |
r23806: update Samba4 with the latest ctdb code.
This doesn't get the ctdb code fully working in Samba4, it just gets
it building and not breaking non-clustered use of Samba. It will take
a bit longer to update some of the calling ctdb_cluster.c code to make
it work correctly in Samba4.
Note also that Samba4 now only links to the client portion of
ctdb. For the moment I am leaving the ctdbd as a separate daemon,
which you install separately from http://ctdb.samba.org/.
(This used to be commit b196077cbb55cbecad87065133c2d67198e31066)
Diffstat (limited to 'source4/cluster/ctdb/tests/ctdbd.sh')
-rwxr-xr-x | source4/cluster/ctdb/tests/ctdbd.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/source4/cluster/ctdb/tests/ctdbd.sh b/source4/cluster/ctdb/tests/ctdbd.sh new file mode 100755 index 0000000000..4a1e9976b2 --- /dev/null +++ b/source4/cluster/ctdb/tests/ctdbd.sh @@ -0,0 +1,50 @@ +#!/bin/sh + +killall -q ctdbd + +tests/start_daemons.sh 2 tests/nodes.txt || exit 1 + +echo "Testing ping" +$VALGRIND bin/ctdb ping || exit 1 + +echo "Testing status" +$VALGRIND bin/ctdb status || exit 1 + +echo "Testing statistics" +$VALGRIND bin/ctdb -n all statistics || exit 1 + +echo "Testing statisticsreset" +$VALGRIND bin/ctdb -n all statisticsreset || exit 1 + +echo "Testing debug" +$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 + +echo "Attaching to some databases" +$VALGRIND bin/ctdb attach test1.tdb || exit 1 +$VALGRIND bin/ctdb attach test2.tdb || exit 1 + +echo "Testing getdbmap" +$VALGRIND bin/ctdb getdbmap || exit 1 + +echo "Testing status" +$VALGRIND bin/ctdb status || exit 1 + +echo "Testing variables" +$VALGRIND bin/ctdb listvars || exit 1 +$VALGRIND bin/ctdb getvar TraverseTimeout || exit 1 +$VALGRIND bin/ctdb setvar TraverseTimeout 10 || exit 1 +$VALGRIND bin/ctdb getvar TraverseTimeout || exit 1 + +sleep 1 + +echo "Testing shutdown" +$VALGRIND bin/ctdb shutdown -n all || exit 1 + +sleep 1 + +echo "All done" +killall -q ctdbd +exit 0 |