#!/bin/sh
echo "SLPOpen"
rm -f SLPOpen.actual.output
scriptdir=${srcdir}/SLPOpen
test -f ${srcdir}/slpd.pid && kill `cat ${srcdir}/slpd.pid` && rm ${srcdir}/slpd.pid
../slpd/slpd -r ${scriptdir}/slp.test.reg -p ${srcdir}/slpd.pid -l ${srcdir}/slpd.log
RESULT=$?
if test $RESULT != 0; then
echo "Unable to start slpd (error = $RESULT), test failed."
exit $RESULT
fi
./testslpopen > SLPOpen.actual.output
test -f ${srcdir}/slpd.pid && kill `cat ${srcdir}/slpd.pid` && rm ${srcdir}/slpd.pid
diff -c ${scriptdir}/SLPOpen.expected.output SLPOpen.actual.output
syntax highlighted by Code2HTML, v. 0.9.1