5 Commits

Author SHA1 Message Date
Rainer Gerhards
3ba5a77455
testbench: make more robust against slow CI env; modernize tests 2018-12-20 15:40:40 +01:00
Rainer Gerhards
69ef6e329b fix bad bash coding style and disable shellcheck false positives
Also now permit interactivly running tests without explicitly setting
$srcdir. This now works if we are inside ./tests and fails, as before,
when we are in a different directory.

Detected by shellcheck via CodeFactor.io
2018-10-23 13:27:37 +02:00
44306daf7d testbench: moved testbench init to top
Added full filecheck back to imfile-wildcard check but presorted
2018-09-24 15:11:02 +02:00
2abaf732f5 testbench: Fixed timing issues in some imfile wildcard/regex tests
Added touch command in all imfile wildcard tests which should make sure
directories exist before files are created in it.

Changed content checking in some tests by using "content_check_with_count"
instead of sleeptimes.
2018-09-24 15:11:02 +02:00
Rich Megginson
c902a0938f imfile: support for endmsg.regex
This adds support for endmsg.regex.  It is similar to
startmsg.regex except that it matches the line that denotes
the end of the message, rather than the start of the next message.
This is primarily for container log file use cases such as this:

    date stdout P start of message
    date stdout P  middle of message
    date stdout F  end of message

The `F` means this is the line which contains the final part of
the message.  The fully assembled message should be
`start of message middle of message end of message`.
`startmsg.regex="^[^ ]+ stdout F "` will match.
2018-09-11 20:01:47 -06:00