18 Commits

Author SHA1 Message Date
Rainer Gerhards
939a9041cd
testbench: make some dynstats test able to run in parallel
also modernize tests
2018-12-19 13:48:03 +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
ca1af1b459
cleanup: shellcheck-found minor issues 2018-10-19 12:55:59 +02:00
Rainer Gerhards
74541cf56c
testbench: modernize, next part 2018-09-07 14:58:26 +02:00
Rainer Gerhards
a45f3af81d squash: wait until full startup so that imdiag.port exists 2018-09-05 09:21:42 +02:00
Rainer Gerhards
27cc298a3d squash: content-check 2018-09-03 10:05:18 +02:00
Rainer Gerhards
d051a9bdb6 squash: more changes 2018-09-02 17:46:16 +02:00
Rainer Gerhards
b5a385a13d testbench: modernize plumbing
another set of changes for testbench modernization
2018-09-02 17:29:39 +02:00
Rainer Gerhards
5a7d6009c7
testbench: some minor improvements
- DEAD_PORT now uses unassigned IANA port unlike to be used on the system
  (dynamic port querying is racy and we had at least once an issue, so we
  can remove ambiguity here easily)
- replace some diag.sh commands by bash functions
2018-08-19 08:35:19 +02:00
Rainer Gerhards
8ea166d89d
testbench: fix some hardcoded names (#2895)
* testbench: fix some hardcoded names

This is prework to make parallel execution of tests possible.
2018-08-01 12:52:17 +02:00
Florian Riedl
c60449d09f Test refactor part 3.2 2018-07-24 16:02:15 +02:00
Rainer Gerhards
2ba3c8ddde
testbench: modernize testbench plumbing
changes some of the test commands to use bash functions
includes some small bug fixes to tests where bugs were
previously not seen due to different plumbing.
2018-07-23 17:26:34 +02:00
Rainer Gerhards
e27b59634c enable better testing via "make distcheck"
Also a couple of changes to testbench worth mentioning:
* use cp -f to ensure files can be overwirtten in VBUILD
* fix issue of missing include test file in EXTRA_DIST
* new supressions
* testbench: try to use local system dependency cache
  avoid going to Internet repos if not absolutely necessary. For
  development containers, they should be pre-populated with the
  important dependencies.
* do not enable libfaketime if ASAN is selected
  unfortunately, libfaketime does not work in that case

see also https://github.com/rsyslog/rsyslog/issues/174
2018-07-11 15:01:55 +02:00
PascalWithopf
bd8a1b8136 freeBSD: disable tests that are not working
FreeBSD is not able to run all tests, therefore all tests that can't be run will be disabled.
2017-10-27 12:18:59 +02:00
Janmejay Singh
bf43179381 moved to async(dispatched on a different thread) lookup-table reload (stub param is still mandatory, making it optional requires more work) 2015-12-21 23:42:11 +05:30
Janmejay Singh
e9a360312d fixed valgrind tests to check valgrind exit-code 2015-11-26 20:33:27 +05:30
Janmejay Singh
a7652f8ef7 - fixed a bug in lookup-table array impl (it assumed lowest-key to be 0, according to proposal, it should allow lookup-table contiguous-range to start anywhere, not necessarily 0)
- added more tests to ensure value-dedup and nomatch being set/not-set doesn't cause any problems
2015-11-03 19:00:52 +05:30
Janmejay Singh
991b2af65d part of lookup-table proposal implemented (part 1):
- design-change to make room for array and sparse-array tables in addition to string(which original design assumed)
- memory-leak fix (in unused lookup-table senario), same problem could lead to illegal free(during shutdown) in multiple call-sites for lookup-fn
- allow rainerscript functions to declaratively opt-out of funcdata destruct
- tests for unused lookup-table senario and valgrind test for lookup-table
- interned-value-strings (so each value string is represented in memory only once, as per the proposal)
- memory-leak fix in failure senarios (allocation failure etc in table-loadup)
2015-10-30 16:31:30 +05:30