rsyslog/tests/mmpstrucdata-case.sh
Rainer Gerhards e134b545b3 mmpstrucdata: make case preservation of SD_IDs optional
commit 5cee06a60 introduced case-perservation, but did not make
it optional. This broke existing behavior and thus potentially
existing configurations. This commit introduces a new parameter
"sd_name.lowercase" which now controls this behavior.

Note that 5cee06a60 is merged to master branch together with this
commit, so no released code ever had the potential regression.

see also https://github.com/rsyslog/rsyslog/pull/2181
2018-01-07 10:18:57 +01:00

21 lines
724 B
Bash
Executable File

#!/bin/bash
# the goal here is to detect memleaks when structured data is not
# correctly parsed.
# This file is part of the rsyslog project, released under ASL 2.0
# rgerhards, 2015-04-30
. $srcdir/diag.sh init
uname
if [ `uname` = "FreeBSD" ] ; then
echo "This test currently does not work on FreeBSD."
exit 77
fi
. $srcdir/diag.sh startup mmpstrucdata-case.conf
. $srcdir/diag.sh wait-startup
. $srcdir/diag.sh tcpflood -m100 -M "\"<161>1 2003-03-01T01:00:00.000Z mymachine.example.com tcpflood - tag [tcpflood@32473 eventID=\\\"1011\\\"] valid structured data\""
. $srcdir/diag.sh shutdown-when-empty
. $srcdir/diag.sh wait-shutdown
. $srcdir/diag.sh content-check-with-count eventID 100
. $srcdir/diag.sh exit