2019-10-29 18:28:33 +05:30
|
|
|
#!/bin/sh
|
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
|
|
|
|
setup
|
2019-10-29 18:28:33 +05:30
|
|
|
|
2022-03-06 05:32:03 +05:30
|
|
|
print "TEST: Starting"
|
|
|
|
|
2019-10-29 18:28:33 +05:30
|
|
|
MSG="foobar"
|
2019-11-07 23:28:47 +05:30
|
|
|
MSG2="xyzzy"
|
2019-10-29 18:28:33 +05:30
|
|
|
|
2022-03-06 05:36:38 +05:30
|
|
|
../src/logger -u "${SOCK}" ${MSG}
|
|
|
|
grep ${MSG} "${LOG}" || FAIL "Cannot find: ${MSG}"
|
|
|
|
|
|
|
|
../src/logger -u "${ALTSOCK}" ${MSG2}
|
|
|
|
grep ${MSG2} "${LOG}" || FAIL "Cannot find: ${MSG2}"
|
2019-11-07 23:28:47 +05:30
|
|
|
|
2022-03-06 05:32:03 +05:30
|
|
|
OK
|