25 Commits

Author SHA1 Message Date
df3d4a3922 test-suite: Added !#/bin/bash into all test scripts.
Most of the tests will not work in other default shells like
on Freebsd or Solaris. So we make /bin/bash default now.
2015-07-30 15:38:17 +00:00
be940cf970 testbench: made work on FreeBSD
bash "source" extension is not supported in FreeBSD default shell"
2015-07-15 09:33:31 +00:00
Rainer Gerhards
f8c7fd6ec0 testbench: fix regression with invalid call tcp tcpflood 2014-11-10 18:46:04 +01:00
Rainer Gerhards
49cc32e1de testbench: another shot at dynamically checking HOSTNAME property 2014-07-15 09:22:41 +02:00
Rainer Gerhards
8f0a8076cc Merge branch 'beta' into master
Conflicts:
	ChangeLog
	configure.ac
	plugins/imudp/imudp.c
	runtime/stream.h
	tests/Makefile.am
	tests/diag.sh
	tools/omfile.c
2010-04-09 13:00:56 +02:00
Rainer Gerhards
8b9cef552d Merge branch 'v4-stable' into v5-stable
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	runtime/debug.c
	runtime/stream.c
	tests/Makefile.am
	tests/diskqueue.sh
	tests/nettester.c
	tools/omfile.c
2010-03-29 11:07:15 +02:00
Rainer Gerhards
95cde529cc added some more tests for severely ill-formed snare messages
also improved nettester testbench tool a bit
2010-03-21 18:33:14 +01:00
Rainer Gerhards
091e4dc1b9 added parser test cases to testbench 2010-03-19 15:14:09 +01:00
Rainer Gerhards
de7726cbf0 Merge branch 'v4-stable' into v5-stable
Conflicts:
	ChangeLog
	runtime/datetime.h
2010-03-09 09:15:14 +01:00
Rainer Gerhards
d97ad63e21 added new property replacer option "date-rfc3164-buggyday"
primarily to ease migration from syslog-ng. See property replacer doc for
details. [backport from 5.5.3 because urgently needed by some]
2010-03-08 17:56:11 +01:00
Rainer Gerhards
b3c8528b50 added new property replacer option "date-rfc3164-buggyday"
primarily to ease migration from syslog-ng. See property replacer doc
for details.
2010-03-05 07:56:57 +01:00
Rainer Gerhards
200e2b6630 Merge branch 'beta' into master
Conflicts:
	ChangeLog
	tests/parsertest.sh
2010-02-10 17:41:28 +01:00
Rainer Gerhards
c8ebe62337 Merge branch 'v4-beta' into beta
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	plugins/imuxsock/imuxsock.c
	template.c
	tests/Makefile.am
	tests/parsertest.sh
2010-02-10 16:35:12 +01:00
Rainer Gerhards
b5e44445f9 added one more test to testbench 2010-02-08 18:35:27 +01:00
Rainer Gerhards
eff5630ec0 enhanced test suite
now CSV and regex extraction are being tested (would have caught the
bug fixed with the last commit).
2010-02-08 17:28:58 +01:00
Rainer Gerhards
85045270f6 added $Escape8BitCharactersOnReceive directive
Thanks to David Lang for suggesting this functionality.
2010-01-27 15:13:54 +01:00
Rainer Gerhards
07264a78e0 added some tests for IPv4-Only configuration
We are "abusing" the parser tests to test the TCP/UDP reception
handling. Thus we do not run the other tests through to an IPv4
only config. It acutally is not that parser that matters but rather
the hope to find some init issues when running with only a single
listening socket (in IPv6, we usually both have an IPv4 AND an IPv6
listening socket, what - as practice has shown - may hide listener
setup errors).
2009-10-20 09:05:48 +02:00
Rainer Gerhards
0acdae34bd streamlined new addition to testbench 2009-10-19 15:36:16 +02:00
Rainer Gerhards
9de685929e bugfix: message could be truncated after TAG, often when forwarding
This was a result of an internal processing error if maximum field
sizes had been specified in the property replacer.
Also did some testbench improvements, including omstdout.
2009-07-09 16:32:14 +02:00
Rainer Gerhards
8628312396 cleaned up/optimized raw message handling in msg object 2009-06-18 13:22:21 +02:00
Rainer Gerhards
eb1615068c added new testing module imdiag
which enables to talk to the rsyslog core at runtime. The current
implementation is only a beginning, but can be expanded over time
2009-05-25 10:47:22 +02:00
Rainer Gerhards
aba90e8248 added capability to run multiple tcp listeners (on different ports)
Well, actually this and a lot of related things. I improved the
testbench so that the new capabilities are automatically tested and
also did some general cleanup. The current multiple tcp listener
solution will probably receive some further cleanup, too, but looks
quite OK so far. I also reviewed the way tcpsrv et all work, in
preparation of using this code for imdiag. I need to document the
findings, especially as the code is rather complicated "thanks" to
the combination of plain tcp and gssapi transport modes.
2009-05-22 17:06:52 +02:00
Rainer Gerhards
51e690f720 fixed some portability issues
first noticed on FreeBSD
Also, some cosmetic improvements.
2009-03-16 18:54:42 +01:00
Rainer Gerhards
8f8e2cd66b improved testbench, added tests for tcp-based reception 2009-04-08 12:19:54 +02:00
Rainer Gerhards
ce6b7e86cd improved test suite and added test for new output module interface
The testbench has now a generic driver that can run a whole class
of test suites just by providing a config file and test cases. This
does not cover all testing needs, but a lot.
We have now added one test for the new array-passing output plugin
interface.
2009-04-03 17:54:09 +02:00