Added use of $ctdb_test_exit_hook to function ctdb_test_exit. Removed
authorMartin Schwenke <martin@meltin.net>
Tue, 9 Dec 2008 07:20:11 +0000 (18:20 +1100)
committerMartin Schwenke <martin@meltin.net>
Tue, 9 Dec 2008 07:20:11 +0000 (18:20 +1100)
commit60f86400acfa33407d989639f7d674fd5dffec59
tree76f9d926ddffd986140e1b5e6b1c36a68c5d39f9
parent370cd5e8199a866853459c81bca3fdda1d0943a6
Added use of $ctdb_test_exit_hook to function ctdb_test_exit.  Removed
sleeps from ban/unban tests.  Now expect "ctdb ping" to return false
if it fails, so made relevant change to 09_ctdb_ping.sh.  New
functions install_eventscript and uninstall_eventscript.  New
setup/cleanup tests 00_ctdb_install_eventscript.sh and
99_ctdb_uninstall_eventscript.sh.  New test 21_ctdb_disablemonitor.sh,
which is incredibly complex.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 23bffef2295772f5b795236d60b7fb6ea754b7fb)
ctdb/tests/scripts/ctdb_test_functions.bash
ctdb/tests/simple/00_ctdb_install_eventscript.sh [new file with mode: 0755]
ctdb/tests/simple/09_ctdb_ping.sh
ctdb/tests/simple/21_ctdb_disablemonitor.sh [new file with mode: 0755]
ctdb/tests/simple/41_ctdb_ban_simple.sh
ctdb/tests/simple/42_ctdb_unban_simple.sh
ctdb/tests/simple/99_ctdb_uninstall_eventscript.sh [new file with mode: 0755]