Rainer Gerhards
6b541ac89b
travis: add valgrind suppression file for trusty
...
somehow trusty as used by travis does not include sufficient default
suppressions, e.g. we err out with a GNU clib releated violation.
2016-01-28 12:33:56 +01:00
Rainer Gerhards
3549041b0f
Merge branch 'dyn_stats' of https://github.com/janmejay/rsyslog into master-integrate-dynstats
...
Conflicts:
.travis.yml
grammar/rainerscript.c
plugins/imdiag/imdiag.c
2016-01-28 09:51:25 +01:00
Rainer Gerhards
ad8abfa8c6
travis: run testbench under trusty
2016-01-28 08:53:42 +01:00
Rainer Gerhards
3c9a3e3299
testbench fix: do not hang on invalid config file name
2015-12-22 17:42:10 +01:00
Janmejay Singh
79d1bdbc03
reload_lookup_table second-param(stub-value to be used in case of reload failure) made optional
2015-12-22 01:10:36 +05:30
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
2a5272fe4c
master pre-merge for travis run
2015-11-23 14:36:41 +05:30
Janmejay Singh
7a96794b12
made some changes to dyn-stats tests to make it more resillient to timing-problems (prevents bad-timing introduced occasional failures)
2015-11-17 17:48:59 +05:30
Janmejay Singh
56c7a4bfb1
test to cover dynstats counter-reset behaviour
2015-11-16 18:29:31 +05:30
Janmejay Singh
e24c175cae
- fixed vg-tests to actually check exit code
...
- fixed and excercised reset dyn-metrics-table flow (where dynamic-metric names are discarded. this excercises unusedMetricLife timer expiry.)
2015-11-13 20:59:07 +05:30
Janmejay Singh
6da7aeb975
- dynstats basic-test first-cut
...
- vg-test caught a minor issue in impstats (fixed)
- placeholder created for other dynstats tests
- a new assertion in diag.sh which allows extracting a particular column and expecting sum-up to match given value
- imdiag supports injecting litteral messages now (test can send a fully formed syslog message through imdiag, its a backward compatible change in protocol, allows for richer things to be build while being fully backward compatible)
2015-11-13 17:45:07 +05:30
Rainer Gerhards
283096628f
testbench: improve error message when content-check fails
2015-11-11 09:36:22 +01:00
Janmejay Singh
dbf6e5e5fc
- sparseArray fixed: impl was incorrect (according to proposal it was supposed to do a less-than-or-equal-to match, but the first-cut implemented an strict-equals-match).
...
- negative-tests-case: which tries a bunch of bad-table-definition inputs and tests resillience to silly errors in table-definition
2015-11-03 17:10:29 +05:30
Janmejay Singh
3a10a78ede
Fixed lookup-table reload bug, which ignored table-length of reloaded table, resulting in additional entries being invisible while looking-up (binary-search would work with old-table-length). This would be a security-issue or may cause a crash if reloaded table is actually smaller (memory access beyond table).
2015-09-30 17:29:24 +05:30
Tomas Heinrich
90972a97bd
testbench: remove unneeded variable and file
...
Both seem to have no effect.
2015-09-01 14:24:25 +02:00
Tomas Heinrich
db024a910f
testbench: don't spawn interactive shells
2015-09-01 13:55:53 +02:00
Tomas Heinrich
1e5f271628
testbench: root all calls to diag.sh in srcdir
...
Not using srcdir breaks out-of-tree builds.
2015-09-01 13:41:11 +02:00
Tomas Heinrich
cb305a6e66
testbench: remove redundant calls to error-exit
...
error-exit is already called within the commands whose success is
tested.
2015-09-01 13:28:52 +02:00
Tomas Heinrich
9d2d26e631
testbench: all calls to diag.sh need to be sourced
...
The commands are implemented in a way which assumes they have global
side effects (e.g. exit terminating the current test). Not sourcing
the script breaks this assumption.
2015-09-01 11:42:48 +02:00
df3d4a3922
test-suite: Added !#/bin/bash into all test scripts.
...
Most of the tests will not work in other default shells like
on Freebsd or Solaris. So we make /bin/bash default now.
2015-07-30 15:38:17 +00:00
be940cf970
testbench: made work on FreeBSD
...
bash "source" extension is not supported in FreeBSD default shell"
2015-07-15 09:33:31 +00:00
Rainer Gerhards
7340a8dfd1
Merge branch 'master' of https://github.com/janmejay/rsyslog into tmp
...
Conflicts:
tests/Makefile.am
2015-07-14 10:03:42 +02:00
Rainer Gerhards
d95826fae9
testbench: slow down udp sending to prevent races
2015-07-07 12:08:00 +02:00
Rainer Gerhards
868b7131ff
testbench: auto-debug needs explicitely be opted in
...
This is done by setting USE_AUTO_DEBUG envvar to "on". It turned
out that auto debug was clumpsy during regular development.
2015-07-06 12:04:17 +02:00
Janmejay Singh
4db25fb98b
rainerscript: function random(max) which returns a random value in [0, max)
2015-06-23 15:38:59 +05:30
Rainer Gerhards
459fdc98a9
Merge branch 'fix-make-distcheck' into master-candidate
...
Conflicts:
ChangeLog
2015-05-22 14:15:55 +02:00
Rainer Gerhards
5a2b40e1ba
testbench: proper cleanup
2015-05-22 13:48:32 +02:00
Rainer Gerhards
5a4be9dbcd
testbench: add support for alternate sort programs
...
This is required for Solaris, which needs "gsort" vs "sort"
closes https://github.com/rsyslog/rsyslog/issues/349
2015-05-21 14:17:13 +02:00
Rainer Gerhards
12182ac630
imfile: fix cosmetic memory leak
...
This "leak" happens only during termination, so it does not
affect real use cases. However, it makes valgrind tests err out.
2015-05-19 09:49:34 +02:00
Rainer Gerhards
e1c9a80e69
Merge branch 'master' of https://github.com/janmejay/rsyslog into master-candidate
2015-04-30 11:31:54 +02:00
Rainer Gerhards
3f6eed40c8
testbench: automatically obtain test name for retesting
2015-04-30 09:08:02 +02:00
Janmejay Singh
c1419bc94f
cleaned-up what looked like a typo in gdb hands-free auto-diagnose-failing-test scripting
2015-04-14 08:56:21 +05:30
Janmejay Singh
c9d7d85d01
Test and fix for "No initialization of action/call statements in body of foreach statement"
...
(+ added some files which were missed in the commit before, test related to asserting behavior when non-array object is iterated upon)
2015-04-14 08:54:54 +05:30
Rainer Gerhards
c5829f67f3
testbench: automatically call debug helpers on test failure
2015-01-20 15:15:21 +01:00
Rainer Gerhards
8905457e51
testbench: emit error message on failed check
2014-12-17 11:40:47 +01:00
Janmejay Singh
d9a354465c
exposed a module-load-time config to enable/disable regex support + added tests for the same
2014-12-17 11:39:31 +01:00
Rainer Gerhards
051a8d55a2
testbench: turn off accidently turned-on debug support
2014-12-07 11:39:28 +01:00
Rainer Gerhards
0fdba55c81
bugfix: global(localHostName="xxx") wasn't always honored
...
probably a regression of the last startup changes. Also added a
test for this to the testbench.
closes https://github.com/rsyslog/rsyslog/issues/172
2014-12-04 15:27:58 +01:00
Rainer Gerhards
e5cac4f9c5
testbench: replace legacy option
2014-11-28 19:14:13 +01:00
Rainer Gerhards
4295c3fec0
testbench: give slow machines a bit more time prior to shutdown
2014-11-13 10:57:36 +01:00
Rainer Gerhards
1500951b7b
testbench: permit libdbi test under valgrind without leak check
...
While this is sub-optimal, the only other alternative is to entirely
disable this test (until we find a better solution, if such exists).
2014-11-11 14:55:49 +01:00
Rainer Gerhards
f8c7fd6ec0
testbench: fix regression with invalid call tcp tcpflood
2014-11-10 18:46:04 +01:00
Rainer Gerhards
7be9a2ecfd
bugfix: testbench did not abort on certain startup errors
2014-11-07 09:55:25 +01:00
Rainer Gerhards
0aee86711a
testbench: diag.sh tcpflood command did not handle quoted params properly
2014-11-06 16:23:23 +01:00
Janmejay Singh
f144fd5e62
added a test for mmnormalize variable support
2014-10-31 11:43:37 +01:00
Rainer Gerhards
d825d37877
testbench: some plumbing for new es tests
2014-09-25 12:18:08 +02:00
Rainer Gerhards
e3ff33cbeb
testbench: get first elasticsearch test going
2014-09-02 17:58:27 +02:00
Rainer Gerhards
f98a7579e5
testbench: some initial plumbing for Elasticsearch tests
2014-09-01 15:35:32 +02:00
Rainer Gerhards
4ed5c5ee27
Merge branch 'v7-stable' into v8-stable
2014-07-15 10:33:53 +02:00
Rainer Gerhards
f4134a877a
testbench regression: some other tests failed due to new HOSTNAME logic
2014-07-15 10:33:24 +02:00