diff options
Diffstat (limited to 'tests/imuxsock_legacy.sh')
-rwxr-xr-x | tests/imuxsock_legacy.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/imuxsock_legacy.sh b/tests/imuxsock_legacy.sh new file mode 100755 index 0000000..e3a224f --- /dev/null +++ b/tests/imuxsock_legacy.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# This tests legacy syntax. +# Added 2019-08-13 by Rainer Gerhards; released under ASL 2.0 +. ${srcdir:=.}/diag.sh init +check_logger_has_option_d +generate_conf +add_conf ' +$ModLoad ../plugins/imuxsock/.libs/imuxsock +$OmitLocalLogging on + +$AddUnixListenSocket '$RSYSLOG_DYNNAME'-testbench_socket + +template(name="outfmt" type="string" string="%msg:%\n") +*.=notice action(type="omfile" file="'$RSYSLOG_OUT_LOG'" template="outfmt") +' +startup +# send a message with trailing LF +logger -d -u $RSYSLOG_DYNNAME-testbench_socket test +shutdown_when_empty +wait_shutdown +export EXPECTED=" test" +cmp_exact +exit_test |