test494 708 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. EPSV
  6. netrc
  7. macdef
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. blipp
  15. </data>
  16. </reply>
  17. #
  18. # Client-side
  19. <client>
  20. <server>
  21. ftp
  22. </server>
  23. <name>
  24. skip 'macdef' when parsing netrc
  25. </name>
  26. <command>
  27. --netrc --netrc-file log/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
  28. </command>
  29. <file name="log/netrc%TESTNUMBER" >
  30. macdef testmacro
  31. bin
  32. cd default
  33. cd login
  34. put login.bin
  35. cd ..
  36. cd password
  37. put password.bin
  38. quit
  39. machine %HOSTIP login user1 password passwd1
  40. </file>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. USER user1
  47. PASS passwd1
  48. PWD
  49. EPSV
  50. TYPE I
  51. SIZE %TESTNUMBER
  52. RETR %TESTNUMBER
  53. QUIT
  54. </protocol>
  55. </verify>
  56. </testcase>