rsyslog/tests/incltest.sh
Rainer Gerhards dc8f9b531c bugfix: $IncludeConfig did not correctly process directories
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=376
The testbench was also enhanced to check for these cases.
Thanks to Georgi Georgiev for the bug report.

Also minor bugfix: no error msg on unreadable $IncludeConfig path
2012-11-09 12:12:17 +01:00

12 lines
525 B
Bash
Executable File

echo ===============================================================================
echo \[incltest.sh\]: test $IncludeConfig for specific file
source $srcdir/diag.sh init
source $srcdir/diag.sh startup incltest.conf
# 100 messages are enough - the question is if the include is read ;)
source $srcdir/diag.sh injectmsg 0 100
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
source $srcdir/diag.sh wait-shutdown
source $srcdir/diag.sh seq-check 0 99
source $srcdir/diag.sh exit