From: Curtis Blackburn Date: Mon, 21 Dec 2015 22:13:03 +0000 (-0800) Subject: [rt40109] added a test for +dscp to the digdelv tests X-Git-Tag: v9.11.0a1~240 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=df59681bd2f3b96a370d61a2cce0167e653cc73b;p=thirdparty%2Fbind9.git [rt40109] added a test for +dscp to the digdelv tests --- diff --git a/bin/tests/system/digdelv/tests.sh b/bin/tests/system/digdelv/tests.sh index 3e654a6ab18..92e4358c11b 100644 --- a/bin/tests/system/digdelv/tests.sh +++ b/bin/tests/system/digdelv/tests.sh @@ -267,6 +267,17 @@ if [ -x ${DIG} ] ; then if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` + n=`expr $n + 1` + echo "I:checking dig +dscp ($n)" + ret=0 + $DIG $DIGOPTS @10.53.0.3 +dscp=32 a a.example > /dev/null 2>&1 || ret=1 + $DIG $DIGOPTS @10.53.0.3 +dscp=-1 a a.example > /dev/null 2>&1 && ret=1 + $DIG $DIGOPTS @10.53.0.3 +dscp=64 a a.example > /dev/null 2>&1 && ret=1 + #TODO add a check to make sure dig is actually setting the dscp on the query + #we might have to add better logging to named for this + if [ $ret != 0 ]; then echo "I:failed"; fi + status=`expr $status + $ret` + else echo "$DIG is needed, so skipping these dig tests" fi