]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
test that validation of an ANY query returning a DNAME works
authorBrian Wellington <source@isc.org>
Fri, 23 Feb 2001 06:22:11 +0000 (06:22 +0000)
committerBrian Wellington <source@isc.org>
Fri, 23 Feb 2001 06:22:11 +0000 (06:22 +0000)
bin/tests/system/dnssec/tests.sh

index b57c57b92abdc0d8ff28a3a6783babba8fdecee7..b20b82e596e73562ca5cbd57a98e0d8233611109 100644 (file)
@@ -15,7 +15,7 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: tests.sh,v 1.32 2001/02/23 06:14:44 bwelling Exp $
+# $Id: tests.sh,v 1.33 2001/02/23 06:22:11 bwelling Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
@@ -276,5 +276,17 @@ n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
+echo "I:checking that validation of an ANY query returning a DNAME works ($n)"
+ret=0
+$DIG $DIGOPTS +noauth foo.dname2.example. any @10.53.0.2 \
+       > dig.out.ns2.test$n || ret=1
+$DIG $DIGOPTS +noauth foo.dname2.example. any @10.53.0.4 \
+       > dig.out.ns4.test$n || ret=1
+$PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns4.test$n || ret=1
+grep "NOERROR" dig.out.ns4.test$n > /dev/null || ret=1
+n=`expr $n + 1`
+if [ $ret != 0 ]; then echo "I:failed"; fi
+status=`expr $status + $ret`
+
 echo "I:exit status: $status"
 exit $status