2718 Commits

Author SHA1 Message Date
Rainer Gerhards
de51fab0ff Merge branch 'master' into ultra-reliable
Conflicts:
	tests/Makefile.am
2009-05-25 15:41:45 +02:00
Rainer Gerhards
ddf74cc165 added test suite for persistent queue shutdown 2009-05-25 15:39:18 +02:00
Rainer Gerhards
c7e8282b9e Merge branch 'master' into ultra-reliable 2009-05-25 14:22:50 +02:00
Rainer Gerhards
b954938027 solved some issues with testbench & a race condition 2009-05-25 14:16:31 +02:00
Rainer Gerhards
7a7ec37f99 improved testbench / solved imdiag race condition
imdiag/imtcp had a modload race condition (as imdiag is a testing aid,
this has no implications for production deployments). Also, I replaced
netcat by a custom program to talk to imdiag. This, for the first time ever,
is now a Java program. I plan to add some GUI troubleshooting tools and
thought it is a good idea to start doing things in Java that can simply
be done in that language.
2009-05-25 13:02:06 +02:00
Rainer Gerhards
fc0712f40a Merge branch 'master' into ultra-reliable
Conflicts:
	tests/Makefile.am
	tests/diskqueue.sh
2009-05-25 11:05:18 +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
7adb9877f0 fixing some nits with the build system 2009-05-22 17:40:24 +02:00
Rainer Gerhards
0fa5486a4a Merge branch 'master' into ultra-reliable
Conflicts:
	runtime/rsyslog.h
	tests/Makefile.am
	tools/syslogd.c
2009-05-22 17:23:08 +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
8088f9b01a added explicit (base) test for linkedList and FixedArray queue modes 2009-05-20 16:08:23 +02:00
Rainer Gerhards
a4dad20099 queue size calculation now based on logical/physical dequeue
... needed to split the old single counter into two. I wouldn't bet that
I made some mistakes while doing so, but at least some ad-hoc tests plus
the testbench do no longer indicate errors.
2009-05-19 11:03:09 +02:00
Rainer Gerhards
cb0fa751b7 Merge branch 'master' into tmp
Conflicts:
	tests/Makefile.am
2009-05-19 09:24:03 +02:00
Michael Biebl
460edfe27f Do not fail "make check" if omstdout is not enabled
Only run omod-if-array.sh and parsertest.sh test if omstdout plugin is
enabled.
Remove the comment and fix the help output for --enable-stdout (default
was "no", not "yes")

Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2009-05-19 07:31:22 +02:00
Michael Biebl
5ab3e8005f Fix compiler warnings
include <string.h> for memcpy and strlen.

Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2009-05-19 07:31:22 +02:00
Rainer Gerhards
93f873277b t-delete list implemented, queue store drivers updated...
... on the way to the ultra-reliable queue modes (redesign doc). This
version does not really work, but is a good commit point. Next comes
queue size calculation. DA mode does not yet work.
2009-05-18 17:28:34 +02:00
Rainer Gerhards
73b16a5d77 added test for property replacer field functionality to testbench
plus some cosmetic changes
2009-05-13 13:22:25 +02:00
Rainer Gerhards
8159d0a117 fixed abort condition in DA mode 2009-04-23 16:02:42 +02:00
Rainer Gerhards
5c0aeae8ab added $MainMsgQueueDequeueBatchSize and $ActionQueueDequeueBatchSize configuration directives 2009-04-23 12:50:07 +02:00
Rainer Gerhards
feddb7ea18 improving debugging info a bit 2009-04-23 11:19:32 +02:00
Rainer Gerhards
50174408b0 added test for DA queue mode (in main msg queue) - needs more work
The problem is that the rsyslog engine writes messages too quickly, so
that the queue never enters DA mode. We still have some look contemption.
One possible solution (hopefully) is to finally move the parser code out
of imtcp and onto the next thread. Need to address these issues first, then
come back to the test case.
2009-04-22 18:37:56 +02:00
Rainer Gerhards
1fb5cee04d improved testbench - added tests for queue disk-only mode 2009-04-17 17:53:33 +02:00
Rainer Gerhards
dc777849fc bugfix: missing header (platform compatibility issue) 2009-04-17 14:37:41 +02:00
Rainer Gerhards
ba5a59128f cosmetic fix (status message) 2009-04-09 20:48:08 +02:00
Rainer Gerhards
b9b96fbfc6 removed MSG_NOSIGNAL & provided work-around
as this send() option is not supported on Solaris. We now
simply ignore SIGPIPE
2009-04-09 19:38:17 +02:00
Rainer Gerhards
04272876d1 implemented $MaxOpenFiles directive and changed testbench
... to utilize it. This work is not yet fully verified to be correct.
2009-04-14 13:52:07 +02:00
Rainer Gerhards
d2d8cc9c1b fixed testbench compilation problem on Solaris
Solaris network libraries needed to be specified
in linker options
2009-04-09 14:45:23 +02:00
Rainer Gerhards
e07b3f380f working some more on "make distcheck"
... this time I think successfully (at least on Fedora...)
2009-04-09 18:51:21 +02:00
Rainer Gerhards
1e52abd8be fixing "make distcheck" 2009-04-09 14:14:00 +02:00
Rainer Gerhards
cf0cf2fa4b removed accidently added binary 2009-04-09 13:57:35 +02:00
Rainer Gerhards
de38f744de minor cleanup 2009-04-08 18:18:31 +02:00
Rainer Gerhards
7cc7166cb2 added new test case for many tcp connections
It is checked that many tcp connections are properly handled. While
adding this test, I noticed that there is a bug in imtcp that prevents
creation of more than 200 connections. This bug still exists, so the
test suite currently fails (what is correct). Will be addressed soon.
2009-04-08 17:48:02 +02:00
Rainer Gerhards
010060289a made sure udptester terminates only after rsyslgod it spawned
We noticed this race issue under Solaris (thanks to its different
scheduler, I guess). In some cases, the previous instance of rsyslogd
was not terminated, resulting in a failure on the next test. Now
handled correctly.
2009-04-06 10:56:27 +02:00
Rainer Gerhards
04b06af335 improved parser test suite
new tests added, now much better
2009-04-03 18:20:52 +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
Demo
e3f21521cd fixed some problems with "make check"
interestingly, they manifested on Debian, only, but potentially
existed on other platforms, too.
2009-03-31 22:10:37 +02:00
Rainer Gerhards
d27edc7587 porting parser tests to solaris 2009-03-31 20:35:15 +02:00
Rainer Gerhards
3b9fd5330a Merge branch 'master' into sol-test
Conflicts:
	tests/Makefile.am
2009-03-31 20:06:10 +02:00
Rainer Gerhards
91d6888a8a bugfix: "make distcheck" did not work 2009-03-31 22:03:02 +02:00
Rainer Gerhards
ec9e031599 changed parser test suite to be c-program based
I finally removed the tcl script because tcl costs a lot of
time if you do not invest the full learning cycle, plus I have
not everything avaible I need on Solaris. With C, I am quicker and
I also can create a superior solution. So I finally switched. Took
much less time than the initial tcl script...
2009-03-31 19:00:16 +02:00
Rainer Gerhards
3e3a9bc998 ported non-tcl based test suite to Solaris 2009-03-31 12:00:40 +02:00
Rainer Gerhards
8e29c1fc47 solved some more issues with "make [dist]check"
especially when executed as non-root
2009-03-27 17:13:28 +01:00
Rainer Gerhards
5813611215 fixed a couple of nits with "make [dist]check" 2009-03-27 16:09:45 +01:00
Rainer Gerhards
47fb9cb807 added some missing files in tests Makefile.am 2009-03-26 18:42:49 +01:00
Rainer Gerhards
0be199af6c initial parser testing suite added
integrated tcl test script into autotools make check, created
a few test cases based a real-world sample and samples from
RFC3164 and 5424.
2009-03-26 17:48:59 +01:00
Rainer Gerhards
5103c912ee parser test script created
more or less complete now, with some minor nits left for later
but is usable.
2009-03-26 15:30:46 +01:00
Rainer Gerhards
c11b7ec7d6 some text scripts added (experimental) 2009-03-23 11:27:38 +01:00
Rainer Gerhards
bbfa04fbe6 improved testing support
worked on ways to provide a better test suite:
- added -T rsyslogd command line option, enables to specify a directory
  where to chroot() into on startup. This is NOT a security feature but
  introduced to support testing. Thus, -T does not make sure chroot()
  is used in a secure way. (may be removed later)
- added omstdout module for testing purposes. Spits out all messages to
  stdout - no config option, no other features
- modified $ModLoad statement so that for modules whom's name starts with
  a dot, no path is prepended (this enables relative-pathes and should
  not break any valid current config)
2009-03-19 17:50:07 +01:00
Rainer Gerhards
935018ed62 adapted test framework to new script engine 2009-03-19 13:58:39 +01:00
Rainer Gerhards
51e690f720 fixed some portability issues
first noticed on FreeBSD
Also, some cosmetic improvements.
2009-03-16 18:54:42 +01:00