xref: /netbsd-src/external/bsd/unbound/dist/testdata/fwd_udp.tdir/fwd_udp.test (revision 154bfe8e089c1a0a4e9ed8414f08d3da90949162)
1# #-- fwd_udp.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 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