diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-02-07 10:54:33 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-02-07 10:54:33 +0000 |
commit | 59371ea735c941334861aa5b8e1e9a06facf044f (patch) | |
tree | 79168561a70a94a3994fbe362b904ff9aab86136 /test/scripts/1000-Basic-ipv6 | |
parent | 54c5ebb14ead7439af300e9d7d9d7d2ba29ff32e (diff) |
Hopefully the final lot of test files.
Diffstat (limited to 'test/scripts/1000-Basic-ipv6')
-rw-r--r-- | test/scripts/1000-Basic-ipv6/1000 | 7 | ||||
-rw-r--r-- | test/scripts/1000-Basic-ipv6/1001 | 67 | ||||
-rw-r--r-- | test/scripts/1000-Basic-ipv6/1002 | 7 | ||||
-rw-r--r-- | test/scripts/1000-Basic-ipv6/1003 | 30 | ||||
-rw-r--r-- | test/scripts/1000-Basic-ipv6/1005 | 7 | ||||
-rw-r--r-- | test/scripts/1000-Basic-ipv6/1006 | 27 | ||||
-rw-r--r-- | test/scripts/1000-Basic-ipv6/1007 | 28 | ||||
-rw-r--r-- | test/scripts/1000-Basic-ipv6/1008 | 28 | ||||
-rw-r--r-- | test/scripts/1000-Basic-ipv6/REQUIRES | 1 |
9 files changed, 202 insertions, 0 deletions
diff --git a/test/scripts/1000-Basic-ipv6/1000 b/test/scripts/1000-Basic-ipv6/1000 new file mode 100644 index 000000000..8788da94b --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/1000 @@ -0,0 +1,7 @@ +# -bh and non-canonical IPv6 addresses +exim -bh 2001:ab8:37f:20::1.999 +**** +exim -DHL=host_lookup=* -bh V6NET:1234:5:6:7:8:abc:0d +**** +exim -bh V6NET:ffff:836f:0a00:000a:0800:200a:c032 +**** diff --git a/test/scripts/1000-Basic-ipv6/1001 b/test/scripts/1000-Basic-ipv6/1001 new file mode 100644 index 000000000..282c7eb8c --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/1001 @@ -0,0 +1,67 @@ +# recognizing IPv6 address in HELO/EHLO +need_ipv6 +# +# Incoming messages will be queued; deliver by queue run at the end. +# +exim -DSERVER=server -bd -oX PORT_D +**** +client HOSTIPV6 PORT_D +??? 220 +ehlo [HOSTIPV6] +??? 250- +??? 250- +??? 250- +??? 250 +mail from:<> +??? 250 +rcpt to:<userx@test.ex> +??? 250 +data +??? 354 +To: userx@test.ex + +EHLO [HOSTIPV6] +. +??? 250 +ehlo [IPV6:HOSTIPV6] +??? 250- +??? 250- +??? 250- +??? 250 +mail from:<> +??? 250 +rcpt to:<userx@test.ex> +??? 250 +data +??? 354 +To: userx@test.ex + +EHLO [IPV6:HOSTIPV6] +. +??? 250 +ehlo [IPV6:V6NET:0:12:1:a00:20ff:fe86:a062] +??? 250- +??? 250- +??? 250- +??? 250 +mail from:<> +??? 250 +rcpt to:<userx@test.ex> +??? 250 +data +??? 354 +To: userx@test.ex + +EHLO [IPV6:V6NET:0:12:1:a00:20ff:fe86:a062] +. +??? 250 +ehlo HOSTIPV6 +??? 501 +quit +??? 221 +**** +killdaemon +# Wait for delivery process +millisleep 500 +exim -q +**** diff --git a/test/scripts/1000-Basic-ipv6/1002 b/test/scripts/1000-Basic-ipv6/1002 new file mode 100644 index 000000000..c9a8b3f22 --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/1002 @@ -0,0 +1,7 @@ +# @ items in domain lists and host lists +exim -bh V4NET.1.1.1 +mail from:<x@y> +rcpt to:<1@[::1]> +rcpt to:<6@mxt11a.test.ex> +quit +**** diff --git a/test/scripts/1000-Basic-ipv6/1003 b/test/scripts/1000-Basic-ipv6/1003 new file mode 100644 index 000000000..646b1b4a3 --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/1003 @@ -0,0 +1,30 @@ +# interface selection (v4 vs v6) in outgoing SMTP +need_ipv4 +need_ipv6 +# +exim -DSERVER=server -bd -oX PORT_D +**** +exim userx@test.ex +hosts: 127.0.0.1 +interface: <; ::1 ; HOSTIPV4 +**** +exim userx@test.ex +hosts: <; ::1 +interface: <; HOSTIPV6 ; HOSTIPV4 +**** +exim userx@test.ex +hosts: <; ::1 +interface: <; ${if eq{0}{1}{HOSTIPV6}fail} +**** +exim userx@test.ex +hosts: <; ::1 +interface: <; ${if eq{0}{1}{HOSTIPV6}{ }} +**** +exim userx@test.ex +hosts: <; ::1 +interface: <; ${if +**** +exim -qf +**** +killdaemon +no_msglog_check diff --git a/test/scripts/1000-Basic-ipv6/1005 b/test/scripts/1000-Basic-ipv6/1005 new file mode 100644 index 000000000..e4af6713c --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/1005 @@ -0,0 +1,7 @@ +# dns_ipv4_lookup and gethostbyname +need_ipv4 +need_ipv6 +# +1 +exim -bt userx@eximtesthost.ipv6.test.ex +**** diff --git a/test/scripts/1000-Basic-ipv6/1006 b/test/scripts/1000-Basic-ipv6/1006 new file mode 100644 index 000000000..365d1c68c --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/1006 @@ -0,0 +1,27 @@ +# disable_ipv6 +need_ipv4 +need_ipv6 +# +exim -d-all+dns -bt dnslookup@mx46.test.ex \ + manualroute@test.ex \ + dnslookup@v6.test.ex +**** +2 +exim -DD6=disable_ipv6 -d-all+dns -bt dnslookup@mx46.test.ex \ + manualroute@test.ex \ + dnslookup@v6.test.ex +**** +exim -DSERVER=server -bd -oX PORT_D +**** +client HOSTIPV6 PORT_D +??? 220 +quit +??? 221 +**** +killdaemon +exim -DSERVER=server -DD6=disable_ipv6 -bd -oX PORT_D +**** +1 +client HOSTIPV6 PORT_D +**** +killdaemon diff --git a/test/scripts/1000-Basic-ipv6/1007 b/test/scripts/1000-Basic-ipv6/1007 new file mode 100644 index 000000000..9a2cbd638 --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/1007 @@ -0,0 +1,28 @@ +# local_interfaces, daemon_smtp_port, and -oX interactions +need_ipv4 +need_ipv6 +# +exim -d -bd -DSERVER=server -DPORT=daemon_smtp_port=PORT_D +**** +killdaemon +exim -d -bd -DSERVER=server -DPORT=daemon_smtp_port=PORT_D:PORT_D2 +**** +killdaemon +exim -d -bd -DSERVER=server -DPORT=daemon_smtp_port=PORT_D:PORT_D2 -DIFACE='local_interfaces = <; ::0 ; 127.0.0.1.PORT_D4 ; 0.0.0.0' +**** +killdaemon +exim -d -bd -DSERVER=server -DPORT=daemon_smtp_port=PORT_D:PORT_D2 -DIFACE='local_interfaces = <; 0.0.0.0; 127.0.0.1.PORT_D4 ; ::0' +**** +killdaemon +exim -d -bd -DSERVER=server -DPORT=daemon_smtp_port=PORT_D:PORT_D2 -DIFACE='local_interfaces = <; HOSTIPV6' +**** +killdaemon +exim -d -bd -DSERVER=server -oX PORT_D3 -DPORT=daemon_smtp_port=PORT_D:PORT_D2 -DIFACE='local_interfaces = <; ::0 ; 127.0.0.1.PORT_D4 ; 0.0.0.0' +**** +killdaemon +exim -d -bd -DSERVER=server -oX '<; PORT_D3;PORT_D;127.0.0.1' -DPORT=daemon_smtp_port=PORT_D:PORT_D2 -DIFACE='local_interfaces = <; ::0 ; 127.0.0.1.PORT_D4 ; 0.0.0.0' +**** +killdaemon +exim -d -bd -DSERVER=server -oX '<; ::0.PORT_D; 0.0.0.0.PORT_D;0.0.0.0.PORT_D2' +**** +killdaemon diff --git a/test/scripts/1000-Basic-ipv6/1008 b/test/scripts/1000-Basic-ipv6/1008 new file mode 100644 index 000000000..a91252af5 --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/1008 @@ -0,0 +1,28 @@ +# exinext and ports/message-ids and IPv6 +need_ipv4 +# +server PORT_S 2 +220 Server ready +EHLO +250-server id +250 OK +MAIL FROM +450 Temporary error +QUIT +250 OK +*eof +220 Server ready +EHLO +250-server id +250 OK +MAIL FROM +450 Temporary error +QUIT +250 OK +**** +exim -odi userx@test.ex +**** +dump retry +exinext 127.0.0.1 +exinext ::1 +no_msglog_check diff --git a/test/scripts/1000-Basic-ipv6/REQUIRES b/test/scripts/1000-Basic-ipv6/REQUIRES new file mode 100644 index 000000000..2923dcae2 --- /dev/null +++ b/test/scripts/1000-Basic-ipv6/REQUIRES @@ -0,0 +1 @@ +support IPv6 |