test1380 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. RETR
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. fooo
  12. mooo
  13. </data>
  14. </reply>
  15. # Client-side
  16. <client>
  17. <server>
  18. ftp
  19. </server>
  20. <name>
  21. FTP DL, file without C-D inside, using -o fname -D stdout
  22. </name>
  23. <command option="no-output,no-include">
  24. ftp://%HOSTIP:%FTPPORT/path/file1380 -o log/download1380 -D -
  25. </command>
  26. <postcheck>
  27. perl %SRCDIR/libtest/notexists.pl log/file1380
  28. </postcheck>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <protocol>
  33. USER anonymous
  34. PASS ftp@example.com
  35. PWD
  36. CWD path
  37. EPSV
  38. TYPE I
  39. SIZE file1380
  40. RETR file1380
  41. QUIT
  42. </protocol>
  43. <file1 name="log/download1380">
  44. fooo
  45. mooo
  46. </file1>
  47. <file2 name="log/stdout1380">
  48. 220- _ _ ____ _
  49. 220- ___| | | | _ \| |
  50. 220- / __| | | | |_) | |
  51. 220- | (__| |_| | _ <| |___
  52. 220 \___|\___/|_| \_\_____|
  53. 331 We are happy you popped in!
  54. 230 Welcome you silly person
  55. 257 "/" is current directory
  56. 250 CWD command successful.
  57. 229 Entering Passive Mode (stripped)
  58. 200 I modify TYPE as you wanted
  59. 213 10
  60. 150 Binary data connection for 1380 () (10 bytes).
  61. 226 File transfer complete
  62. 221 bye bye baby
  63. </file2>
  64. <stripfile2>
  65. s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
  66. </stripfile2>
  67. </verify>
  68. </testcase>