tests.sh revision 247bf378605811d695e968dbe930a7fc45c0038e
#
*
*
# $Id: tests.sh,v 1.7 2007/06/19 23:47:04 tbox Exp $
status=0
sleep 6
sleep 60
echo "I:exit status: $status"
exit $status
if [ $? != 0 ]; then
echo "I:ns3 died before a SIGTERM was sent"
status=1
fi
sleep 6
echo "I:ns3 didn't die when sent a SIGTERM"
if [ $? != 0 ]; then
echo "I:ns3 died before a SIGKILL was sent"
status=1
fi
status=1
fi
(cd ns3 ; $NAMED -c named.conf -d 99 -g >> named.run 2>&1 & )
sleep 60
if [ $? != 0 ]; then
echo "I:ns2 died before a SIGTERM was sent"
status=1
fi
sleep 6
echo "I:ns2 didn't die when sent a SIGTERM"
if [ $? != 0 ]; then
echo "I:ns2 died before a SIGKILL was sent"
status=1
fi
status=1
fi
sleep 6
(cd ns2 ; $NAMED -c named.conf -d 99 -g >> named.run 2>&1 & )
sleep 60
echo "I:exit status: $status"
exit $status