From 7077420d58a56a29995e7930bd7943bb7f9b5bdf Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 11 Nov 2009 11:44:24 +0100 Subject: added support for dual-rsyslogd-instance test cases to testbench ... plus a simple initial test of the tcp forwarding capability. --- tests/testsuites/tcpsndrcv_rcvr.conf | 11 +++++++++++ tests/testsuites/tcpsndrcv_sender.conf | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/testsuites/tcpsndrcv_rcvr.conf create mode 100644 tests/testsuites/tcpsndrcv_sender.conf (limited to 'tests/testsuites') diff --git a/tests/testsuites/tcpsndrcv_rcvr.conf b/tests/testsuites/tcpsndrcv_rcvr.conf new file mode 100644 index 00000000..6bfb97b3 --- /dev/null +++ b/tests/testsuites/tcpsndrcv_rcvr.conf @@ -0,0 +1,11 @@ +# see tcpsndrcv.h for details +# rgerhards, 2009-11-11 +$IncludeConfig diag-common.conf + +$ModLoad ../plugins/imtcp/.libs/imtcp +# then SENDER sends to this port (not tcpflood!) +$InputTCPServerRun 13515 + +$template outfmt,"%msg:F,58:2%\n" +$template dynfile,"rsyslog.out.log" # trick to use relative path names! +:msg, contains, "msgnum:" ?dynfile;outfmt diff --git a/tests/testsuites/tcpsndrcv_sender.conf b/tests/testsuites/tcpsndrcv_sender.conf new file mode 100644 index 00000000..c874c068 --- /dev/null +++ b/tests/testsuites/tcpsndrcv_sender.conf @@ -0,0 +1,8 @@ +# see tcpsndrcv.sh for details +# rgerhards, 2009-11-11 +$IncludeConfig diag-common2.conf + +$ModLoad ../plugins/imtcp/.libs/imtcp +$InputTCPServerRun 13514 + +*.* @@127.0.0.1:13515 -- cgit