1 # #-- fwd_ancil.test --#
2 # source the master var file when it's there
3 [ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
4 # use .tpkg.var.test for in test variable passing
5 [ -f .tpkg.var.test ] && source .tpkg.var.test
10 if test `hostname`"" = "dicht.nlnetlabs.nl"; then
11 echo "In jail, no ::1, skip test"
15 if fgrep "disable interface-automatic" unbound.log; then
21 (cd $PRE; $MAKE streamtcp)
23 # detect platform support first
24 echo "> streamtcp -n -u -f 127.0.0.1 www.example.com. A IN"
25 $PRE/streamtcp -n -u -f 127.0.0.1@$UNBOUND_PORT www.example.com. A IN | tee outfile
28 if ! grep "Please disable interface-automatic" unbound.log; then
31 echo "No platform support for ancillary data"
35 echo "Not OK - but ignore test"
42 echo "> streamtcp -f 127.0.0.1 www.example.com. A IN"
43 $PRE/streamtcp -f 127.0.0.1@$UNBOUND_PORT www.example.com. A IN | tee outfile
45 if grep "10.20.30.40" outfile; then
56 echo "> streamtcp -f ::1 www.example.com. A IN"
57 $PRE/streamtcp -f ::1@$UNBOUND_PORT www.example.com. A IN | tee outfile
59 if grep "10.20.30.40" outfile; then
70 echo "> streamtcp -u -f ::1 www.example.com. A IN"
71 $PRE/streamtcp -u -f ::1@$UNBOUND_PORT www.example.com. A IN | tee outfile
73 if grep "10.20.30.40" outfile; then
84 echo "> streamtcp -u -f 127.0.0.1 www.example.com. A IN"
85 $PRE/streamtcp -u -f 127.0.0.1@$UNBOUND_PORT www.example.com. A IN | tee outfile
87 if grep "10.20.30.40" outfile; then