summaryrefslogtreecommitdiff
path: root/testdata/ssl_req_timeout.tdir/ssl_req_timeout.test
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/ssl_req_timeout.tdir/ssl_req_timeout.test')
-rw-r--r--testdata/ssl_req_timeout.tdir/ssl_req_timeout.test18
1 files changed, 15 insertions, 3 deletions
diff --git a/testdata/ssl_req_timeout.tdir/ssl_req_timeout.test b/testdata/ssl_req_timeout.tdir/ssl_req_timeout.test
index 5223fc9853b3..7f6527e0d6a6 100644
--- a/testdata/ssl_req_timeout.tdir/ssl_req_timeout.test
+++ b/testdata/ssl_req_timeout.tdir/ssl_req_timeout.test
@@ -17,12 +17,14 @@ fi
# this test query should just work (server is up)
echo "> query www1.example.net."
-$PRE/streamtcp -s -f 127.0.0.1@$UNBOUND_PORT www1.example.net. A IN >outfile 2>&1
+$PRE/streamtcp -s -f 127.0.0.1@$UNBOUND_PORT www1.example.net. A IN >outfile 2>outerr
cat outfile
+cat outerr
if test "$?" -ne 0; then
echo "exit status not OK"
echo "> cat logfiles"
cat outfile
+ cat outerr
cat fwd.log
cat unbound.log
echo "Not OK"
@@ -34,6 +36,7 @@ else
echo "result contents not OK"
echo "> cat logfiles"
cat outfile
+ cat outerr
cat fwd.log
cat unbound.log
echo "result contents not OK"
@@ -43,12 +46,14 @@ echo "OK"
# multiple requests that are answered immediately and then the timeout
echo "> query www1.example.net. www2.example.net. www3.example.net. www.example.com."
-$PRE/streamtcp -a -s -f 127.0.0.1@$UNBOUND_PORT www1.example.net. A IN www2.example.net A IN www3.example.net A IN www.example.com. A IN >outfile 2>&1
+$PRE/streamtcp -a -s -f 127.0.0.1@$UNBOUND_PORT www1.example.net. A IN www2.example.net A IN www3.example.net A IN www.example.com. A IN >outfile 2>outerr
cat outfile
+cat outerr
if test "$?" -ne 0; then
echo "exit status not OK"
echo "> cat logfiles"
cat outfile
+ cat outerr
cat fwd.log
cat unbound.log
echo "Not OK"
@@ -60,6 +65,7 @@ else
echo "result contents not OK"
echo "> cat logfiles"
cat outfile
+ cat outerr
cat fwd.log
cat unbound.log
echo "result contents not OK"
@@ -71,6 +77,7 @@ else
echo "result contents not OK"
echo "> cat logfiles"
cat outfile
+ cat outerr
cat fwd.log
cat unbound.log
echo "result contents not OK"
@@ -82,6 +89,7 @@ else
echo "result contents not OK"
echo "> cat logfiles"
cat outfile
+ cat outerr
cat fwd.log
cat unbound.log
echo "result contents not OK"
@@ -93,6 +101,7 @@ else
echo "result contents not OK"
echo "> cat logfiles"
cat outfile
+ cat outerr
cat fwd.log
cat unbound.log
echo "result contents not OK"
@@ -101,12 +110,14 @@ fi
# multiple requests that are waiting for answers and then the timeout
echo "> query www2.example.com. www2.example.com. www3.example.com."
-$PRE/streamtcp -a -s -f 127.0.0.1@$UNBOUND_PORT www2.example.com. A IN www2.example.com A IN www3.example.com A IN >outfile 2>&1
+$PRE/streamtcp -a -s -f 127.0.0.1@$UNBOUND_PORT www2.example.com. A IN www2.example.com A IN www3.example.com A IN >outfile 2>outerr
cat outfile
+cat outerr
if test "$?" -ne 0; then
echo "exit status not OK"
echo "> cat logfiles"
cat outfile
+ cat outerr
cat fwd.log
cat unbound.log
echo "Not OK"
@@ -118,6 +129,7 @@ else
echo "result contents not OK"
echo "> cat logfiles"
cat outfile
+ cat outerr
cat fwd.log
cat unbound.log
echo "result contents not OK"