83 Commits

Author SHA1 Message Date
Rainer Gerhards
e551642316 testbench: add missing shebangs
detected by shellcheck
2018-10-01 12:00:31 +02:00
Rainer Gerhards
ca5452fe74
Merge pull request #2993 from PascalWithopf/m2782
add contrib module omhttp
2018-09-07 17:33:21 +02:00
Christian Tramnitz
73ca164715 add contrib module omhttp
closes https://github.com/rsyslog/rsyslog/issues/1797
replaces https://github.com/rsyslog/rsyslog/pull/2782
2018-09-06 10:00:47 +02:00
9d0933bccf testbench: Added new kafka tests using kafkacat for better debugging.
Fixed some issues with sndrcv kafka tests.
Generating kafka topics dynamically now it kafka tests.

Limited messagecount in some tests to 50000 for now.
2018-09-05 11:55:33 +02:00
Rainer Gerhards
0bac6654c0 Travis: temporarily disable kafka tests
We already know they are currently unstable, so there is not point
in messing up CI result each time. The test will still be carried out
in nightly checks, so the problems won't be forgotten.
2018-07-29 14:38:11 +02:00
Rainer Gerhards
5e1bfa5f91
travis: reduce runtime on "distcheck" commit
We run only some distcheck test that we cannot yet run inside
the containers on travis. This reduces the amount of redundant
work done, speeding up Travis runtime.

Any missing checks are still detected by buildbot part of CI.
2018-07-28 13:00:08 +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
Rainer Gerhards
978cca35a7
Merge pull request #2405 from rgerhards/testbench-improve
some testbench improvements
2018-06-22 11:18:35 +02:00
Rainer Gerhards
9cf9f2e8b7 testbench: change elasticsearch tests to use new plumbing
This makes the ES tests more universally available (they should now
also support running in containers). It also simplifies the tests
as fewer support files are needed.
2018-06-18 17:12:08 +02:00
Rainer Gerhards
31ce76d135 travis: add checks for openssl drivers 2018-06-17 14:35:43 +02:00
Rainer Gerhards
bd8ea7e12e CI: add test to build without atomic operations
closes https://github.com/rsyslog/rsyslog/issues/2572
2018-03-21 16:57:50 +01:00
Rainer Gerhards
a28fbd3340 CI: fix check that tarball is built correctly 2018-03-04 11:09:13 +01:00
Rainer Gerhards
4f7c3438a7 testbench: do not override default Alpine CFLAGS
... as this brought us away from the abuild environment. Most importantly,
-Os was overriden by -O2, which did make a lot of warning go away.
2018-01-25 17:10:59 +01:00
Rainer Gerhards
b06a48d6b5 Travis: further collapse build matrix 2018-01-16 13:04:47 +01:00
Rainer Gerhards
89318b2dea travis: combine some build checks
... and do them via containers. This also reduces resource usage and
runtime on Travis a bit.
2018-01-15 18:07:06 +01:00
Rainer Gerhards
b89466e105 Travis: run static analyzer via standard dev container
also some improvements to somewhat optimize the build matrix so
that we avoid unnecessary work.
2018-01-14 13:56:27 +01:00
Rainer Gerhards
f356d9f399 Travis: check build on Alpine Linux and Ubunut rolling (via docker container) 2018-01-12 17:29:02 +01:00
Rainer Gerhards
0fcc9dc609 travis: reenable static analyzer
LLVM has changed packaging structure, this fix adapts to it. So we
now have scan-build-5.0 again.
2017-12-30 12:46:45 +01:00
Rainer Gerhards
44eacd7261 Travis: line length check was not run, re-enabling
This was a side-effect of disabling static analyzer, which we were forced to
due to missing LLVM packages.
2017-12-23 14:06:48 +01:00
Rainer Gerhards
57837d0dd7 Travis: enable omgssapi and usertools 2017-12-20 15:53:15 +01:00
Rainer Gerhards
4e04e2ee55 testbench: provide capability to split testbench
This is necessary as we hit the Travis max runtime limit per VM,
so we need to duplicate the tests. This is done via
--enable-testbench1 and --enable-testbench2 which we than use
in different VMs.

This PR also includes updates to the Travis scripts so that we
use the new capability. We have only duplicated Travis VMs where
acutally necessary -- we may need to do more of this in the future.

closes https://github.com/rsyslog/rsyslog/issues/2196
2017-12-11 11:22:14 +01:00
Dan Molik
f334e2b250 ompgsql plugin - update postgres module
The PostgreSQL output module was woefully out-of-date the following
list is changes made to update the module to current Rsyslog standards.

  - allow for v6 configuration syntax
  - configurable ports
  - support transactional interface
  - push db connection into workers (libpq is threadsafe)
  - enable module testing on travis
  - ensure configuration syntax backwards compatibility
  - formatting around postgres core templating
  - use new test conventions
  - add new configuration syntax test
  - add valgrind tests for new and old syntax
  - add threading tests
  - add action queue long running tests
  - add action queue valgrind test
2017-12-09 09:04:46 -05:00
Rainer Gerhards
8d8abf2d9b travis: enable gcc-7 with high warning levels
see also https://github.com/rsyslog/rsyslog/pull/2121
2017-11-29 12:39:07 +01:00
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
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
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
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
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
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
d178cbf299 travis: fix invalid LLVM repository source 2017-11-07 12:06:50 +01:00
Rainer Gerhards
6f0b2f7524 travies: use clang-5.0 for static analysis 2017-11-04 17:13:26 +01:00
Hugo SOSZYNSKI
e10949041e Changed the libmogo-client-dev for libmongoc-driver-dev in the install.sh for Travis. 2017-11-03 09:04:07 +01:00
Rainer Gerhards
9015b45c1e travis: enable building mmcount
while it is "just" a contributed module, we should make sure it
builds at least

closes https://github.com/rsyslog/rsyslog/issues/1879
2017-10-23 10:18:36 +02:00
Rainer Gerhards
c503c70913 Merge pull request #1855 from rgerhards/i-1838
fix imgssapi
2017-10-19 11:14:09 +02:00
Rainer Gerhards
2fd3fcca1e travis: remove temporary package override
this was needed while libfastjson 0.99.7 was not released
We just uncomment it so that the override can be easily re-enabled
the next time a similar need arises (what routinely happens)

closes https://github.com/rsyslog/rsyslog/issues/1848
2017-10-18 08:20:22 +02:00
Rainer Gerhards
07ea27a2e6 travis: enable build of gssapi components 2017-10-18 08:07:39 +02:00
Rainer Gerhards
3c84972299 travis: add capability to temporarily use v8-devel package
required due to new-version requirement for next release.
Else we could not run the CI tests.
2017-10-13 18:51:37 +02:00
Rainer Gerhards
c5af2f440e Merge pull request #1746 from mrworkman/fix-debugless-build
Fix broken 'debugless' build.
2017-09-12 18:03:45 +02:00
mrworkman
bb60c206f0 Fix broken 'debugless' build. 2017-09-12 08:01:39 -04:00
Rainer Gerhards
17c5df885e travis: do line length check only in some subtests 2017-09-11 12:53:10 +02:00