summaryrefslogtreecommitdiffstats
path: root/tests/minitcpsrv_usage_output.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/minitcpsrv_usage_output.sh')
-rwxr-xr-xtests/minitcpsrv_usage_output.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/minitcpsrv_usage_output.sh b/tests/minitcpsrv_usage_output.sh
new file mode 100755
index 0000000..279a608
--- /dev/null
+++ b/tests/minitcpsrv_usage_output.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+# add 2018-11-15 by Jan Gerhards, released under ASL 2.0
+
+. ${srcdir:=.}/diag.sh init
+
+./minitcpsrv&> $RSYSLOG_DYNNAME.output
+grep -q -- "-t parameter missing" $RSYSLOG_DYNNAME.output
+
+if [ ! $? -eq 0 ]; then
+ echo "invalid response generated"
+ error_exit 1
+fi;
+
+exit_test