summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* some more cleanup along the wayRainer Gerhards2009-11-031-1/+0
| | | | ... getting the module structure a bit cleaner ;)
* Merge branch 'v4-devel'Rainer Gerhards2009-11-033-0/+37
|\
| * added function getenv() to RainerScriptRainer Gerhards2009-11-034-1/+38
| |
| * Merge branch 'v4-stable' into v4-develRainer Gerhards2009-08-251-2/+2
| |\ | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.c
| | * bugfix: Java testing tools were required, even if testbench was disabledRainer Gerhards2009-08-241-2/+2
| | | | | | | | | | | | | | | | | | This resulted in build errors if no Java was present on the build system, even though none of the selected option actually required Java. (I forgot to backport a similar fix to newer releases).
| | * cleanup (removed left-over from backport)v4.3.2Rainer Gerhards2009-06-241-2/+0
| | |
* | | added omruleset output module, which provides great flexibility in action ↵Rainer Gerhards2009-11-025-0/+86
| | | | | | | | | | | | | | | | | | processing. THIS IS A VERY IMPORTANT ADDITION, see its doc for why.
* | | bugfix(testbench): testcase did not properly wait for rsyslod shutdownRainer Gerhards2009-10-301-0/+4
| | | | | | | | | | | | | | | thus some unpredictable behavior and a false negative test result could occur.
* | | added test for ruleset-specific main queueRainer Gerhards2009-10-303-21/+51
| | |
* | | fix: testbench was broken by recent ruleset queue changesRainer Gerhards2009-10-303-0/+35
| | | | | | | | | | | | | | | actually, the runtime dummy was missing some global entities, these have now been added.
* | | fixed race condition during queue shutdownRainer Gerhards2009-10-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Problems could happen if the queue worker needed to be cancelled and this cancellation happened inside queue-code (including wtp, wti). We have now solved this by disabling cancellation while in this code and only enabling it when working inside the user consumer. This exactly matches the use case for which cancellation may be needed.
* | | addressed some race issues during queue shutdownRainer Gerhards2009-10-261-2/+2
| | | | | | | | | | | | | | | | | | | | | these occured in very unusual scenarios where we had a DA-queue running in parallel and very lengthy actions. Then, in some situations, the shutdown could hang. The code needs some addition lab time, but is believed to be much better than any previous version.
* | | implemented solution for cancel at shutdown/unprocessed entriesRainer Gerhards2009-10-261-2/+2
| | | | | | | | | | | | | | | We do now enqueue those objects that are left unprocessed. This enables us to delete the full batch, what is exactly what we need to do.
* | | Begun to work on partial batch deletes...Rainer Gerhards2009-10-222-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | ... 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...
* | | enhanced test environment (including testbench)Rainer Gerhards2009-10-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | improved testbenchRainer Gerhards2009-10-2121-14/+80
| | | | | | | | | | | | | | | - added a test to check handling of damaged .qi files on startup - made sure each test identifies itself on startup
* | | bugfix (testbench): left-over from manual test removedRainer Gerhards2009-10-211-7/+0
| | |
* | | Merge branch 'newqueue'Rainer Gerhards2009-10-214-4/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/queue.c
| * | | bugfix: message processing states were not set correctly in all casesRainer Gerhards2009-10-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | however, this had no negative effect, as the message processing state was not evaluated when a batch was deleted, and that was the only case where the state could be wrong.
| * | | Merge branch 'master' into newqueueRainer Gerhards2009-10-152-0/+6
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: tools/syslogd.c
| * | | | new queue engine - initial commit (probably not 100% working!)Rainer Gerhards2009-10-144-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | simplified and thus speeded up the queue engine, also fixed some potential race conditions (in very unusual shutdown conditions) along the way. The threading model has seriously changes, so there may be some regressions. NOTE: the code passed basic tests, but there is still more work and testing to be done. This commit should be treated with care.
| * | | | added some debug settings plus improved shutdown sequenceRainer Gerhards2009-10-133-1/+8
| | | | | | | | | | | | | | | | | | | | ... non-working version!
* | | | | preparing for 5.3.2v5.3.2Rainer Gerhards2009-10-211-1/+1
| | | | |
* | | | | added some tests for IPv4-Only configurationRainer Gerhards2009-10-203-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | | | streamlined new addition to testbenchRainer Gerhards2009-10-195-4/+25
| | | | |
* | | | | added new testcase; fixed bug in testdriverRainer Gerhards2009-10-192-2/+21
| |/ / / |/| | |
* | | | added one more parser test caseRainer Gerhards2009-10-092-0/+6
|/ / /
* | | bugfix and testbench improvementsRainer Gerhards2009-10-076-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | bugfix and testbench improvementRainer Gerhards2009-10-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | bugfix: potential race condition when queue worker threads were terminatedRainer Gerhards2009-10-061-1/+1
| | |
* | | added forgotten testcaseRainer Gerhards2009-08-202-0/+5
| | |
* | | Merge branch 'beta'Rainer Gerhards2009-08-171-0/+4
|\| |
| * | legacy syslog parser changed so that it now accepts date stamps in wrong case.Rainer Gerhards2009-08-171-0/+4
| | | | | | | | | | | | Some devices seem to create them and I do not see any harm in supporting that.
* | | bugfix: discard action did not work (did not discard messages)Rainer Gerhards2009-07-301-1/+1
| | |
* | | bugfix: discard action caused segfaultRainer Gerhards2009-07-303-0/+32
| | |
* | | fixed testbench compile problem on some platformsRainer Gerhards2009-07-211-2/+1
| | |
* | | moved check_JAVA as suggested by Michael Biebl - thxRainer Gerhards2009-07-201-2/+2
| | |
* | | some more threading changesRainer Gerhards2009-07-201-0/+1
| | | | | | | | | | | | ... as well as some cleanup
* | | Merge branch 'detached' into masterRainer Gerhards2009-07-152-1/+2
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: tests/nettester.c
| * | | further reduction in code size/complexity due to design changeRainer Gerhards2009-07-081-1/+0
| | | |
| * | | simplified worker thread handlingRainer Gerhards2009-07-081-0/+1
| | | | | | | | | | | | | | | | | | | | based on now working with detached threads. This is probably the biggest patch in this series and with large bug potential.
* | | | Merge branch 'v4-devel'Rainer Gerhards2009-07-099-17/+74
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Merge branch 'v4-beta' into v4-develRainer Gerhards2009-07-099-17/+74
| |\ \ | | | | | | | | | | | | | | | | Conflicts: tests/nettester.c
| | * | bugfix: message could be truncated after TAG, often when forwardingRainer Gerhards2009-07-099-16/+74
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge branch 'v4-devel'Rainer Gerhards2009-07-084-9/+19
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/debug.h runtime/stream.c
| * | | fixed a bug introduced today that lead to an abort in queue disk modeRainer Gerhards2009-07-071-1/+1
| | | |
| * | | solved a race conditionRainer Gerhards2009-07-071-1/+1
| | | |
| * | | moved zip part to writer threadRainer Gerhards2009-07-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | ... this is necessary in preparation for the final solution (we need to have a "unified" writer). If it causes worse performance to have the zip writher togehter with the synchronous write, we may do an async write...
| * | | first shot at asynchronous stream writer with timeout capabilityRainer Gerhards2009-07-065-11/+21
| |/ / | | | | | | | | | | | | ... seems to work on quick testing, but needs a far more testing and improvement. Good milestone commit.
* | | re-enabled a testRainer Gerhards2009-07-031-2/+2
| | |