From dcc721a95bef6f0d8e6d8775b8efe33e5aecd562 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 18:28:20 +0200 Subject: Adding upstream version 8.2402.0. Signed-off-by: Daniel Baumann --- tests/imuxsock_logger.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 tests/imuxsock_logger.sh (limited to 'tests/imuxsock_logger.sh') diff --git a/tests/imuxsock_logger.sh b/tests/imuxsock_logger.sh new file mode 100755 index 0000000..508676f --- /dev/null +++ b/tests/imuxsock_logger.sh @@ -0,0 +1,20 @@ +#!/bin/bash +. ${srcdir:=.}/diag.sh init +check_logger_has_option_d +export NUMMESSAGES=1 +export QUEUE_EMPTY_CHECK_FUNC=wait_file_lines +generate_conf +add_conf ' +module(load="../plugins/imuxsock/.libs/imuxsock" sysSock.use="off") +input(type="imuxsock" Socket="'$RSYSLOG_DYNNAME'-testbench_socket") + +template(name="outfmt" type="string" string="%msg:%\n") +*.=notice action(type="omfile" file=`echo $RSYSLOG_OUT_LOG` template="outfmt") +' +startup +logger -d -u $RSYSLOG_DYNNAME-testbench_socket test +shutdown_when_empty +wait_shutdown +export EXPECTED=" test" +cmp_exact +exit_test -- cgit v1.2.3