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