aad76ad03b
Refactor test.rc, start.sh, and stop.sh into lib.sh that each test sources and uses independently of each other. More simplfication and cleanup needed. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
16 lines
278 B
Bash
Executable File
16 lines
278 B
Bash
Executable File
#!/bin/sh
|
|
if [ x"${srcdir}" = x ]; then
|
|
srcdir=.
|
|
fi
|
|
. ${srcdir}/lib.sh
|
|
setup
|
|
|
|
MSG="foobar"
|
|
MSG2="xyzzy"
|
|
|
|
../src/logger -u ${SOCK} ${MSG}
|
|
grep ${MSG} ${LOG} || FAIL "Cannot find: ${MSG}"
|
|
|
|
../src/logger -u ${ALTSOCK} ${MSG2}
|
|
grep ${MSG2} ${LOG} || FAIL "Cannot find: ${MSG2}"
|