aad76ad03b
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>
18 lines
269 B
Bash
Executable File
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"
|