mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-13 04:50:41 +01:00
Also now permit interactivly running tests without explicitly setting $srcdir. This now works if we are inside ./tests and fails, as before, when we are in a different directory. Detected by shellcheck via CodeFactor.io
15 lines
273 B
Bash
Executable File
15 lines
273 B
Bash
Executable File
#!/bin/bash
|
|
# add 2016-11-22 by Jan Gerhards, released under ASL 2.0
|
|
|
|
. ${srcdir:=.}/diag.sh init
|
|
|
|
./msleep &> $RSYSLOG_DYNNAME.output
|
|
grep "usage: msleep" $RSYSLOG_DYNNAME.output
|
|
|
|
if [ ! $? -eq 0 ]; then
|
|
echo "invalid response generated"
|
|
error_exit 1
|
|
fi;
|
|
|
|
exit_test
|