]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - testdata/fwd_no_edns.tdir/fwd_no_edns.test
Vendor import of Unbound 1.6.6.
[FreeBSD/FreeBSD.git] / testdata / fwd_no_edns.tdir / fwd_no_edns.test
1 # #-- fwd_no_edns.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
7 PRE="../.."
8 # do the test
9 echo "> dig www.example.com."
10 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
11 echo "> cat logfiles"
12 cat fwd.log 
13 cat unbound.log
14 echo "> check answer"
15 if grep "10.20.30.42" outfile; then
16         echo "OK"
17 else
18         echo "Not OK"
19         exit 1
20 fi
21
22 exit 0