2543 Commits

Author SHA1 Message Date
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
Rainer Gerhards
8f8e2cd66b improved testbench, added tests for tcp-based reception 2009-04-08 12:19:54 +02:00
Rainer Gerhards
7db9f96fe9 testcase added (on user request) 2009-04-06 18:07:52 +02:00
Rainer Gerhards
8e3c5a9ca3 improved internal handling of RainerScript functions
- building the necessary plumbing to support more functions with
  decent runtime performance. This is also necessary towards the
  long-term goal of loadable library modules.
- added new RainerScript function "tolower"
2009-04-06 17:55:04 +02:00
Rainer Gerhards
924ceb305d Merge branch 'beta'
Conflicts:
	ChangeLog
	Makefile.am
	configure.ac
	doc/manual.html
2009-02-24 14:52:49 +01:00
Michael Biebl
1448e2486e make all cflags and libs variables uppercase
pkg-config uses uppercase for its _CFLAGS and _LIBS variable names.
So we follow suit and convert all _cflags and _libs variables to
uppercase for more consistency.
2009-02-24 13:09:44 +01:00
Rainer Gerhards
55d05e060e fix the make distcheck workaround ;)
I left some file in the file system, cause make distcheck to fail...
2008-07-30 16:46:10 +02:00
Rainer Gerhards
f4f6de247c preparing for 3.21.1
I disabled some make check checks for make distcheck. I need
to add some addtl support for make distcheck environment to
rsyslogd and I don't like to hold 3.21.1 just for that any
longer.
2008-07-30 15:58:35 +02:00
Rainer Gerhards
4b613a4294 fixed some minor nits in preperation for 3.21.1 2008-07-29 15:28:25 +02:00
Rainer Gerhards
c3c385c63b added testbed for config errors and fixed a bug
- bugfix: no error was reported if the target of a $IncludeConfig
  could not be accessed.
- added testbed for common config errors
2008-07-29 14:55:44 +02:00
Rainer Gerhards
8ed5da5dc4 preparing for 3.21.0 release 2008-07-18 16:33:41 +02:00
Rainer Gerhards
c36eaccd1d forgotten to reflect name change in .gitignore 2008-07-07 12:05:54 +02:00
Rainer Gerhards
493d6a799b changed RainerScript testbench to a full-blow test suite
it now works based on test case files, which enable to quickly
generate test cases.
2008-07-07 12:04:33 +02:00
Rainer Gerhards
37fd063042 added capability to create a printable string of a vmprg
This is needed so that we can create simple testbenches which
will check the result of a test (a generated program) via a
simple strcmp.
2008-07-07 09:41:31 +02:00
Rainer Gerhards
78543b7e31 "worked around" structure misalignment problem in test suite
I disabled a check below, because I can not find the cause of the
misalignment. The problem is that pToken structure has a different
member alignment inside the runtime library then inside of this
program. I checked compiler options, but could not find the cause.
Should anyone have any insight, I'd really appreciate if you drop me
a line.
2008-07-01 14:05:05 +02:00
Rainer Gerhards
b5faa3c4ce misc small changes: corrected version, removed some debug output,
..., restructured makefile, added some troubleshooting to test case
(program rscript-parse.c has problem due to different structure alignment,
where I do not yet know the reason)
2008-06-27 09:13:11 +02:00
Rainer Gerhards
33e2d80632 added .gitignore for tests 2008-06-16 10:42:44 +02:00
Rainer Gerhards
4f32b62990 begun building a testbench 2008-06-13 17:21:03 +02:00
Rainer Gerhards
d44ae01df3 fixing issue with test suite which was not yet adapted to v4 2008-11-26 16:55:05 +01:00