summaryrefslogtreecommitdiffstats
path: root/tests/test_id_usage_output.sh
blob: b4c6593d466ade385accd7374077bdab48fbfcd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# add 2016-11-22 by Jan Gerhards, released under ASL 2.0

. ${srcdir:=.}/diag.sh init

./test_id &> $RSYSLOG_DYNNAME.output
grep "usage: test_id" $RSYSLOG_DYNNAME.output 

if [ ! $? -eq 0 ]; then
  echo "invalid response generated"
  error_exit  1
fi;

exit_test