1#!/bin/sh 2 3echo "SLPFindSrvTypes" 4rm -f SLPFindSrvTypes.actual.output 5scriptdir=${srcdir}/SLPFindSrvTypes 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 != 0; then 11 echo "Unable to start slpd (error = $RESULT), test failed." 12 exit $RESULT 13fi 14 15./testslpfindsrvtypes "*" >> SLPFindSrvTypes.actual.output 16echo >> SLPFindSrvTypes.actual.output 17./testslpfindsrvtypes "" >> SLPFindSrvTypes.actual.output 18echo >> SLPFindSrvTypes.actual.output 19./testslpfindsrvtypes "JUNK" >> SLPFindSrvTypes.actual.output 20echo >> SLPFindSrvTypes.actual.output 21./testslpfindsrvtypes "OPENSLP" >> SLPFindSrvTypes.actual.output 22 23test -f ${srcdir}/slpd.pid && kill `cat ${srcdir}/slpd.pid` && rm ${srcdir}/slpd.pid 24diff -c ${scriptdir}/SLPFindSrvTypes.expected.output SLPFindSrvTypes.actual.output 25