1
# Test for automatic creation of dynafile directories
2
# note that we use the "test-spool" directory, because it is handled by diag.sh
3
# in any case, so we do not need to add any extra new test dir.
4
# added 2009-11-30 by Rgerhards
5
# This file is part of the rsyslog project, released under GPLv3
6
# uncomment for debugging support:
7
echo ===================================================================================
8
echo \[dircreate_off_off.sh\]: testing automatic directory creation for dynafiles - default
9
source $srcdir/diag.sh init
10
source $srcdir/diag.sh startup dircreate_off.conf
11
source $srcdir/diag.sh injectmsg 0 1 # a single message is sufficient
12
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
13
source $srcdir/diag.sh wait-shutdown
14
if [ -e test-logdir/rsyslog.out.log ]
16
echo "test-logdir or logfile WAS created where not permitted to!"
20
source $srcdir/diag.sh exit