test1048 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. FTP-ipv6
  6. IPv6
  7. PASV
  8. LIST
  9. --interface
  10. IPv6
  11. </keywords>
  12. </info>
  13. #
  14. # Server-side
  15. <reply>
  16. # When doing LIST, we get the default list output hard-coded in the test
  17. # FTP server
  18. <datacheck mode="text">
  19. total 20
  20. drwxr-xr-x 8 98 98 512 Oct 22 13:06 .
  21. drwxr-xr-x 8 98 98 512 Oct 22 13:06 ..
  22. drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT
  23. -r--r--r-- 1 0 1 35 Jul 16 1996 README
  24. lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin
  25. dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev
  26. drwxrwxrwx 2 98 98 512 May 29 16:04 download.html
  27. dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc
  28. drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub
  29. dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
  30. </datacheck>
  31. </reply>
  32. #
  33. # Client-side
  34. <client>
  35. <features>
  36. ipv6
  37. </features>
  38. <server>
  39. ftp-ipv6
  40. </server>
  41. <name>
  42. FTP-IPv6 dir list PASV with localhost --interface
  43. </name>
  44. <command>
  45. -g "ftp://%HOST6IP:%FTP6PORT/" --interface ::1
  46. </command>
  47. # --interface doesn't accept an address surrounded by [] so %CLIENT6IP is out
  48. <precheck>
  49. perl -e "print 'Test requires default test server host address' if ( '%CLIENT6IP' ne '[::1]' );"
  50. </precheck>
  51. </client>
  52. #
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. <protocol>
  56. USER anonymous
  57. PASS ftp@example.com
  58. PWD
  59. EPSV
  60. TYPE A
  61. LIST
  62. QUIT
  63. </protocol>
  64. </verify>
  65. </testcase>