1 # #-- stream_ssl.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 (cd $PRE; $MAKE streamtcp)
12 # first test streamtcp against the server unbound.
13 echo "> streamtcp -s www.example.com A IN"
14 $PRE/streamtcp -s -f 127.0.0.1@$SERV_PORT www.example.com. A IN >outfile 2>outerr
15 if test "$?" -ne 0; then
16 echo "exit status not OK"
37 if grep "10.20.30.40" outfile; then
46 # test client unbound (no SSL towards it, but it does SSL to the SSL service)
47 echo "> dig www.example.com A IN"
48 dig @127.0.0.1 -p $CLIE_PORT www.example.com. >outfile 2>&1
49 if test "$?" -ne 0; then
50 echo "exit status not OK"
69 if grep "10.20.30.40" outfile; then