mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 22:00:42 +01:00
Most of the tests will not work in other default shells like on Freebsd or Solaris. So we make /bin/bash default now.
22 lines
1.4 KiB
Bash
Executable File
22 lines
1.4 KiB
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
|
|
echo ===============================================================================
|
|
echo \[mmpstrucdata-invalid.sh\]: testing mmpstrucdata with invalid SD
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh startup-vg mmpstrucdata-invalid.conf
|
|
. $srcdir/diag.sh wait-startup
|
|
# we use different message counts as this hopefully aids us
|
|
# in finding which sample is leaking. For this, check the number
|
|
# of blocks lost and see what set they match.
|
|
. $srcdir/diag.sh tcpflood -m100 -M "\"<161>1 2003-03-01T01:00:00.000Z mymachine.example.com tcpflood - tag [tcpflood@32473 MSGNUM] invalid structured data!\""
|
|
. $srcdir/diag.sh tcpflood -m200 -M "\"<161>1 2003-03-01T01:00:00.000Z mymachine.example.com tcpflood - tag [tcpflood@32473 MSGNUM ] invalid structured data!\""
|
|
. $srcdir/diag.sh tcpflood -m300 -M "\"<161>1 2003-03-01T01:00:00.000Z mymachine.example.com tcpflood - tag [tcpflood@32473 MSGNUM= ] invalid structured data!\""
|
|
. $srcdir/diag.sh tcpflood -m400 -M "\"<161>1 2003-03-01T01:00:00.000Z mymachine.example.com tcpflood - tag [tcpflood@32473 = ] invalid structured data!\""
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
. $srcdir/diag.sh wait-shutdown-vg
|
|
. $srcdir/diag.sh check-exit-vg
|
|
. $srcdir/diag.sh exit
|