ret=0
$DIG $DIGOPTS +rec -t RT rt.rt.example @10.53.0.1 > dig.out.$n || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
ret=0
$DIG $DIGOPTS +rec -t RT rt.rt2.example @10.53.0.1 > dig.out.$n || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
ret=0
$DIG $DIGOPTS +rec -t NAPTR nap.naptr.example @10.53.0.1 > dig.out.$n || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
ret=0
$DIG $DIGOPTS +rec -t NAPTR nap.hang3b.example @10.53.0.1 > dig.out.$n || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
;;
esac
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
grep -w "L32" dig.out.$n > /dev/null && ret=1
fi
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
grep -w "L32" dig.out.$n > /dev/null && ret=1
fi
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
ret=0
$DIG $DIGOPTS +norec -t RT rt.rt.example @10.53.0.1 > dig.out.$n || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
ret=0
$DIG $DIGOPTS +norec -t RT rt.rt2.example @10.53.0.1 > dig.out.$n || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
ret=0
$DIG $DIGOPTS +norec -t NAPTR nap.naptr.example @10.53.0.1 > dig.out.$n || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
ret=0
$DIG $DIGOPTS +norec -t NAPTR nap.hang3b.example @10.53.0.1 > dig.out.$n || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
;;
esac
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
grep -w "L32" dig.out.$n > /dev/null && ret=1
fi
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
grep -w "L32" dig.out.$n > /dev/null && ret=1
fi
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
# Always expect glue for root priming queries, regardless $minimal
grep 'ADDITIONAL: 3' dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
;;
esac
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
}
$DIG $DIGOPTS -t ANY www.rt.example @10.53.0.1 > dig.out.$n || ret=1
grep "ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 2" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
echo_i "reconfiguring server: minimal-any yes"
$DIG $DIGOPTS -t ANY +notcp www.rt.example @10.53.0.1 > dig.out.$n || ret=1
grep "ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
$DIG $DIGOPTS -t ANY +tcp www.rt.example @10.53.0.1 > dig.out.$n || ret=1
grep "ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
$DIG $DIGOPTS -t ANY +notcp www.rt.example @10.53.0.1 > dig.out.$n || ret=1
grep "ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
echo_i "testing with 'minimal-responses no-auth;'"
grep "mail\.mx\.example\..*A.1\.2\.3\.4" dig.out.$n > /dev/null || ret=1
grep "_25\._tcp\.mail\.mx\.example\..*TLSA.3 0 1 5B30F9602297D558EB719162C225088184FAA32CA45E1ED15DE58A21 D9FCE383" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
grep "server\.srv\.example\..*A.1\.2\.3\.4" dig.out.$n > /dev/null || ret=1
grep "_5222\._tcp\.server\.srv\.example\..*TLSA.3 0 1 5B30F9602297D558EB719162C225088184FAA32CA45E1ED15DE58A21 D9FCE383" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
echo_i "reconfiguring server: minimal-responses no"
grep "AUTHORITY: 0" dig.out.$n > /dev/null || ret=1
grep "NS[ ]*ns" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
grep "AUTHORITY: 0" dig.out.$n > /dev/null || ret=1
grep "NS[ ]*ns" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
$DIG $DIGOPTS -t NS rt.example @10.53.0.1 > dig.out.$n || ret=1
grep "ADDITIONAL: 2" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
n=`expr $n + 1`
$DIG $DIGOPTS -t NS ex @10.53.0.3 > dig.out.$n || ret=1
grep "ADDITIONAL: 3" dig.out.$n > /dev/null || ret=1
if [ $ret -eq 1 ] ; then
- echo_i " failed"; status=1
+ echo_i "failed"; status=$((status+1))
fi
echo_i "exit status: $status"