From: Sebastian Harl Date: Fri, 16 Jan 2015 20:26:17 +0000 (+0100) Subject: integration/config.sh: Add a test to load and reload a plugin. X-Git-Tag: sysdb-0.7.0~62 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=972719b57603010372e8c4b802b7d13beba477d8;p=sysdb.git integration/config.sh: Add a test to load and reload a plugin. --- 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 :