mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 10:30:43 +01:00
Also a couple of changes to testbench worth mentioning: * use cp -f to ensure files can be overwirtten in VBUILD * fix issue of missing include test file in EXTRA_DIST * new supressions * testbench: try to use local system dependency cache avoid going to Internet repos if not absolutely necessary. For development containers, they should be pre-populated with the important dependencies. * do not enable libfaketime if ASAN is selected unfortunately, libfaketime does not work in that case see also https://github.com/rsyslog/rsyslog/issues/174
18 lines
743 B
Bash
Executable File
18 lines
743 B
Bash
Executable File
#!/bin/bash
|
|
# This test checks if an empty includeConfig directory causes problems. It
|
|
# should not, as this is a valid situation that by default exists on many
|
|
# distros.
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh generate-conf
|
|
. $srcdir/diag.sh add-conf "\$IncludeConfig ${srcdir}/testsuites/incltest.d/*.conf-not-there
|
|
"
|
|
. $srcdir/diag.sh add-conf '$template outfmt,"%msg:F,58:2%\n"
|
|
:msg, contains, "msgnum:" ./rsyslog.out.log;outfmt'
|
|
. $srcdir/diag.sh startup
|
|
# 100 messages are enough - the question is if the include is read ;)
|
|
. $srcdir/diag.sh injectmsg 0 100
|
|
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
. $srcdir/diag.sh wait-shutdown
|
|
. $srcdir/diag.sh seq-check 0 99
|
|
. $srcdir/diag.sh exit
|