sysklogd/test/local.sh
Joachim Wiberg 577d20b8da test: use new logger() function in all tests
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2022-05-22 22:10:11 +02:00

23 lines
316 B
Bash
Executable File

#!/bin/sh
# shellcheck disable=SC1090
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/lib.sh
setup
print "TEST: Starting"
MSG="foobar"
MSG2="xyzzy"
logger "${MSG}"
grep ${MSG} "${LOG}" || FAIL "Cannot find: ${MSG}"
logger "${ALTSOCK}" ${MSG2}
grep ${MSG2} "${LOG}" || FAIL "Cannot find: ${MSG2}"
OK