summaryrefslogtreecommitdiffstats
path: root/tests/parsertest.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-21 18:33:14 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-21 18:33:14 +0100
commit95cde529cc2d2aab2047f5ab2c52d9cd8ba23f31 (patch)
tree7549edc00e5635cdb98570efe1b78e33e888fd44 /tests/parsertest.sh
parent091e4dc1b92db7e516d30df659a46b969274d6bf (diff)
downloadrsyslog-95cde529cc2d2aab2047f5ab2c52d9cd8ba23f31.tar.gz
rsyslog-95cde529cc2d2aab2047f5ab2c52d9cd8ba23f31.tar.xz
rsyslog-95cde529cc2d2aab2047f5ab2c52d9cd8ba23f31.zip
added some more tests for severely ill-formed snare messages
also improved nettester testbench tool a bit
Diffstat (limited to 'tests/parsertest.sh')
-rwxr-xr-xtests/parsertest.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/parsertest.sh b/tests/parsertest.sh
index 10a7f450..fc68ab84 100755
--- a/tests/parsertest.sh
+++ b/tests/parsertest.sh
@@ -10,6 +10,10 @@ source $srcdir/diag.sh nettester parse-3164-buggyday udp
source $srcdir/diag.sh nettester parse-3164-buggyday tcp
source $srcdir/diag.sh nettester parse-nodate udp
source $srcdir/diag.sh nettester parse-nodate tcp
+# the following samples can only be run over UDP as they are so
+# malformed they break traditional syslog/tcp framing...
+source $srcdir/diag.sh nettester snare_ccoff_udp udp
+source $srcdir/diag.sh nettester snare_ccoff_udp2 udp
echo \[parsertest.sh]: redoing tests in IPv4-only mode
source $srcdir/diag.sh nettester parse1 udp -4
@@ -22,4 +26,8 @@ source $srcdir/diag.sh nettester parse-3164-buggyday udp -4
source $srcdir/diag.sh nettester parse-3164-buggyday tcp -4
source $srcdir/diag.sh nettester parse-nodate udp -4
source $srcdir/diag.sh nettester parse-nodate tcp -4
+# UDP-only tests
+source $srcdir/diag.sh nettester snare_ccoff_udp udp -4
+source $srcdir/diag.sh nettester snare_ccoff_udp2 udp -4
+
source $srcdir/diag.sh exit