blob: a9c1461a2805e6838fab437055dce4fc6191ef43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
echo "SLPFindAttrs"
rm -f SLPFindAttrs.actual.output
scriptdir=${srcdir}/SLPFindAttrs
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 != 1; then
echo "Unable to start slpd (error = $RESULT), test failed."
exit $RESULT
fi
./testslpfindattrs service:test 10.0.0.1 foo >> SLPFindAttrs.actual.output
echo >> SLPFindAttrs.actual.output
./testslpfindattrs service:test 10.0.0.1 goo >> SLPFindAttrs.actual.output
echo >> SLPFindAttrs.actual.output
./testslpfindattrs service:test 10.0.0.1 description >> SLPFindAttrs.actual.output
echo >> SLPFindAttrs.actual.output
./testslpfindattrs service:test 10.0.0.1 "(foo=value1,value2)" foo >> SLPFindAttrs.actual.output
echo >> SLPFindAttrs.actual.output
./testslpfindattrs service:test 10.0.0.1 "(foo=value1,value2)" goo >> SLPFindAttrs.actual.output
echo >> SLPFindAttrs.actual.output
test -f ${srcdir}/slpd.pid && kill `cat ${srcdir}/slpd.pid` && rm ${srcdir}/slpd.pid
diff -c ${scriptdir}/SLPFindAttrs.expected.output SLPFindAttrs.actual.output
|