mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-12 19:30:42 +01:00
testbench: add basic test for immark
This commit is contained in:
parent
8eb75c8676
commit
5f85577cd8
@ -139,6 +139,7 @@ endif # if ENABLE_ELASTICSEARCH_TESTS
|
|||||||
|
|
||||||
if ENABLE_DEFAULT_TESTS
|
if ENABLE_DEFAULT_TESTS
|
||||||
TESTS += \
|
TESTS += \
|
||||||
|
immark.sh \
|
||||||
operatingstate-basic.sh \
|
operatingstate-basic.sh \
|
||||||
operatingstate-empty.sh \
|
operatingstate-empty.sh \
|
||||||
operatingstate-unclean.sh \
|
operatingstate-unclean.sh \
|
||||||
@ -1447,6 +1448,7 @@ EXTRA_DIST= \
|
|||||||
dnscache-TTL-0-vg.sh \
|
dnscache-TTL-0-vg.sh \
|
||||||
smtradfile.sh \
|
smtradfile.sh \
|
||||||
smtradfile-vg.sh \
|
smtradfile-vg.sh \
|
||||||
|
immark.sh \
|
||||||
operatingstate-basic.sh \
|
operatingstate-basic.sh \
|
||||||
operatingstate-empty.sh \
|
operatingstate-empty.sh \
|
||||||
operatingstate-unclean.sh \
|
operatingstate-unclean.sh \
|
||||||
|
|||||||
19
tests/immark.sh
Executable file
19
tests/immark.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# very basic check for immark module - nevertheless, there is not
|
||||||
|
# much more to test for...
|
||||||
|
# add 2019-08-20 by Rainer Gerhards, released under ASL 2.0
|
||||||
|
. ${srcdir:=.}/diag.sh init
|
||||||
|
generate_conf
|
||||||
|
add_conf '
|
||||||
|
module(load="../plugins/immark/.libs/immark" interval="1")
|
||||||
|
action(type="omfile" file="'$RSYSLOG_OUT_LOG'")
|
||||||
|
'
|
||||||
|
|
||||||
|
startup
|
||||||
|
printf 'sleeping a bit so we get mark messages...\n'
|
||||||
|
sleep 3 # this should be good even on slow machines - we need just one
|
||||||
|
shutdown_when_empty
|
||||||
|
wait_shutdown
|
||||||
|
content_check "rsyslogd: -- MARK --"
|
||||||
|
|
||||||
|
exit_test
|
||||||
Loading…
x
Reference in New Issue
Block a user