You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
674 B
Bash

#!/bin/sh
echo "SLPReg"
rm -f SLPReg.actual.output
scriptdir=${srcdir}/SLPReg
test -f ${srcdir}/slpd.pid && kill `cat ${srcdir}/slpd.pid` && rm ${srcdir}/slpd.pid
../slpd/slpd -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
./testslpreg service:valid 10.0.0.1 service:valid >> SLPReg.actual.output
echo >> SLPReg.actual.output
./testslpreg service:valid 10.0.0.1 service:invalid >> SLPReg.actual.output
test -f ${srcdir}/slpd.pid && kill `cat ${srcdir}/slpd.pid` && rm ${srcdir}/slpd.pid
diff -c ${scriptdir}/SLPReg.expected.output SLPReg.actual.output