mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 04:40:43 +01:00
This is required to support parallel test runs. Among others, make thise files dynamic: * test-spool * rsyslog.input * rsyslog.out*.log * tmp.in Also: * convert presort test statement to function * cleanup imfile truncation test * cleanup imfile-growing-file-id test some cruft was left due to copy and paste error * serialize mysql tests
31 lines
914 B
Bash
Executable File
31 lines
914 B
Bash
Executable File
#!/bin/bash
|
|
# added 2016-11-02 by rgerhards
|
|
# This is part of the rsyslog testbench, licensed under ASL 2.0
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh check-inotify
|
|
generate_conf
|
|
add_conf '
|
|
global(workDirectory="'${RSYSLOG_DYNNAME}'.spool")
|
|
|
|
module(load="../plugins/imfile/.libs/imfile")
|
|
|
|
input( type="imfile"
|
|
file="./'$RSYSLOG_DYNNAME'.input"
|
|
tag="file:"
|
|
startmsg.regex="^msgnum"
|
|
PersistStateInterval="1"
|
|
)
|
|
|
|
template(name="outfmt" type="string" string="%msg:F,58:2%\n")
|
|
if $msg contains "msgnum:" then
|
|
action(type="omfile" file=`echo $RSYSLOG_OUT_LOG` template="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 5 4000 > $RSYSLOG_DYNNAME.input
|
|
startup
|
|
shutdown_when_empty # shut down rsyslogd when done processing messages
|
|
wait_shutdown # we need to wait until rsyslogd is finished!
|
|
seq_check 0 3
|
|
exit_test
|