1# #-- fwd_capsid_white.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 -p $UNBOUND_PORT wwwabcdefghijklmnopqrstuvwxyzwww.example.com | tee outfile
11echo "> cat logfiles"
12cat fwd.log 
13cat fwd2.log 
14cat unbound.log
15echo "> check answer"
16if grep "10.20.30" outfile; then
17	echo "OK"
18else
19	echo "Not OK"
20	exit 1
21fi
22
23exit 0
24