789 Commits

Author SHA1 Message Date
Louis Bouchard
1d113d6042 Complete conditional compilation statements
Previous commit was incompleted and allowed for unused
switch to be selected.

Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
2015-07-16 17:30:07 +02:00
Louis Bouchard
35058a315f testbench: Add contitional compilation for liblogging-stdlog
When built with --disable-liblogging-stdlog, syslog_caller fails
to compile. This will enable compilation when the library is not
used.
Resolves: #445

Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
2015-07-15 18:13:34 +02: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
3208522988 Merge branch 'freebsd-fixes' of https://github.com/alorbach/rsyslog-1 into master-candidate 2015-07-14 16:46:21 +02:00
2edfb087b8 FreeBSD: Fixed mulitple compile issues in plugins.
Also fixed headers for Freebsd in test tools.
2015-07-14 14:28:29 +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
1203a26cd1 Merge branch 'clang' of https://github.com/rgerhards/rsyslog into master-candidate 2015-07-10 11:45:01 +02:00
e4eebb2db7 testbench: Fixed multiple minor problems
- Testbench imptcp_spframingfix.sh is now only executed
  if imptcp is enabled
- Changed imptcp to imtcp in Testbenches sndrcv_relp.sh and
  key_dereference_on_uninitialized_variable_space.sh. Tests failed
  if imptcp was not enabled.
2015-07-07 07:00:55 -07:00
Rainer Gerhards
d95826fae9 testbench: slow down udp sending to prevent races 2015-07-07 12:08:00 +02:00
Rainer Gerhards
41edd10358 add small manual testing aid 2015-07-07 09:27:46 +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
Rainer Gerhards
a99a06f5a2 bugfix: omfwd: setting the default template always fails
closes https://github.com/rsyslog/rsyslog/issues/385
2015-06-26 10:53:27 +02:00
Rainer Gerhards
a9a8d2569a testbench: enable tcp-forwarding test
For some reason, this test was not enabled. It also had a bug that
made it fail.
2015-06-26 10:53:27 +02:00
Janmejay Singh
e939af13d4 cleaned-up some noise in test-conf and test-script 2015-06-23 16:21:18 +05:30
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
6cb712d044 testbench: better cleanup
auto_debug switch left intact on some aborts, which leads to
other problems due to running valgrind where it was not intended
to be run. This is probably not the final solution, but definitely
a helpful one.
2015-06-22 18:39:37 +02:00
Rainer Gerhards
cdbdd90592 Merge branch 'fix-suspended-action' into master-candidate 2015-05-27 15:44:14 +02:00
Rainer Gerhards
db818c0281 Merge branch 'global_variable_atomicity' of https://github.com/janmejay/rsyslog into master-candidate
Conflicts:
	tests/Makefile.am
2015-05-27 14:33:18 +02:00
Rainer Gerhards
1723136731 testbench: yet another test for execonly...suspended 2015-05-27 12:12:42 +02:00
Janmejay Singh
9441bbd67f does not return garbage value when it cannot dereference the json-key if cee/local variable for the message is not initialized 2015-05-27 15:07:42 +05:30
Rainer Gerhards
6c57f3c99e ttestbench: add test for execonly...suspended when action was not suspended
this makes sure the directive prohibits execution as intended
2015-05-27 11:04:59 +02:00
Rainer Gerhards
3e4dabd229 testbench: add check for "execonly...suspended" with action on queue
This exposes a problem with the current code base, as such the
test will currently fail. A bugfix will follow.

see also https://github.com/rsyslog/rsyslog/issues/375
2015-05-27 10:27:52 +02:00
Rainer Gerhards
61a2356640 Merge branch 'array_loop_stopping_test' of https://github.com/janmejay/rsyslog into master-candidate
Conflicts:
	tests/Makefile.am
2015-05-26 15:02:26 +02:00
Janmejay Singh
fb0639a53f corrected a typo in test name 2015-05-23 00:37:42 +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
8d9326240b Merge branch 'shortnames' of https://github.com/teifler/rsyslog into fix-make-distcheck 2015-05-22 10:49:14 +02:00
Janmejay Singh
83bb376a34 test to validate stop in foreach works as expected 2015-05-22 09:29:03 +05:30
Tim Eifler
e5229673a0 Shorting names of elasticsearch tests 2015-05-21 16:02:12 +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
a7c1283334 Merge branch 'shortnames' of https://github.com/teifler/rsyslog into fix-make-distcheck 2015-05-20 17:09:43 +02:00
Rainer Gerhards
425aecbb7f testbench: remove test from "make distcheck"
we need to check later on how to make it work
2015-05-20 16:33:13 +02:00
Rainer Gerhards
f13734d562 testbench: fix imfile tests
some tests had invalid use of the testbench exit functions (should not
be called on error to preserve error state) and also did do some
invalid variable references.
2015-05-20 16:33:13 +02:00
Rainer Gerhards
b6f4fd6afb testbench: test some imfile test fixes 2015-05-20 16:32:53 +02:00
Rainer Gerhards
3bb425dfe7 working on make distcheck work-around 2015-05-20 13:04:31 +02:00
Tim Eifler
d56f479192 Insert imfile check for some tests 2015-05-20 05:50:03 +02:00
Thomas D
c7f484eb96 Add missing "imfile-readmode2-vg.sh" test to EXTRA_DIST 2015-05-20 01:40:13 +02:00
Tim Eifler
aad0ac85fd Shortening names of elasticsearch tests 2015-05-20 00:23:49 +02:00
Thomas D
8c6af139a1 Formation normalized 2015-05-19 22:01:47 +02:00
Thomas D
af6da981f5 Fix EXTRA_DIST listing
Due to a missing "\" all files after "testsuites/abort-uncleancfg-badcfg.conf"
where missing in the release tarball.
2015-05-19 21:55:39 +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
6ad84d0baa testbench: add addtl valgrind test for imfile 2015-05-19 09:33:15 +02:00
Rainer Gerhards
851cb8431e imfile: rename parameter "endmsg.regex"
for more clarity: it's actually the start of the next message!
2015-05-19 09:33:15 +02:00
Rainer Gerhards
ddfd11f2ab testbench: add forgotten file 2015-05-19 09:33:15 +02:00
Rainer Gerhards
17f1eb70ff testbench: add memleak check for imfile 2015-05-19 09:32:35 +02:00
Rainer Gerhards
483522a117 imfile: add support for multi-line msg termination via regex 2015-05-19 09:32:35 +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
fb7b29741b Merge branch 'master-autodebug' of https://github.com/rgerhards/rsyslog into master-candidate 2015-04-30 11:25:50 +02:00
Rainer Gerhards
7741b1bb40 Merge branch 'abort-on-unclean-bad-case' of https://github.com/teifler/rsyslog into master-candidate 2015-04-30 11:21:06 +02:00
Tim Eifler
c488c58823 Testbench: configuration check with a valid configuration 2015-04-30 10:54:18 +02:00