sysklogd/test/local.sh
Joachim Wiberg 2d95e0ccf0 test: fix search path for scripts
Fails when building in a sub-directory

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2021-11-22 11:22:04 +01:00

17 lines
226 B
Bash
Executable File

#!/bin/sh
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/start.sh
MSG="foobar"
MSG2="xyzzy"
../src/logger -u ${SOCK} ${MSG}
grep ${MSG} ${LOG}
../src/logger -u ${ALTSOCK} ${MSG2}
grep ${MSG2} ${LOG}
. ./stop.sh