You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
608 B

#!/bin/sh
echo "SLPFindSrvs"
rm -f SLPFindSrvs.actual.output
scriptdir=${srcdir}/SLPFindSrvs
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
./testslpfindsrvs service:test >> SLPFindSrvs.actual.output
test -f ${srcdir}/slpd.pid && kill `cat ${srcdir}/slpd.pid` && rm ${srcdir}/slpd.pid
diff -c ${scriptdir}/SLPFindSrvs.expected.output SLPFindSrvs.actual.output