1 # #-- fwd_oneport.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
10 # skip the single query test
11 # so that all three queries get timeouts during the later test.
13 #echo "> dig www1.example.com."
14 #dig @localhost -p $UNBOUND_PORT www1.example.com. | tee outfile
15 #echo "> cat logfiles"
18 #echo "> check answer for single query"
19 #if grep "10.20.30.40" outfile; then
27 dig @localhost -p $UNBOUND_PORT www1.example.com. >outfile1 &
29 dig @localhost -p $UNBOUND_PORT www2.example.com. >outfile2 &
31 dig @localhost -p $UNBOUND_PORT www3.example.com. >outfile3 &
33 dig @localhost -p $UNBOUND_PORT www4.example.com. >outfile4 &
35 dig @localhost -p $UNBOUND_PORT www5.example.com. >outfile5 &
37 dig @localhost -p $UNBOUND_PORT www6.example.com. >outfile6 &
63 echo "> check for ID bit collisions"
64 grep "pending reply" unbound.log > ids
65 numsend=`cat ids | wc -l`
66 cat ids | awk '{print $8};' | sort -u > ids2
67 numuniq=`cat ids2 | wc -l`
68 if test $numuniq -ne $numsend; then
69 echo "got a ID number clash. could not do test, sorry"
73 echo "> check answers for queries"
74 if grep "10.20.30.40" outfile1; then
80 if grep "10.20.30.50" outfile2; then
86 if grep "10.20.30.60" outfile3; then
92 if grep "10.20.30.70" outfile4; then
98 if grep "10.20.30.80" outfile5; then
104 if grep "10.20.30.90" outfile6; then