diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-30 12:35:46 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-30 12:35:46 +0100 |
commit | 6598615e5bb4e69b9802cf47b1125ce822873ef8 (patch) | |
tree | 7f96c2719c55b22c2d3e0e00e34c2d0649046366 /tests/dircreate_dflt.sh | |
parent | 8b9132bc3212b8e231edc979ffec77c88d96b044 (diff) | |
download | rsyslog-6598615e5bb4e69b9802cf47b1125ce822873ef8.tar.gz rsyslog-6598615e5bb4e69b9802cf47b1125ce822873ef8.tar.xz rsyslog-6598615e5bb4e69b9802cf47b1125ce822873ef8.zip |
extended testbench: tests for $CreateDirs
Diffstat (limited to 'tests/dircreate_dflt.sh')
-rwxr-xr-x | tests/dircreate_dflt.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/dircreate_dflt.sh b/tests/dircreate_dflt.sh new file mode 100755 index 00000000..71a671f3 --- /dev/null +++ b/tests/dircreate_dflt.sh @@ -0,0 +1,20 @@ +# Test for automatic creation of dynafile directories +# note that we use the "test-spool" directory, because it is handled by diag.sh +# in any case, so we do not need to add any extra new test dir. +# added 2009-11-30 by Rgerhards +# This file is part of the rsyslog project, released under GPLv3 +# uncomment for debugging support: +echo =================================================================================== +echo \[dircreate_dflt_dflt.sh\]: testing automatic directory creation for dynafiles - default +source $srcdir/diag.sh init +source $srcdir/diag.sh startup dircreate_dflt.conf +source $srcdir/diag.sh injectmsg 0 1 # a single message is sufficient +source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages +source $srcdir/diag.sh wait-shutdown +if [ ! -e test-logdir/rsyslog.out.log ] +then + echo "test-logdir or logfile not created!" + exit 1 +fi +exit +source $srcdir/diag.sh exit |