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/imptcp_veryLargeOctateCountedMessages.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 'tests/imptcp_veryLargeOctateCountedMessages.sh')
-rwxr-xr-x | tests/imptcp_veryLargeOctateCountedMessages.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/imptcp_veryLargeOctateCountedMessages.sh b/tests/imptcp_veryLargeOctateCountedMessages.sh new file mode 100755 index 0000000..21c1fb9 --- /dev/null +++ b/tests/imptcp_veryLargeOctateCountedMessages.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# Test imptcp with poller not processing any messages +# test imptcp with very large messages while poller driven processing is disabled +# added 2015-10-17 by singh.janmejay +# This file is part of the rsyslog project, released under GPLv3 +. ${srcdir:=.}/diag.sh init +export NUMMESSAGES=20000 +generate_conf +add_conf '$MaxMessageSize 10k +template(name="outfmt" type="string" string="%msg:F,58:2%,%msg:F,58:3%,%msg:F,58:4%\n") + +module(load="../plugins/imptcp/.libs/imptcp" threads="32" processOnPoller="off") +input(type="imptcp" port="0" listenPortFileName="'$RSYSLOG_DYNNAME'.tcpflood_port") + +if (prifilt("local0.*")) then { + action(type="omfile" file="'$RSYSLOG_OUT_LOG'" template="outfmt") +} +' +export RS_REDIR="2>/dev/null" +startup +tcpflood -c1 -m$NUMMESSAGES -r -d100000 -P129 -O +wait_file_lines +shutdown_when_empty +wait_shutdown +seq_check 0 $((NUMMESSAGES - 1)) -E -T +exit_test |