1# #-- fwd_tcp_tc6.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 6 7PRE="../.." 8. ../common.sh 9get_make 10(cd $PRE; $MAKE streamtcp) 11 12# do the test 13echo "> streamtcp www.example.com." 14$PRE/streamtcp -u -f ::1@$UNBOUND_PORT www.example.com. A IN | tee outfile 15echo "> cat logfiles" 16cat fwd.log 17cat unbound.log 18echo "> check answer" 19if grep "10.20.30.42" outfile; then 20 echo "OK" 21else 22 echo "Not OK" 23 exit 1 24fi 25 26exit 0 27