]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check that dig +short +expandaaaa works
authorMark Andrews <marka@isc.org>
Sun, 21 Jul 2019 19:06:48 +0000 (05:06 +1000)
committerMark Andrews <marka@isc.org>
Wed, 31 Jul 2019 01:05:56 +0000 (21:05 -0400)
bin/tests/system/digdelv/tests.sh

index 0228c77bc840cb9d144790fe9b17e7f80df2a353..9dfd9de47503c3998f77b5fe06012831764c1d1a 100644 (file)
@@ -708,6 +708,14 @@ if [ -x "$DIG" ] ; then
   grep "ns2.example.*fd92:7065:b8e:ffff::2" dig.out.test$n > /dev/null || ret=1
   if [ $ret -ne 0 ]; then echo_i "failed"; fi
   status=$((status+ret))
+
+  n=$((n+1))
+  echo_i "check that dig +short +expandaaaa works ($n)"
+  ret=0
+  dig_with_opts @10.53.0.3 +short +expandaaaa AAAA ns2.example > dig.out.test$n 2>&1 || ret=1
+  grep '^fd92:7065:0b8e:ffff:0000:0000:0000:0002$' dig.out.test$n > /dev/null || ret=1
+  if [ $ret -ne 0 ]; then echo_i "failed"; fi
+  status=$((status+ret))
 else
   echo_i "$DIG is needed, so skipping these dig tests"
 fi