--- /dev/null
+#!/bin/bash
+
+test_info()
+{
+ cat <<EOF
+Check that CTDB operates correctly if the recovery lock is configured
+as a command.
+
+This test only does anything with local daemons. On a real cluster it
+has no way of updating configuration.
+EOF
+}
+
+. "${TEST_SCRIPTS_DIR}/integration.bash"
+
+set -e
+
+if [ -z "$TEST_LOCAL_DAEMONS" ] ; then
+ echo "SKIPPING this test - only runs against local daemons"
+ exit 0
+fi
+
+echo "Starting CTDB with recovery lock command configured..."
+ctdb_test_init --reclock-use-command
+
+cluster_is_healthy
+
+echo "Good, that seems to work!"
local public_addresses=""
local no_event_scripts=false
local disable_failover=""
+ local reclock_use_command=""
case "$1" in
--no-public-addresses) public_addresses="/dev/null" ;;
--no-event-scripts) no_event_scripts=true ;;
--disable-failover) disable_failover="yes" ;;
+ --reclock-use-command) reclock_use_command="yes" ;;
esac
$ctdb_local_daemons setup \
${disable_failover:+-F} \
${public_addresses:+-P} ${public_addresses} \
${CTDB_USE_IPV6:+-6} \
+ ${reclock_use_command:+-R} \
${TEST_SOCKET_WRAPPER_SO_PATH:+-S} ${TEST_SOCKET_WRAPPER_SO_PATH}
if [ $? -ne 0 ] ; then
exit 1