aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2019-03-05 09:36:33 +0100
committerMichael Albinus2019-03-05 09:36:33 +0100
commiteb8dbafff11fded9c96294a0680455bcde70882c (patch)
treebac7b0913e544e600c710c47b793f313f45668a8
parent3c94c7bc02fcacb4a101188dddb0c44d53444178 (diff)
downloademacs-eb8dbafff11fded9c96294a0680455bcde70882c.tar.gz
emacs-eb8dbafff11fded9c96294a0680455bcde70882c.zip
Test an IPv4 mapped IPv6 address in Tramp
* test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax) (tramp-test01-file-name-syntax-simplified) (tramp-test01-file-name-syntax-separate): Check also an IPv4 mapped IPv6 address.
-rw-r--r--test/lisp/net/tramp-tests.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 732b4f313ff..f470385be9f 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -237,6 +237,10 @@ properly. BODY shall not contain a timeout."
237 (should (tramp-tramp-file-p "/method:[::1]:")) 237 (should (tramp-tramp-file-p "/method:[::1]:"))
238 (should (tramp-tramp-file-p "/method:user@[::1]:")) 238 (should (tramp-tramp-file-p "/method:user@[::1]:"))
239 239
240 ;; Using an IPv4 mapped IPv6 address.
241 (should (tramp-tramp-file-p "/method:[::ffff:192.168.0.1]:"))
242 (should (tramp-tramp-file-p "/method:user@[::ffff:192.168.0.1]:"))
243
240 ;; Local file name part. 244 ;; Local file name part.
241 (should (tramp-tramp-file-p "/method:::")) 245 (should (tramp-tramp-file-p "/method:::"))
242 (should (tramp-tramp-file-p "/method::/:")) 246 (should (tramp-tramp-file-p "/method::/:"))
@@ -264,6 +268,7 @@ properly. BODY shall not contain a timeout."
264 (should-not (tramp-tramp-file-p "/1.2.3.4:")) 268 (should-not (tramp-tramp-file-p "/1.2.3.4:"))
265 (should-not (tramp-tramp-file-p "/[]:")) 269 (should-not (tramp-tramp-file-p "/[]:"))
266 (should-not (tramp-tramp-file-p "/[::1]:")) 270 (should-not (tramp-tramp-file-p "/[::1]:"))
271 (should-not (tramp-tramp-file-p "/[::ffff:192.168.0.1]:"))
267 (should-not (tramp-tramp-file-p "/host:/:")) 272 (should-not (tramp-tramp-file-p "/host:/:"))
268 (should-not (tramp-tramp-file-p "/host1|host2:")) 273 (should-not (tramp-tramp-file-p "/host1|host2:"))
269 (should-not (tramp-tramp-file-p "/user1@host1|user2@host2:")) 274 (should-not (tramp-tramp-file-p "/user1@host1|user2@host2:"))
@@ -312,6 +317,10 @@ properly. BODY shall not contain a timeout."
312 (should (tramp-tramp-file-p "/[::1]:")) 317 (should (tramp-tramp-file-p "/[::1]:"))
313 (should (tramp-tramp-file-p "/user@[::1]:")) 318 (should (tramp-tramp-file-p "/user@[::1]:"))
314 319
320 ;; Using an IPv4 mapped IPv6 address.
321 (should (tramp-tramp-file-p "/[::ffff:192.168.0.1]:"))
322 (should (tramp-tramp-file-p "/user@[::ffff:192.168.0.1]:"))
323
315 ;; Local file name part. 324 ;; Local file name part.
316 (should (tramp-tramp-file-p "/host::")) 325 (should (tramp-tramp-file-p "/host::"))
317 (should (tramp-tramp-file-p "/host:/:")) 326 (should (tramp-tramp-file-p "/host:/:"))
@@ -362,6 +371,10 @@ properly. BODY shall not contain a timeout."
362 (should (tramp-tramp-file-p "/[method/::1]")) 371 (should (tramp-tramp-file-p "/[method/::1]"))
363 (should (tramp-tramp-file-p "/[method/user@::1]")) 372 (should (tramp-tramp-file-p "/[method/user@::1]"))
364 373
374 ;; Using an IPv4 mapped IPv6 address.
375 (should (tramp-tramp-file-p "/[method/::ffff:192.168.0.1]"))
376 (should (tramp-tramp-file-p "/[method/user@::ffff:192.168.0.1]"))
377
365 ;; Local file name part. 378 ;; Local file name part.
366 (should (tramp-tramp-file-p "/[method/]")) 379 (should (tramp-tramp-file-p "/[method/]"))
367 (should (tramp-tramp-file-p "/[method/]/:")) 380 (should (tramp-tramp-file-p "/[method/]/:"))