003ba7f003
testsuite: Added test for concurrency array message variables
2015-11-06 17:35:59 +01:00
Rainer Gerhards
4ca0d65268
testbench: add tests for msg/local variable race conditions
2015-11-03 17:07:12 +01:00
6e7a80507c
testsuite: imtcp-tls-basic-vg.sh failed on Debian 7 due a bug in valgrind
...
The installed version of valgrind seems to have a bug which causes
memory leaks to be detected inside gnutls library.
After research I decided to disable memoryleak checking for
this specific test.
2015-10-28 07:40:54 -07:00
ae18fb23f7
testsuite: Added detection script for inotify in imfile tests
...
Only affects the tests using inotify, tests will be skipped when no
inotify is available.
2015-10-21 06:54:08 -07:00
Rainer Gerhards
77349efb3d
fix issue with rawmsg-after-pri property
...
also added a testbench test
2015-10-08 14:29:57 +02:00
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
Janmejay Singh
a88d67df6e
fixed re_extract bug, which fails the regex-compile for extract as fn-init fails when fn does not have exactly 2 args
2015-09-28 20:38:05 +05:30
Rainer Gerhards
f96dc1739f
bugfix testbench: some tests using imptcp are run if module is disabled
...
Thanks to Michael Biebl for reporting this
see also https://github.com/rsyslog/rsyslog/issues/524
2015-09-17 11:55:05 +02:00
Louis Bouchard
600ddb0ce2
testbench: Fix potential buffer overflow detection
...
On some architectures, calculation of edLen may lead to a
negative value when the value returned by rand() is less
than extraDataLen away from RAND_MAX. The negative value
passed to memset() triggers a glibc error. Forcing the
cast of rand() to be unsigned avoid the return of a negative
value.
Closes : #506
Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
2015-09-02 14:51:09 +02:00
Rainer Gerhards
3b2de72d43
Merge branch 'master-testsuite' of https://github.com/theinric/rsyslog into master-candidate
2015-09-01 18:15:15 +02:00
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
4759603f7d
testbench: Added mmpstrucdata valgrind tests into makefile
...
Tests and config files were not included in the makefile,
so they were not added into the release tar.gz file.
closes: https://github.com/rsyslog/rsyslog/issues/484
2015-08-17 07:03:34 -07:00
f337b638e8
Merge branch 'issue_445_fix_syscall_caller_compilation' of https://github.com/karibou/rsyslog into karibou-issue_445_fix_syscall_caller_compilation
...
Conflicts:
tests/imuxsock_ccmiddle.sh
tests/imuxsock_ccmiddle_root.sh
tests/imuxsock_hostname.sh
tests/imuxsock_traillf.sh
tests/imuxsock_traillf_root.sh
2015-08-04 06:11:21 -07: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
3b13693430
Tools: Man pages for tools were generated even with --disable-generate-man-pages
...
Man pages are not generated anymore when "--disable-generate-man-pages" is
configured. Also changed man-page rulepatterns makefile. The method
using $< refering to the prerequisite did not work proberly on FreeBSD.
closes https://github.com/rsyslog/rsyslog/issues/387
2015-07-24 10:21:58 +00:00
Louis Bouchard
f21b3f96f7
Fix tests bashism so the tests do run when lib enabled
...
Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
2015-07-17 12:43:06 +02:00
Louis Bouchard
2ddc080b08
Add missing include and fix conditional logic
...
Once the config.h is included, the conditional compilation is wrong
and needs to be fixed
Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
2015-07-17 12:39:00 +02:00
Louis Bouchard
647b116c2c
Revert missing options in comment
...
Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
2015-07-16 18:09:05 +02:00
Louis Bouchard
d5540ae094
Skip tests that require liblogging-stdlog
...
Those tests were enhanced with the addition of liblogging-stdlog
features. When compiled without it, most of the test will fail.
Skip those.
Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
2015-07-16 17:30:57 +02:00
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