diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-04-18 11:13:19 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-04-18 11:13:19 +0000 |
commit | 1cce3af8c29cfa691a3e28c79227f358e5a7b3b9 (patch) | |
tree | 1170b58efc2fdbc629d872b9df439ca772976d19 /test/stdout | |
parent | 94ebd6cb6496a79172a608928cbaf88b473e59c8 (diff) |
Extend ${readsocket to TCP sockets (modified John Jetmore's patch).
Diffstat (limited to 'test/stdout')
-rw-r--r-- | test/stdout/0373 | 60 | ||||
-rw-r--r-- | test/stdout/1010 | 55 |
2 files changed, 115 insertions, 0 deletions
diff --git a/test/stdout/0373 b/test/stdout/0373 index 6cb4425eb..dabc1f5a7 100644 --- a/test/stdout/0373 +++ b/test/stdout/0373 @@ -13,6 +13,19 @@ > 9 >>sock error<< > 451 Temporary local problem - please try later
+> 1 >>ANSWER-1 +<< +> 2 >>ANSWER-2<< +> 3 >>ANSWER-3*EOL*<< +> 4 >>ANSWER-4*EOL*<< +> 5 >>ANSWER-5<< +> 6 >><< +> 7 >><< +> Failed: socket read timed out +> 9 >>sock error<< +> 10 >>ANSWER-10 +<< +> ******** SERVER ******** Listening on TESTSUITE/test-socket ... @@ -61,3 +74,50 @@ Connection request QUERY-ACL *sleep 3 End of script +Listening on port 1224 ... +Connection request from [ip4.ip4.ip4.ip4] +QUERY-1 +>LF>ANSWER-1 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-2 +>>ANSWER-2 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-3 +>LF>ANSWER-3 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-4 +>LF>ANSWER-4 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +>>ANSWER-5 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +*sleep 1 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-8 +*sleep 2 +Expected EOF read from client +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-9 +*sleep 2 +Expected EOF read from client +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-10 +>LF>ANSWER-10 +>*eof +End of script diff --git a/test/stdout/1010 b/test/stdout/1010 new file mode 100644 index 000000000..cacc1541b --- /dev/null +++ b/test/stdout/1010 @@ -0,0 +1,55 @@ +> 1 >>ANSWER-1 +<< +> 2 >>ANSWER-2<< +> 3 >>ANSWER-3*EOL*<< +> 4 >>ANSWER-4*EOL*<< +> 5 >>ANSWER-5<< +> 6 >><< +> 7 >><< +> Failed: socket read timed out +> 9 >>sock error<< +> + +******** SERVER ******** +Listening on port 1224 ... +Connection request from [::1] +QUERY-1 +>LF>ANSWER-1 +>*eof +Listening on port 1224 ... +Connection request from [::1] +QUERY-2 +>>ANSWER-2 +>*eof +Listening on port 1224 ... +Connection request from [::1] +QUERY-3 +>LF>ANSWER-3 +>*eof +Listening on port 1224 ... +Connection request from [::1] +QUERY-4 +>LF>ANSWER-4 +>*eof +Listening on port 1224 ... +Connection request from [::1] +>>ANSWER-5 +>*eof +Listening on port 1224 ... +Connection request from [::1] +*sleep 1 +>*eof +Listening on port 1224 ... +Connection request from [::1] +>*eof +Listening on port 1224 ... +Connection request from [::1] +QUERY-8 +*sleep 2 +Expected EOF read from client +Listening on port 1224 ... +Connection request from [::1] +QUERY-9 +*sleep 2 +Expected EOF read from client +End of script |