From 972719b57603010372e8c4b802b7d13beba477d8 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 16 Jan 2015 21:26:17 +0100 Subject: [PATCH] integration/config.sh: Add a test to load and reload a plugin. --- t/integration/config.sh | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/t/integration/config.sh b/t/integration/config.sh index b25e950..7f0ab95 100755 --- a/t/integration/config.sh +++ b/t/integration/config.sh @@ -82,13 +82,38 @@ run_sysdbd -D -C "$SYSDBD_CONF" wait_for_sysdbd # reconfigure -SOCKET_FILE="$SOCKET_FILE-2" +ORIG_SOCKET="$SOCKET_FILE" +SOCKET_FILE="$ORIG_SOCKET-2" cat < "$SYSDBD_CONF" Listen "${SOCKET_FILE}" EOF kill -HUP $SYSDBD_PID wait_for_sysdbd +# load plugin +SOCKET_FILE="$ORIG_SOCKET-3" +cat < "$SYSDBD_CONF" +Listen "${SOCKET_FILE}" +PluginDir "$PLUGIN_DIR" +LoadBackend mock_plugin + + +EOF +kill -HUP $SYSDBD_PID +wait_for_sysdbd + +# reload plugin +SOCKET_FILE="$ORIG_SOCKET-4" +cat < "$SYSDBD_CONF" +Listen "${SOCKET_FILE}" +PluginDir "$PLUGIN_DIR" +LoadBackend mock_plugin + + +EOF +kill -HUP $SYSDBD_PID +wait_for_sysdbd + stop_sysdbd # vim: set tw=78 sw=4 ts=4 noexpandtab : -- 2.30.2