blob: 0fb89c644335785e6527a19f310588a133537f09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
echo "SLPDereg"
rm -f SLPDereg.actual.output
scriptdir=${srcdir}/SLPDereg
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
./testslpdereg service:registered 10.0.0.1 service:registered 10.0.0.1 >> SLPDereg.actual.output
echo >> SLPDereg.actual.output
./testslpdereg service:registered 10.0.0.1 service:unregistered 10.0.0.1 >> SLPDereg.actual.output
echo >> SLPDereg.actual.output
./testslpdereg service:test 10.0.0.1 >> SLPDereg.actual.output
test -f ${srcdir}/slpd.pid && kill `cat ${srcdir}/slpd.pid` && rm ${srcdir}/slpd.pid
diff -c ${scriptdir}/SLPDereg.expected.output SLPDereg.actual.output
|