1409 Commits

Author SHA1 Message Date
Thomas Deutschmann
015aa2eee1
Normalize Python shebang and improve portability 2017-11-27 20:06:37 +01:00
Rainer Gerhards
5e27894a21
Merge pull request #2115 from janmejay/dynstats_time_constraint_relaxation
Relax time constraints for dynstats elapsed-time dependent tests
2017-11-27 08:18:54 +01:00
Janmejay Singh
6983bd3414 Make elapsed-time dependent dynstats tests run with relaxed time constraints as they sometimes fail on arm & hppa (and sometimes on other slow envs too) 2017-11-26 23:56:42 +05:30
Rainer Gerhards
64992ddeee Travis: [io]mzmq3 cannot be built any longer
according to Brian Knox they require an outdated version of the client
lib. So we do not bother any longer about them. After all, they are
scheduled to be removed in 2018-01.
2017-11-26 16:42:09 +01:00
Rainer Gerhards
42fd7c7b78 travis: temporarily disable new autoconf-archive so that we can merge soon
the very new version introduced new warning compiler flags, which require
some work to fix build issues. We do not want to hold the rest of the
useful work in this commit set just for that. So we temporarily disable
the new package and will work in parallel to make things build cleanly
again.
2017-11-25 18:46:00 +01:00
Rainer Gerhards
0953b7c942 Travis: temporarily disable packages that make build fail 2017-11-25 18:46:00 +01:00
Rainer Gerhards
aeeecea3f2 Travis: prepare for use of newer autoconf-archive
thanks to whissi for the package!

see also https://github.com/rsyslog/rsyslog/issues/2102
2017-11-25 18:45:40 +01:00
Rainer Gerhards
95dfd548b4 travis: do more checks with gcc 7 2017-11-25 15:49:05 +01:00
Rainer Gerhards
4761cbdd68 travis: add gcc-7 based compile tests 2017-11-25 15:49:05 +01:00
Rainer Gerhards
4f2a1b9a38 travis: enable omsnmp in CI 2017-11-25 15:49:05 +01:00
Rainer Gerhards
289d4cead6
Merge pull request #2101 from PascalWithopf/i-1776
tcpflood: add err when parameter -Ttls is missing
2017-11-24 12:15:07 +01:00
Rainer Gerhards
dfe89f29e0
Merge pull request #2071 from rgerhards/es-testbench-additions
testbench: improvements in elasticsearch testing
2017-11-24 10:43:15 +01:00
PascalWithopf
3b5568b69c tcpflood: add err when parameter -Ttls is missing
When TLS certificates are specified but TLS is NOT enabled
tcpflood now exits with an error message.
This was decided as useful in https://github.com/rsyslog/rsyslog/issues/1776
2017-11-24 10:37:48 +01:00
Rainer Gerhards
cf425b2c36 testbench/omkafka: update valgrind test to more flexible test framework 2017-11-24 08:14:32 +01:00
Rainer Gerhards
0fe2de8f24
Merge pull request #1917 from jjourdin/master
Improvement on ommongodb: mongo-c-driver with TLS and replicaset
2017-11-23 15:31:48 +01:00
Rainer Gerhards
a811fb8fb7 testbench: add basic test for omelasticsearch with ES 6.0 2017-11-21 15:29:48 +01:00
Rainer Gerhards
61ccf4a159 testbench: improve elasticsearch test harness
see also https://github.com/rsyslog/rsyslog/issues/1989
2017-11-21 15:29:48 +01:00
8d1ffbf3c3 testsuite: Added es-basic-abort test to simulate elasticsearch shutdown/restart
Also changed start/stop method in diag.sh for elasticsearch
2017-11-21 15:28:15 +01:00
013c7304e9 testsuite: Added support to download, setup and start Elasticsearch from source
Works equal like for kafka and zookeeper. Elasticsearch is downloaded, configured and
started/stopped by the diag.sh script. Normal user access is sufficient.

Only es-basic.sh test has been adjusted with the new
method. Elasticsearch instance is limited to 128MB memory, should be sufficient for
the testbench.
2017-11-21 15:28:15 +01:00
Rainer Gerhards
1f859e7ad6 testbench/kafka: add valgrind test for kafka
Note: we need to add a supression file for a memory leak that looks
like it is caused by librdkafka.
See https://github.com/edenhill/librdkafka/issues/1536
for more details.

Once this issue is finally resolved, we should revisit the approach taken.

closes https://github.com/rsyslog/rsyslog/issues/2050
2017-11-21 13:12:29 +01:00
f81a7d36c5 omkafka: wait for kafka shutdown (Old librdkafka versions only) and testbench changes
Changed kafka compression to none in testbench config files.
The compression methods seem to have memory leaks and make valgrind tests unuseable.
2017-11-20 13:03:10 +01:00
Rainer Gerhards
77e048d320 testbench: add kafka valgrind based tests (but do not use yet) 2017-11-20 13:02:17 +01:00
Rainer Gerhards
2a8af6b6f0 travis: enable build of [io]mzmq modules
now that we have the necessary prequisites, we can also build these
modules and make sure that actually works

closes https://github.com/rsyslog/rsyslog/issues/2047
2017-11-18 17:15:07 +01:00
Hugo SOSZYNSKI
1ab4bfb0e7 Corrected some compilation warning and errors.
No longer installing libmongo-client in Travis script.
2017-11-17 15:37:26 +01:00
Rainer Gerhards
b4b0309995 testbench: cleanup existing kafka tests 2017-11-17 12:03:23 +01:00
Hugo SOSZYNSKI
f1ec0993c4 Merge from upstream/master 2017-11-17 09:45:22 +01:00
Rainer Gerhards
0d124d164a Travis: let build requirements not interfere with line length check 2017-11-16 13:47:47 +01:00
Rainer Gerhards
6c05f41269 Travis CI: add support for cron jobs and Coverity scan
We execute different code pathes under cron jobs. It doesn't make sense
to redo what we already did before a merge. Right now, cron builds a
Coverity scan submission and uploads it. This should be set to run
once a day.

closes https://github.com/rsyslog/rsyslog/issues/2037
2017-11-16 11:30:01 +01:00
PascalWithopf
e485c5c5bc codestyle: shorten lines to max 130 chars 2017-11-15 09:04:42 +01:00
Rainer Gerhards
c0c23e258e
Merge pull request #2022 from rgerhards/cid-185407
lookup: improve code in regard to err detection at compile time
2017-11-14 17:06:03 +01:00
Rainer Gerhards
4b0f69d0ec testbench: check rsyslogd abort if tcpflood fails
this is useful if rsyslogd only abort in such tests - otherwise we
do not get a core analysis
2017-11-14 14:27:11 +01:00
Rainer Gerhards
2fc94fce33 travis: run clang static analyzer over ALL files
For historic reasons, it only processed part of the files, what no longer
is necessary (buildbot already covers everything).

closes https://github.com/rsyslog/rsyslog/issues/2005
2017-11-14 12:20:32 +01:00
Rainer Gerhards
fb621b7bc7
Merge pull request #1393 from artbristol/tls-client-sni
Support SNI when connecting as a client
2017-11-14 10:40:40 +01:00
Rainer Gerhards
5b4192519a omelasticsearch: fix memory leak and potential misadressing
Commit 96b5fce introduced regressions, leading to potential misadressing
and a very probable memory leak. This commit fixes the issues and
hardens the module to better detect some error cases in the
future.

It also adds valgrind-based testbench tests which ensure that no
pointer errors exist. If they had been in place, the regressions
would never have been undetected.

Note that commit 96b5fce was introduced in 8.23.0 on Nov, 15th 2016.

Many thanks to Yaroslav Bo for alerting me on the root problem and
providing a very good analysis and guidance.

see also https://github.com/rsyslog/rsyslog/issues/1906
closes https://github.com/rsyslog/rsyslog/issues/1962
see also https://github.com/rsyslog/rsyslog/issues/1964
2017-11-12 12:12:32 +01:00
Jan Gerhards
e71f72c272 mmanon: enable tests on FreeBSD
closes https://github.com/rsyslog/rsyslog/issues/2017
2017-11-11 18:40:38 +01:00
Rainer Gerhards
bd30e9c8ea
Merge pull request #2014 from rgerhards/i-1822bis
core/msg: fix segfault in MsgSetPropsViaJSON
2017-11-11 14:29:30 +01:00
Rainer Gerhards
67260eee4a testbench: add tests for segfault in MsgSetPropsViaJSON
Test for the root problem fixed in previous commit.

See also https://github.com/rsyslog/rsyslog/issues/1822
2017-11-11 10:24:45 +01:00
Rainer Gerhards
041f1c8f2e
Merge pull request #1990 from rgerhards/testbench-threaddebug
testbench: add threading correctness dynamic tests
2017-11-11 10:13:59 +01:00
Rainer Gerhards
2f76d61821 testbench: add threading correctness dynamic tests
utilizing the valgrind helgrind debugger

closes https://github.com/rsyslog/rsyslog/issues/1971
see also https://github.com/rsyslog/rsyslog/issues/2012
2017-11-10 19:03:01 +01:00
Rainer Gerhards
d413df23d2 testbench: add valgrind-test for imjournal 2017-11-10 14:13:09 +01:00
Hugo SOSZYNSKI
263796f2f2 Merge remote-tracking branch 'upstream/master' 2017-11-10 14:02:10 +01:00
Hugo SOSZYNSKI
7d3a2e61ab Now installing mongo-c-driver from the git on Travis. Corrected misunterstood structure initialisation by clang. Added the removed libmongo-client needed for the usertools. 2017-11-10 13:59:43 +01:00
Rainer Gerhards
c13bbe60c0 testbench: update zookeeper version used in tests
unfortunately, there is no generic URL available...
2017-11-09 19:51:01 +01:00
Rainer Gerhards
1ca0f3d776 testbench: detect and report error download kafka dependency
make sure we are not puzzled when things go wrong.
2017-11-09 18:14:30 +01:00
Rainer Gerhards
39c3c4bd59 testbench: run gdb in batch mode, nicer diagnostic output 2017-11-08 11:27:19 +01:00
Rainer Gerhards
d49880b843 testbench: provide easier to read core dump analysis 2017-11-08 11:27:19 +01:00
Rainer Gerhards
d65dc24616
Merge pull request #1925 from mrworkman/rscript-parse-time
Add RainerScript parse_time() function to convert date/time strings to UNIX time.
2017-11-08 08:38:56 +01:00
Rainer Gerhards
0a76796351
Merge pull request #1984 from jvymazal/librelp_CI
remove incorrect action option from testsuite conf
2017-11-08 08:21:40 +01:00
Jiri Vymazal
c091ac8164 remove incorrect action option from testsuite conf 2017-11-07 14:28:03 +01:00
Stephen Workman
2c2679ff12 Add comments for clarity. 2017-11-07 08:24:56 -05:00