summaryrefslogtreecommitdiffstats
path: root/tests/discard-rptdmsg-vg.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-03-08 18:58:28 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-08 18:58:28 +0100
commit1a0875865300472150c411afa8335e47a1722bae (patch)
tree150dda33ce8649fa75897558010995fd85bf6cb2 /tests/discard-rptdmsg-vg.sh
parentd50f1e711ffd479d1ddbc89342e9b28b8b9abba9 (diff)
downloadrsyslog-1a0875865300472150c411afa8335e47a1722bae.tar.gz
rsyslog-1a0875865300472150c411afa8335e47a1722bae.tar.xz
rsyslog-1a0875865300472150c411afa8335e47a1722bae.zip
further improved testbench
some cosmetic issues, plus a new valgrind-based test
Diffstat (limited to 'tests/discard-rptdmsg-vg.sh')
-rwxr-xr-xtests/discard-rptdmsg-vg.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/discard-rptdmsg-vg.sh b/tests/discard-rptdmsg-vg.sh
new file mode 100755
index 00000000..f56ac597
--- /dev/null
+++ b/tests/discard-rptdmsg-vg.sh
@@ -0,0 +1,13 @@
+# This file is part of the rsyslog project, released under GPLv3
+echo ===============================================================================
+echo \[discard-rptdmsg.sh\]: testing discard-rptdmsg functionality
+source $srcdir/diag.sh init
+source $srcdir/diag.sh startup-vg discard-rptdmsg.conf
+source $srcdir/diag.sh tcpflood -m10 -i1
+# we need to give rsyslog a little time to settle the receiver
+./msleep 1500
+source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
+source $srcdir/diag.sh wait-shutdown-vg
+source $srcdir/diag.sh check-exit-vg
+source $srcdir/diag.sh seq-check 2 10
+source $srcdir/diag.sh exit