blob: 3f00b7461423f77730f8ea2f6747a108f8d5f502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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
|