2019-12-01 21:12:02 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
# Test '-- MARK --' in log, depends on fwd.sh
|
2022-03-06 01:06:38 +01:00
|
|
|
# shellcheck disable=SC1090
|
2021-11-22 11:22:04 +01:00
|
|
|
if [ x"${srcdir}" = x ]; then
|
|
|
|
srcdir=.
|
|
|
|
fi
|
2021-11-22 15:16:05 +01:00
|
|
|
. ${srcdir}/lib.sh
|
2022-03-06 00:56:03 +01:00
|
|
|
|
|
|
|
# Enable MARK messages every minute, full secure mode
|
|
|
|
setup -m1 -ss
|
2019-12-01 21:12:02 +01:00
|
|
|
|
2021-11-22 04:59:23 +01:00
|
|
|
check_mark()
|
|
|
|
{
|
|
|
|
grep "MARK" "${LOG}" && return 0
|
|
|
|
sleep 1
|
|
|
|
return 1
|
|
|
|
}
|
2019-12-01 21:12:02 +01:00
|
|
|
|
2021-11-22 15:16:05 +01:00
|
|
|
tenacious 120 check_mark && OK
|
|
|
|
FAIL "Missing MARK in log"
|