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/imfile-basic-vgthread.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/imfile-basic-vgthread.sh')
-rwxr-xr-x | tests/imfile-basic-vgthread.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/imfile-basic-vgthread.sh b/tests/imfile-basic-vgthread.sh new file mode 100755 index 0000000..53b78d2 --- /dev/null +++ b/tests/imfile-basic-vgthread.sh @@ -0,0 +1,39 @@ +#!/bin/bash +# This is part of the rsyslog testbench, licensed under ASL 2.0 +. ${srcdir:=.}/diag.sh init +skip_platform "FreeBSD" "This test currently does not work on FreeBSD." +export NUMMESSAGES=50000 +if grep -q 'release 6\.' <<< "$(cat /etc/redhat-release 2>/dev/null)"; then + echo "RHEL/CentOS 6 detected, adding valgrind suppressions" + export RS_TEST_VALGRIND_EXTRA_OPTS="--suppressions=${srcdir}/imfile-basic-vgthread.supp" +fi + +exit +generate_conf +add_conf ' +$ModLoad ../plugins/imfile/.libs/imfile +$InputFileName ./'$RSYSLOG_DYNNAME'.input +$InputFileTag file: +$InputFileStateFile stat-file1 +$InputFileSeverity error +$InputFileFacility local7 +$InputFileMaxLinesAtOnce 100000 +$InputRunFileMonitor + +$template outfmt,"%msg:F,58:2%\n" +:msg, contains, "msgnum:" ./'$RSYSLOG_OUT_LOG';outfmt +' + +# generate input file first. Note that rsyslog processes it as +# soon as it start up (so the file should exist at that point). +./inputfilegen -m $NUMMESSAGES > $RSYSLOG_DYNNAME.input +ls -l $RSYSLOG_DYNNAME.input + +startup_vgthread +wait_file_lines +shutdown_when_empty +wait_shutdown_vg +check_exit_vg + +seq_check +exit_test |