ldb: Release ldb 1.3.0
[Samba.git] / ctdb / tests / simple / 28_zero_eventscripts.sh
blob9ff59866f78da611cb8200284ae0b4145622be22
1 #!/bin/bash
3 test_info()
5 cat <<EOF
6 Check that CTDB operated correctly if there are 0 event scripts
8 This test only does anything with local daemons. On a real cluster it
9 has no way of updating configuration.
10 EOF
13 . "${TEST_SCRIPTS_DIR}/integration.bash"
15 ctdb_test_init "$@"
17 set -e
19 cluster_is_healthy
21 if [ -z "$TEST_LOCAL_DAEMONS" ] ; then
22 echo "SKIPPING this test - only runs against local daemons"
23 exit 0
26 # Reset configuration
27 ctdb_restart_when_done
29 daemons_stop
31 echo "Starting CTDB with an empty eventscript directory..."
32 empty_dir=$(mktemp -d --tmpdir="$TEST_VAR_DIR")
33 ctdb_test_exit_hook_add "rmdir $empty_dir"
34 CTDB_EVENT_SCRIPT_DIR="$empty_dir" daemons_start
36 wait_until_ready
38 ps_ctdbd
40 echo "Good, that seems to work!"
42 daemons_stop