188 Commits

Author SHA1 Message Date
Rainer Gerhards
87a957b0f5 Merge branch 'v4-stable-solaris' into beta
Conflicts:
	runtime/Makefile.am
	runtime/rsyslog.c
	tests/nettester.c
	tools/syslogd.c
2010-04-09 12:27:59 +02:00
Rainer Gerhards
2cd132eebb enhanced nettester tool so that it re-uses it's callers environment
this enables us to work with the "usual" environment tweaks (for
debugging and other purposes), without the need for any special
handling in nettester itself
2010-04-07 12:42:41 +02:00
Rainer Gerhards
1cba216220 improvded testbench: added test with truly random data received via syslog to test robustness 2010-04-01 15:11:16 +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
0e0eaae433 Merge branch 'v4-stable' into v4-stable-solaris
Conflicts:
	ChangeLog
2010-03-25 15:48:05 +01:00
Rainer Gerhards
d102aab886 new feature: $OMFileAsyncWriting directive added
it permits to specifiy if asynchronous writing should be done or not
2010-03-25 15:23:39 +01:00
Rainer Gerhards
ec883905c1 testbench improved to run on Solaris 2010-03-25 14:58:23 +01:00
Rainer Gerhards
5deea302b0 replaced sleep in test suite by a small self-crafted tool
subsecond sleep did not work on all platforms
2010-03-25 09:35:49 +01:00
Rainer Gerhards
e0afe5c825 added some diagnostics info to startup 2010-03-23 08:03:21 +01:00
Rainer Gerhards
2f1d5a1203 valgrand accidently left enabled in diag.sh with the last commit 2010-03-22 15:59:33 +01:00
Rainer Gerhards
148910c285 bugfix(minor): BSD_SO_COMPAT query function had some global vars not properly initialized.
However, in practice the loader initializes them with zero, the
desired value, so there were no actual issue in almost all cases.
2010-03-22 15:47:07 +01:00
Rainer Gerhards
4cb3e80152 added new, complex testcase to testbench
this is an excerpt from some of the more intensen manual tests
I am doing, stripped down to be useful inside the testbench.
2010-03-16 14:23:13 +01:00
Rainer Gerhards
83c15bb0a0 added more tests to testbench and improved testing tools 2010-03-11 12:36:21 +01:00
Rainer Gerhards
6598615e5b extended testbench: tests for $CreateDirs 2009-11-30 12:35:46 +01:00
Rainer Gerhards
c6c875a65d Merge branch 'v4-devel' 2009-11-11 14:15:00 +01:00
Rainer Gerhards
ef1b6c725b Merge branch 'v4-beta' into v4-devel
Conflicts:
	tests/Makefile.am
2009-11-11 14:14:37 +01:00
Rainer Gerhards
7077420d58 added support for dual-rsyslogd-instance test cases to testbench
... plus a simple initial test of the tcp forwarding capability.
2009-11-11 11:44:24 +01:00
Rainer Gerhards
83140cb480 fixed regressions in testsuite due to imported changes from last merge
... also bumped version number
2009-11-05 15:04:24 +01:00
Rainer Gerhards
4578dc6a2d Merge branch 'v4-devel' into tmp 2009-11-05 14:34:21 +01:00
Rainer Gerhards
cd5f653ad8 Merge branch 'v4-beta' into v4-devel
Conflicts:
	tests/Makefile.am
2009-11-05 14:34:08 +01:00
Rainer Gerhards
6a99be4696 added pipe action test to testbench & testbench bugfix 2009-11-05 14:31:37 +01:00
Rainer Gerhards
e4ca8a3119 added function getenv() to RainerScript 2009-11-03 09:20:02 +01:00
Rainer Gerhards
33e216daf7 Begun to work on partial batch deletes...
... but this brings a lot of problems with it. The issue is that
we still have a sequential store and we do not know how we could
delete the one entry right in the middle of processing. I keep this
branch if we intend to move on with it - but for now I look into a
different solution...
2009-10-22 14:57:34 +02:00
Rainer Gerhards
e04e1b5002 enhanced test environment (including testbench)
support for enhancing probability of memory addressing failure by
using non-NULL default value for malloced memory (optional, only if
requested by configure option). This helps to track down some
otherwise undetected issues within the testbench and is expected
to be very useful in the future.
2009-10-22 11:33:38 +02: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
5625dbd1b6 bugfix and testbench improvements
- bugfix: solved potential (temporary) stall of messages when the queue was
  almost empty and few new data added (caused testbench to sometimes hang!)
- fixed some race condition in testbench
- added more elaborate diagnostics to parts of the testbench
- solved a potential race inside the queue engine
2009-10-07 18:40:30 +02:00
Rainer Gerhards
92ec206279 bugfix and testbench improvement
made shutdown more reliable by makeing sure that the main queue DA worker
is only cancelled if this is actually unavoidable. Also moved down the
deletion of rsyslogd's pid file to immediately before termination, so
that absence of the file is a proper indication that rsyslogd has
finished (in the past, e.g. the testbench accidently ran two intances
as the pid file was deleted too early). Also some improvments to the
testbench, namely to handle aborts more intelligently (but still not
perfect).
2009-10-07 10:53:05 +02:00
Rainer Gerhards
caeb203f51 bugfix: potential race condition when queue worker threads were terminated 2009-10-06 16:22:32 +02:00
Rainer Gerhards
ab40107149 Merge branch 'v4-beta' into v4-devel
Conflicts:
	tests/nettester.c
2009-07-09 16:35:13 +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
26227091fa fixed a bug introduced today that lead to an abort in queue disk mode 2009-07-07 17:18:51 +02:00
Rainer Gerhards
f53aa966e1 solved a race condition 2009-07-07 12:09:41 +02:00
Rainer Gerhards
e3040285db first shot at asynchronous stream writer with timeout capability
... seems to work on quick testing, but needs a far more testing
and improvement. Good milestone commit.
2009-07-06 16:38:09 +02:00
Rainer Gerhards
77c992e215 fully optimized datetime module and enhanced test suite
tests for the various timestamp formats have been added
2009-06-19 11:30:57 +02:00
Rainer Gerhards
68f0ffb29a made dynafiles working again
now only stream class is utilized. ttys, pipes and outchannel functionality
is currently disabled. But the testbench worked again. Cleanup needed, will
do this with next commit (it may break things and I like to have this
milestone here).
2009-06-05 15:41:05 +02:00
Rainer Gerhards
58e707b441 backported some of the v5 testbench
this permits us to keep a persistent test environment between
v4 and v5, most importantly using the same tools. As far as the
actual tests are concerned, some had issues. I had no time to check
if that was an issue with the test or an actual issue with the
v3/4 engine. Will do that at some later stage.
2009-06-04 09:57:45 +02:00
Rainer Gerhards
5514acb7ee fixed make distcheck 2009-05-28 15:19:03 +02:00
Rainer Gerhards
a900a7c34b greatly enhanced testbench
The imdiag module now can very effectively inject messages, which also
frees us from uncertainties of tcp reception and processing. All shell
script based tests have been modularized, what makes it far easier to
create new tests. Also, the test bench now executes more reliable and
much faster, because we can now rely on actual engine information where
we previously did just a dumb sleep.
2009-05-27 11:29:47 +02:00