diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
commit | dcc721a95bef6f0d8e6d8775b8efe33e5aecd562 (patch) | |
tree | 66a2774cd0ee294d019efd71d2544c70f42b2842 /tests/omtcl.sh | |
parent | Initial commit. (diff) | |
download | rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.tar.xz rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.zip |
Adding upstream version 8.2402.0.upstream/8.2402.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | tests/omtcl.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/omtcl.sh b/tests/omtcl.sh new file mode 100755 index 0000000..9fa3617 --- /dev/null +++ b/tests/omtcl.sh @@ -0,0 +1,19 @@ +#!/bin/bash +. ${srcdir:=.}/diag.sh init +generate_conf +add_conf ' +$ModLoad ../contrib/omtcl/.libs/omtcl +$template tcldict, "message \"%msg:::json%\" fromhost \"%HOSTNAME:::json%\" facility \"%syslogfacility-text%\" priority \"%syslogpriority-text%\" timereported \"%timereported:::date-rfc3339%\" timegenerated \"%timegenerated:::date-rfc3339%\" raw \"%rawmsg:::json%\" tag \"%syslogtag:::json%\"" +' +add_conf "*.* :omtcl:$srcdir/omtcl.tcl,doAction;tcldict +" +startup +echo 'injectmsg literal <167>Mar 1 01:00:00 172.20.245.8 tag hello world' | \ + ./diagtalker -p$IMDIAG_PORT || error_exit $? +echo doing shutdown +shutdown_when_empty +echo wait on shutdown +wait_shutdown +content_check 'HELLO WORLD' +cat $RSYSLOG_OUT_LOG +exit_test |