sysklogd/test/mark.sh

18 lines
269 B
Bash
Raw Normal View History

#!/bin/sh -e
# Test '-- MARK --' in log, depends on fwd.sh
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/lib.sh
setup
check_mark()
{
grep "MARK" "${LOG}" && return 0
sleep 1
return 1
}
tenacious 120 check_mark && OK
FAIL "Missing MARK in log"