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