--- /dev/null
+
+proc query {args} {
+ set q [concat adns synch $args]
+ puts "% $q"
+ set r [eval $q]
+ puts "=> $r"
+ return $r
+}
+proc query_ok {args} {
+ set r [eval query $args]
+ set outcome [lindex $r 0]
+ if {"$outcome" != "ok"} { error "outcome $outcome, not ok" }
+ return [lindex $r 6]
+}
+
+# We could perhaps do this with a mocked nameserver but that seems
+# like an excessive effort.
+#
+# Use mythic-beasts as a test case.
+# They are very likely to have both A and AAAA RRsets for the foreseeable.
+
+query_ok a www.mythic-beasts.com
+query_ok aaaa www.mythic-beasts.com
+
+set data [query_ok addr www.mythic-beasts.com]
+
+set got_type(INET) 0
+set got_type(INET6) 0
+foreach addr $data {
+ incr got_type([lindex $addr 0])
+}
+foreach type [array names got_type] {
+ if {$got_type($type) == 0} { error $r "no $type" }
+}
echo >&4 "Tests: $t"
sed "s/^shlibs:Depends=/Depends: tcl$v, /" >&4 $sv
restrictions=''
+ case $d in
+ adns) restrictions+=' needs-internet';
+ esac
case $v in
'') ;;
?*) restrictions+=' skip-not-installable';
Tests: adns--def
Depends: tcl, libadns1t64 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 (>= 1.3.5+b1)
-Restrictions:
+Restrictions: needs-internet
Tests: adns--8.5
Depends: tcl8.5, libadns1t64 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 (>= 1.3.5+b1)
-Restrictions: skip-not-installable
+Restrictions: needs-internet skip-not-installable
Tests: adns--8.6
Depends: tcl8.6, libadns1t64 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 (>= 1.3.5+b1)
-Restrictions: skip-not-installable
+Restrictions: needs-internet skip-not-installable
Tests: adns--8.7
Depends: tcl8.7, libadns1t64 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 (>= 1.3.5+b1)
-Restrictions: skip-not-installable
+Restrictions: needs-internet skip-not-installable
Tests: cdb--def
Depends: tcl, libc6 (>= 2.33), libcdb1 (>= 0.76), libtcl-chiark-1 (>= 1.3.5+b1)