| 1 |
# #-- fwd_tcp_tc6.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 |
. ../common.sh |
| 9 |
get_make |
| 10 |
(cd $PRE; $MAKE streamtcp) |
| 11 |
|
| 12 |
# do the test |
| 13 |
echo "> streamtcp www.example.com." |
| 14 |
$PRE/streamtcp -u -f ::1@$UNBOUND_PORT www.example.com. A IN | tee outfile |
| 15 |
echo "> cat logfiles" |
| 16 |
cat fwd.log |
| 17 |
cat unbound.log |
| 18 |
echo "> check answer" |
| 19 |
if grep "10.20.30.42" outfile; then |
| 20 |
echo "OK" |
| 21 |
else |
| 22 |
echo "Not OK" |
| 23 |
exit 1 |
| 24 |
fi |
| 25 |
|
| 26 |
exit 0 |