tests.sh revision 247bf378605811d695e968dbe930a7fc45c0038e
#
# $Id: tests.sh,v 1.13 2012/01/04 23:46:49 tbox Exp $
status=0
test_fixed=true
else
echo "I: Order 'fixed' disabled at compile time"
test_fixed=false
fi
#
#
#
if $test_fixed; then
echo "I: Checking order fixed (master)"
ret=0
do
done
fi
#
#
#
echo "I: Checking order cyclic (master + additional)"
ret=0
matches=0
do
j=`expr $i % 4`
if [ $i -le 4 ]; then
else
fi
done
#
#
#
echo "I: Checking order cyclic (master)"
ret=0
matches=0
do
j=`expr $i % 4`
if [ $i -le 4 ]; then
else
fi
done
echo "I: Checking order random (master)"
ret=0
do
eval match$i=0
done
do
match=0
do
eval "cmp -s dig.out.random dig.out.random.good$j && match$j=1 match=1"
done
done
match=0
do
eval "match=\`expr \$match + \$match$i\`"
done
echo "I: Random selection return $match of 24 possible orders in 36 samples"
#
#
#
if $test_fixed; then
echo "I: Checking order fixed (slave)"
ret=0
do
done
fi
#
#
#
echo "I: Checking order cyclic (slave + additional)"
ret=0
matches=0
do
j=`expr $i % 4`
if [ $i -le 4 ]; then
else
fi
done
#
#
#
echo "I: Checking order cyclic (slave)"
ret=0
matches=0
do
j=`expr $i % 4`
if [ $i -le 4 ]; then
else
fi
done
echo "I: Checking order random (slave)"
ret=0
do
eval match$i=0
done
do
match=0
do
eval "cmp -s dig.out.random dig.out.random.good$j && match$j=1 match=1"
done
done
match=0
do
eval "match=\`expr \$match + \$match$i\`"
done
echo "I: Random selection return $match of 24 possible orders in 36 samples"
echo "I: Shutting down slave"
(cd ..; sh stop.sh rrsetorder ns2 )
echo "I: Checking for slave's on disk copy of zone"
then
echo "I:failed";
fi
echo "I: Re-starting slave"
(cd ..; sh start.sh --noclean rrsetorder ns2 )
#
#
#
if $test_fixed; then
echo "I: Checking order fixed (slave loaded from disk)"
ret=0
do
done
fi
#
#
#
echo "I: Checking order cyclic (slave + additional, loaded from disk)"
ret=0
matches=0
do
j=`expr $i % 4`
if [ $i -le 4 ]; then
else
fi
done
#
#
#
echo "I: Checking order cyclic (slave loaded from disk)"
ret=0
matches=0
do
j=`expr $i % 4`
if [ $i -le 4 ]; then
else
fi
done
echo "I: Checking order random (slave loaded from disk)"
ret=0
do
eval match$i=0
done
do
match=0
do
eval "cmp -s dig.out.random dig.out.random.good$j && match$j=1 match=1"
done
done
match=0
do
eval "match=\`expr \$match + \$match$i\`"
done
echo "I: Random selection return $match of 24 possible orders in 36 samples"
#
#
#
if $test_fixed; then
echo "I: Checking order fixed (cache)"
ret=0
do
done
fi
#
#
#
echo "I: Checking order cyclic (cache + additional)"
ret=0
# prime acache
matches=0
do
j=`expr $i % 4`
if [ $i -le 4 ]; then
else
fi
done
#
#
#
echo "I: Checking order cyclic (cache)"
ret=0
# prime acache
matches=0
do
j=`expr $i % 4`
if [ $i -le 4 ]; then
else
fi
done
echo "I: Checking order random (cache)"
ret=0
do
eval match$i=0
done
do
match=0
do
eval "cmp -s dig.out.random dig.out.random.good$j && match$j=1 match=1"
done
done
match=0
do
eval "match=\`expr \$match + \$match$i\`"
done
echo "I: Random selection return $match of 24 possible orders in 36 samples"
echo "I:exit status: $status"
exit $status