tests.sh revision 247bf378605811d695e968dbe930a7fc45c0038e
#
;
;
# $Id: tests.sh,v 1.36 2011/10/17 01:33:27 marka Exp $
status=0
n=0
#
# Wait up to 10 seconds for the servers to finish starting before testing.
#
do
ret=0
[ $ret = 0 ] && break
sleep 1
done
n=`expr $n + 1`
echo "I:checking initial status ($n)"
ret=0
echo "I:reloading with example2 using HUP and waiting 45 seconds"
sleep 45
n=`expr $n + 1`
echo "I:checking example2 loaded ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking example2 contents have been transferred after HUP reload ($n)"
ret=0
echo "I:stopping master and restarting with example4 then waiting 45 seconds"
sleep 45
n=`expr $n + 1`
echo "I:checking example4 loaded ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking example4 contents have been transfered after restart ($n)"
ret=0
echo "I:exit status: $status"
exit $status