3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 PATH
="$PATH:$CTDB_SCRIPTS_TOOLS_HELPER_DIR"
7 setup_ctdb_base
"${TEST_VAR_DIR}" "cunit"
9 conffile
="${CTDB_BASE}/ctdb.conf"
10 scriptfile
="${CTDB_BASE}/debug-hung-script.sh"
17 test_cleanup remove_files
19 cat > "$conffile" <<EOF
24 unit_test ctdb-config get
"event" "debug script"
26 cat > "$conffile" <<EOF
28 debug script = debug-hung-script.sh
33 required_result
22 <<EOF
34 debug script $scriptfile is not executable
35 conf: validation for option "debug script" failed
36 Failed to load config file $conffile
38 unit_test ctdb-config validate
40 chmod +x
"$scriptfile"
43 unit_test ctdb-config validate
47 required_result
22 <<EOF
48 debug script $scriptfile does not exist
49 conf: validation for option "debug script" failed
50 Failed to load config file $conffile
52 unit_test ctdb-config validate