1# #-- fwd_tcp.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# do the test 9echo "> dig www.example.com." 10dig @localhost +vc -p $UNBOUND_PORT www.example.com. | tee outfile 11echo "> cat logfiles" 12cat fwd.log 13cat unbound.log 14echo "> check answer" 15if grep "10.20.30.40" outfile; then 16 echo "OK" 17else 18 echo "Not OK" 19 exit 1 20fi 21 22exit 0 23