mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-13 08:20:45 +01:00
testbench add test for mangle_qi
see also https://github.com/rsyslog/rsyslog/issues/3072
This commit is contained in:
parent
ac652d1fba
commit
51d2b5732c
@ -60,6 +60,7 @@ TESTS += \
|
|||||||
empty-hostname.sh \
|
empty-hostname.sh \
|
||||||
hostname-getaddrinfo-fail.sh \
|
hostname-getaddrinfo-fail.sh \
|
||||||
msleep_usage_output.sh \
|
msleep_usage_output.sh \
|
||||||
|
mangle_qi_usage_output.sh \
|
||||||
test_id_usage_output.sh \
|
test_id_usage_output.sh \
|
||||||
prop-programname.sh \
|
prop-programname.sh \
|
||||||
prop-programname-with-slashes.sh \
|
prop-programname-with-slashes.sh \
|
||||||
@ -1239,6 +1240,7 @@ EXTRA_DIST= \
|
|||||||
mmutf8fix_no_error.sh \
|
mmutf8fix_no_error.sh \
|
||||||
tcpflood_wrong_option_output.sh \
|
tcpflood_wrong_option_output.sh \
|
||||||
msleep_usage_output.sh \
|
msleep_usage_output.sh \
|
||||||
|
mangle_qi_usage_output.sh \
|
||||||
test_id_usage_output.sh \
|
test_id_usage_output.sh \
|
||||||
mmanon_with_debug.sh \
|
mmanon_with_debug.sh \
|
||||||
mmanon_random_32_ipv4.sh \
|
mmanon_random_32_ipv4.sh \
|
||||||
|
|||||||
14
tests/mangle_qi_usage_output.sh
Executable file
14
tests/mangle_qi_usage_output.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# add 2018-11-13 by Jan Gerhards, released under ASL 2.0
|
||||||
|
|
||||||
|
. ${srcdir:=.}/diag.sh init
|
||||||
|
|
||||||
|
./mangle_qi &> $RSYSLOG_DYNNAME.output
|
||||||
|
grep -q -- "-q option MUST be specified" $RSYSLOG_DYNNAME.output
|
||||||
|
|
||||||
|
if [ ! $? -eq 0 ]; then
|
||||||
|
echo "invalid response generated"
|
||||||
|
error_exit 1
|
||||||
|
fi;
|
||||||
|
|
||||||
|
exit_test
|
||||||
Loading…
x
Reference in New Issue
Block a user