diff options
Diffstat (limited to '')
-rwxr-xr-x | tests/smtradfile.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/smtradfile.sh b/tests/smtradfile.sh new file mode 100755 index 0000000..e47b525 --- /dev/null +++ b/tests/smtradfile.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# addd 2019-04-15 by RGerhards, released under ASL 2.0 +. ${srcdir:=.}/diag.sh init +generate_conf +add_conf ' +template(name="outfmt" type="plugin" plugin="RSYSLOG_TraditionalFileFormat") +action(type="omfile" template="outfmt" file="'$RSYSLOG_OUT_LOG'") +' +startup +injectmsg 0 1 +shutdown_when_empty +wait_shutdown +content_check "Mar 1 01:00:00 172.20.245.8 tag msgnum:00000000:" +exit_test |