rsyslog/tests/testsuites/badqi.conf
Rainer Gerhards 9079f66830 improved testbench
- added a test to check handling of damaged .qi files on startup
- made sure each test identifies itself on startup
2009-10-21 15:17:19 +02:00

16 lines
461 B
Plaintext

# Test for bad .qi file (see .sh file for details)
# rgerhards, 2009-10-21
$IncludeConfig diag-common.conf
$ModLoad ../plugins/imtcp/.libs/imtcp
$MainMsgQueueTimeoutShutdown 10000
$InputTCPServerRun 13514
$template outfmt,"%msg:F,58:2%\n"
$template dynfile,"rsyslog.out.log" # trick to use relative path names!
# instruct to use bad .qi file
$WorkDirectory bad_qi
$ActionQueueType LinkedList
$ActionQueueFileName dbq
:msg, contains, "msgnum:" ?dynfile;outfmt