2019-10-29 13:58:33 +01:00
|
|
|
#!/bin/sh
|
2022-05-21 15:43:12 +02:00
|
|
|
# shellcheck disable=SC1090
|
|
|
|
|
2021-11-22 11:22:04 +01:00
|
|
|
if [ x"${srcdir}" = x ]; then
|
|
|
|
srcdir=.
|
|
|
|
fi
|
2022-05-21 15:43:12 +02:00
|
|
|
|
2021-11-22 15:16:05 +01:00
|
|
|
. ${srcdir}/lib.sh
|
|
|
|
setup
|
2019-10-29 13:58:33 +01:00
|
|
|
|
2022-03-06 01:02:03 +01:00
|
|
|
print "TEST: Starting"
|
|
|
|
|
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
|
|
|
|
2022-05-21 15:43:12 +02:00
|
|
|
logger "${MSG}"
|
2022-03-06 01:06:38 +01:00
|
|
|
grep ${MSG} "${LOG}" || FAIL "Cannot find: ${MSG}"
|
|
|
|
|
2022-05-21 15:43:12 +02:00
|
|
|
logger "${ALTSOCK}" ${MSG2}
|
2022-03-06 01:06:38 +01:00
|
|
|
grep ${MSG2} "${LOG}" || FAIL "Cannot find: ${MSG2}"
|
2019-11-07 18:58:47 +01:00
|
|
|
|
2022-03-06 01:02:03 +01:00
|
|
|
OK
|