mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 01:30:42 +01:00
Partitionally moved inotify code to global imfile code as needed for FEN Mode. Enabled all wildcard tests that are supported by FEN API.
31 lines
1.0 KiB
Bash
Executable File
31 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# This is part of the rsyslog testbench, licensed under GPLv3
|
|
export IMFILEINPUTFILES="10"
|
|
echo [imfile-wildcards-dirs.sh]
|
|
. $srcdir/diag.sh check-inotify-only
|
|
. $srcdir/diag.sh init
|
|
# generate input files first. Note that rsyslog processes it as
|
|
# soon as it start up (so the file should exist at that point).
|
|
|
|
# Start rsyslog now before adding more files
|
|
. $srcdir/diag.sh startup imfile-wildcards-dirs.conf
|
|
# sleep a little to give rsyslog a chance to begin processing
|
|
sleep 1
|
|
|
|
for i in `seq 1 $IMFILEINPUTFILES`;
|
|
do
|
|
mkdir rsyslog.input.dir$i
|
|
./inputfilegen -m 1 > rsyslog.input.dir$i/file.logfile
|
|
done
|
|
# wait for imfile to process
|
|
./msleep 250
|
|
ls -d rsyslog.input.*
|
|
|
|
# sleep a little to give rsyslog a chance for processing
|
|
sleep 1
|
|
|
|
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
. $srcdir/diag.sh wait-shutdown # we need to wait until rsyslogd is finished!
|
|
. $srcdir/diag.sh content-check-with-count "HEADER msgnum:00000000:" $IMFILEINPUTFILES
|
|
. $srcdir/diag.sh exit
|