sysklogd/test/mark.sh
Joachim Wiberg f29f31340c test: refactor and generalize setup(), adding a setup2()
This patch refactors the way the primary and secondary syslogd is
started by the test framework.  The generalizations not only make the
code more readable, it hopefully also makes it easier to add new tests
in the future.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2022-03-06 00:56:03 +01:00

20 lines
332 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
# Enable MARK messages every minute, full secure mode
setup -m1 -ss
check_mark()
{
grep "MARK" "${LOG}" && return 0
sleep 1
return 1
}
tenacious 120 check_mark && OK
FAIL "Missing MARK in log"