5 Commits

Author SHA1 Message Date
5f1355725d testbench: Added new tests for imfile and logrotate
Testing copytruncate and nocopytruncate options with logrotate.
copytruncate option need imfile "reopenOnTruncate" to be enabled!

closes https://github.com/rsyslog/rsyslog/issues/3053
2019-01-10 16:43:45 +01:00
Rainer Gerhards
30f571a4de
testbench nitfixes: modernize arithmetic expressions
detected by shellcheck tool
2019-01-07 10:03:16 +01:00
Rainer Gerhards
19334aa910
testbench: modernize "wait-file-lines" functionality
also some small other enhancements
2018-11-05 14:12:02 +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
Rainer Gerhards
f85ef7aabc
bugfix imfile: file change was not reliably detected
A change in the inode was not detected under all circumstances,
most importantly not in some logrotate cases.

Includes new tests made by Andre Lorbach. They now use the
logrotate tool natively to reproduce the issue.
2018-09-27 10:00:57 +02:00