mirror of
https://github.com/rsyslog/rsyslog.git
synced 2026-06-19 23:22:56 +02:00
23 lines
572 B
Bash
Executable File
23 lines
572 B
Bash
Executable File
#!/bin/bash
|
|
. ${srcdir:=.}/diag.sh init
|
|
generate_conf
|
|
add_conf '
|
|
module(load="../plugins/imtcp/.libs/imtcp")
|
|
input(type="imtcp" port="0" listenPortFileName="'$RSYSLOG_DYNNAME'.tcpflood_port")
|
|
|
|
set $!str!var1 = tolower("test");
|
|
set $!str!var2 = tolower("TeSt");
|
|
set $!str!var3 = tolower("");
|
|
|
|
template(name="outfmt" type="string" string="%!str%\n")
|
|
local4.* action(type="omfile" file=`echo $RSYSLOG_OUT_LOG` template="outfmt")
|
|
'
|
|
startup
|
|
tcpflood -m1 -y
|
|
shutdown_when_empty
|
|
wait_shutdown
|
|
export EXPECTED='{ "var1": "test", "var2": "test", "var3": "" }'
|
|
cmp_exact
|
|
exit_test
|
|
|