2019-10-29 13:58:33 +01:00
|
|
|
#!/bin/sh
|
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
|
|
|
|
setup
|
2019-10-29 13:58:33 +01:00
|
|
|
|
|
|
|
MSG="foobar"
|
2019-11-07 18:58:47 +01:00
|
|
|
MSG2="xyzzy"
|
2019-10-29 13:58:33 +01:00
|
|
|
|
2019-10-30 17:14:29 +01:00
|
|
|
../src/logger -u ${SOCK} ${MSG}
|
2021-11-22 15:16:05 +01:00
|
|
|
grep ${MSG} ${LOG} || FAIL "Cannot find: ${MSG}"
|
2019-11-07 18:58:47 +01:00
|
|
|
|
|
|
|
../src/logger -u ${ALTSOCK} ${MSG2}
|
2021-11-22 15:16:05 +01:00
|
|
|
grep ${MSG2} ${LOG} || FAIL "Cannot find: ${MSG2}"
|