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/asynwr_simple.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/asynwr_simple.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/asynwr_simple.sh b/tests/asynwr_simple.sh new file mode 100755 index 0000000..9fdbc67 --- /dev/null +++ b/tests/asynwr_simple.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# This is test driver for testing asynchronous file output. +# This test intentionally uses legacy format. +# added 2010-03-09 by Rgerhards, re-written 2019-08-15 +# This is part of the rsyslog testbench, licensed under ASL 2.0 +. ${srcdir:=.}/diag.sh init +# send 35555 messages, make sure file size is not a multiple of +# 10K, the buffer size! +export NUMMESSAGES=355555 +export QUEUE_EMPTY_CHECK_FUNC=wait_seq_check +generate_conf +add_conf ' +$template outfmt,"%msg:F,58:2%\n" +template(name="dynfile" type="string" string="'$RSYSLOG_OUT_LOG'") +$OMFileFlushOnTXEnd off +$OMFileFlushInterval 2 +$OMFileIOBufferSize 10k +$OMFileAsyncWriting on +:msg, contains, "msgnum:" ?dynfile;outfmt +' +startup +injectmsg +shutdown_when_empty +wait_shutdown +seq_check +exit_test |