summaryrefslogtreecommitdiffstats
path: root/tests/incltest_dir_wildcard.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-11-09 12:12:17 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-11-09 12:12:17 +0100
commitdc8f9b531c6c53af7a81a5a378ba1c1514f7a47c (patch)
tree67260a6aa41b605c0a5530dac6ffcf39ee177e51 /tests/incltest_dir_wildcard.sh
parentb05d4a6db4cc7a0e7a8f4efdb30c784f51b15f2e (diff)
downloadrsyslog-dc8f9b531c6c53af7a81a5a378ba1c1514f7a47c.tar.gz
rsyslog-dc8f9b531c6c53af7a81a5a378ba1c1514f7a47c.tar.bz2
rsyslog-dc8f9b531c6c53af7a81a5a378ba1c1514f7a47c.zip
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
Diffstat (limited to 'tests/incltest_dir_wildcard.sh')
-rwxr-xr-xtests/incltest_dir_wildcard.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/incltest_dir_wildcard.sh b/tests/incltest_dir_wildcard.sh
new file mode 100755
index 00000000..0dcad34d
--- /dev/null
+++ b/tests/incltest_dir_wildcard.sh
@@ -0,0 +1,11 @@
+echo ===============================================================================
+echo \[incltest_dir_wildcard.sh\]: test $IncludeConfig for directories with wildcards
+
+source $srcdir/diag.sh init
+source $srcdir/diag.sh startup incltest_dir_wildcard.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