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/scripts/1000-Basic-ipv6 | |
parent | 94ebd6cb6496a79172a608928cbaf88b473e59c8 (diff) |
Extend ${readsocket to TCP sockets (modified John Jetmore's patch).
Diffstat (limited to 'test/scripts/1000-Basic-ipv6')
-rw-r--r-- | test/scripts/1000-Basic-ipv6/1010 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/scripts/1000-Basic-ipv6/1010 b/test/scripts/1000-Basic-ipv6/1010 new file mode 100644 index 000000000..720c0cffb --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/1010 @@ -0,0 +1,43 @@ +# ${readsocket (IPv6) +# +# Note the difference between: +# >*eof => close the connection +# *eof => expect to read EOF from client +# +server PORT_S 9 +QUERY-1 +>LF>ANSWER-1 +>*eof +QUERY-2 +>>ANSWER-2 +>*eof +QUERY-3 +>LF>ANSWER-3 +>*eof +QUERY-4 +>LF>ANSWER-4 +>*eof +>>ANSWER-5 +>*eof +*sleep 1 +>*eof +>*eof +QUERY-8 +*sleep 2 +*eof +QUERY-9 +*sleep 2 +*eof +**** +millisleep 500 +exim -be +1 >>${readsocket{inet:[::1]:PORT_S}{QUERY-1\n}}<< +2 >>${readsocket{inet:[::1]:PORT_S}{QUERY-2\n}}<< +3 >>${readsocket{inet:[::1]:PORT_S}{QUERY-3\n}{2s}{*EOL*}}<< +4 >>${readsocket{inet:[::1]:PORT_S}{QUERY-4\n}{2s}{*EOL*}{sock error}}<< +5 >>${readsocket{inet:[::1]:PORT_S}{}}<< +6 >>${readsocket{inet:[::1]:PORT_S}{QUERY-6\n}}<< +7 >>${readsocket{inet:[::1]:PORT_S}{QUERY-7\n}{1s}{}{sock error}}<< +8 >>${readsocket{inet:[::1]:PORT_S}{QUERY-8\n}{1s}}<< +9 >>${readsocket{inet:[::1]:PORT_S}{QUERY-9\n}{1s}{}{sock error}}<< +**** |