summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* introduced the idea of detached propertiesRainer Gerhards2009-06-291-2/+3
| | | | | | | | | | | | | some things inside the message can be used over a large number of messages and need to to be allocated and re-written every time. I now begin to implement this as a "prop_t" object, first use for the inputName. Some input modules are already converted, some others to go. Will do a little performance check on the new method before I go further. Also, this commit has some cleanup and a few bug fixes that prevented compiliation in debug mode (I overlooked this as I did not compile for debug, what I normally do, and the automatted test also does not do that)
* updated testbench to new init() behaviorRainer Gerhards2009-06-291-4/+14
| | | | | the deferred activation of input modules broke part of the testbench - but this was a testbench issue, not one of the patch
* added some basic multithreading tests to testbenchRainer Gerhards2009-06-265-0/+80
|
* optimized TAG handlingRainer Gerhards2009-06-231-1/+1
|
* some cleanupRainer Gerhards2009-06-191-0/+8
|
* fully optimized datetime module and enhanced test suiteRainer Gerhards2009-06-1929-32/+206
| | | | tests for the various timestamp formats have been added
* fixed abort condition with oversize tagsRainer Gerhards2009-06-182-0/+4
| | | | this was a regression I introduced this afternoon
* cleaned up/optimized raw message handling in msg objectRainer Gerhards2009-06-182-4/+4
|
* going forward in moving string-handling functions to new interface...Rainer Gerhards2009-06-171-1/+3
|
* fixed small bug in testbenchRainer Gerhards2009-06-122-0/+2
|
* re-enabled queue disk fsync testRainer Gerhards2009-06-101-5/+3
| | | | | | ... actually, it was not broken, but just very slow. I have now reduced the number of test messages so that make check will not be held for an extended period of time.
* fixed small nit in build systemRainer Gerhards2009-06-101-2/+0
|
* restructered code in perparation for multiple rule set supportRainer Gerhards2009-06-104-3/+12
| | | | | | | ... this was long overdue, and I finlly tackeld it. It turned out to be more complex than I initially thought. The next step now probably is to actually implement multiple rule sets and the beauty that comes with them.
* added capability to fsync() queue disk files for enhanced reliabilityRainer Gerhards2009-06-093-0/+35
| | | | | | | also adds speed, because you do no longer need to run the whole file system in sync mode. New testbench and new config directives: - $MainMsgQueueSyncQueueFiles - $ActionQueueSyncQueueFiles
* made dynafiles working againRainer Gerhards2009-06-051-1/+2
| | | | | | | 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).
* backported some of the v5 testbenchRainer Gerhards2009-06-049-40/+119
| | | | | | | | 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.
* added config switch --enable-testbench=no to turn off testbenchRainer Gerhards2009-06-031-0/+3
|
* Merge branch 'beta' into masterRainer Gerhards2009-05-284-1/+51
|\ | | | | | | | | Conflicts: tests/Makefile.am
| * Merge branch 'v3-stable' into betaRainer Gerhards2009-05-284-1/+51
| |\ | | | | | | | | | | | | Conflicts: tests/Makefile.am
| | * small enhancement: config validation run now exits with code 1 if an error ↵Rainer Gerhards2009-05-286-3/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is detected. This change is considered important but small enough to apply it directly to the stable version. [But it is a border case, the change requires more code than I had hoped. Thus I have NOT tried to actually catch all cases, this is left for the current devel releases, if necessary]
* | | fixed make distcheckRainer Gerhards2009-05-286-6/+8
| | |
* | | fixed typoRainer Gerhards2009-05-271-3/+1
| | |
* | | greatly enhanced testbenchRainer Gerhards2009-05-2715-199/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | added test suite for persistent queue shutdownRainer Gerhards2009-05-254-1/+92
| | |
* | | solved some issues with testbench & a race conditionRainer Gerhards2009-05-252-3/+6
| | |
* | | improved testbench / solved imdiag race conditionRainer Gerhards2009-05-254-2/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | added new testing module imdiagRainer Gerhards2009-05-2510-6/+17
| | | | | | | | | | | | | | | which enables to talk to the rsyslog core at runtime. The current implementation is only a beginning, but can be expanded over time
* | | fixing some nits with the build systemRainer Gerhards2009-05-221-1/+1
| | |
* | | added capability to run multiple tcp listeners (on different ports)Rainer Gerhards2009-05-2216-37/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Do not fail "make check" if omstdout is not enabledMichael Biebl2009-05-191-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Fix compiler warningsMichael Biebl2009-05-191-0/+1
| | | | | | | | | | | | | | | | | | include <string.h> for memcpy and strlen. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | improved testbench - added tests for queue disk-only modeRainer Gerhards2009-04-173-1/+50
| | |
* | | bugfix: missing header (platform compatibility issue)v4.3.0Rainer Gerhards2009-04-171-0/+1
| | |
* | | cosmetic fix (status message)Rainer Gerhards2009-04-091-2/+0
| | |
* | | removed MSG_NOSIGNAL & provided work-aroundRainer Gerhards2009-04-091-1/+10
| | | | | | | | | | | | | | | as this send() option is not supported on Solaris. We now simply ignore SIGPIPE
* | | implemented $MaxOpenFiles directive and changed testbenchRainer Gerhards2009-04-143-16/+60
| | | | | | | | | | | | ... to utilize it. This work is not yet fully verified to be correct.
* | | fixed testbench compilation problem on SolarisRainer Gerhards2009-04-092-1/+4
| | | | | | | | | | | | | | | Solaris network libraries needed to be specified in linker options
* | | working some more on "make distcheck"Rainer Gerhards2009-04-092-1/+4
| | | | | | | | | | | | ... this time I think successfully (at least on Fedora...)
* | | fixing "make distcheck"Rainer Gerhards2009-04-091-0/+11
| | |
* | | removed accidently added binaryRainer Gerhards2009-04-091-0/+0
| | |
* | | minor cleanupRainer Gerhards2009-04-082-1/+1
| | |
* | | added new test case for many tcp connectionsRainer Gerhards2009-04-085-2/+339
| | | | | | | | | | | | | | | | | | | | | 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.
* | | fixed some portability issuesRainer Gerhards2009-03-164-4/+20
| | | | | | | | | | | | | | | first noticed on FreeBSD Also, some cosmetic improvements.
* | | improved testbench, added tests for tcp-based receptionRainer Gerhards2009-04-086-24/+129
| | |
* | | testcase added (on user request)Rainer Gerhards2009-04-061-0/+3
| | |
* | | improved internal handling of RainerScript functionsRainer Gerhards2009-04-061-2/+2
|/ / | | | | | | | | | | | | - 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"
* | made sure udptester terminates only after rsyslgod it spawnedRainer Gerhards2009-04-061-0/+2
| | | | | | | | | | | | | | 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.
* | improved parser test suiteRainer Gerhards2009-04-036-0/+18
| | | | | | | | new tests added, now much better
* | improved test suite and added test for new output module interfaceRainer Gerhards2009-04-0313-25/+69
| | | | | | | | | | | | | | | | 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.
* | fixed some problems with "make check"Demo2009-03-313-4/+2
| | | | | | | | | | interestingly, they manifested on Debian, only, but potentially existed on other platforms, too.