sysklogd/test/mark.sh
Joachim Wiberg aad76ad03b test: refactor test.rc + start.sh + stop.sh -> lib.sh
Refactor test.rc, start.sh, and stop.sh into lib.sh that each test
sources and uses independently of each other.

More simplfication and cleanup needed.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2021-11-22 15:18:19 +01:00

18 lines
269 B
Bash
Executable File

#!/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"