test2004 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <testcase>
  2. <info>
  3. <keywords>
  4. TFTP
  5. TFTP RRQ
  6. FILE
  7. SFTP
  8. SCP
  9. multiprotocol
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <data nocheck="yes">
  16. Test data file
  17. for tftp test
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. tftp
  25. sftp
  26. </server>
  27. <name>
  28. TFTP RRQ followed by SFTP retrieval followed by FILE followed by SCP retrieval then again in reverse order
  29. </name>
  30. <command>
  31. --key curl_client_key --pubkey curl_client_key.pub -u %USER: tftp://%HOSTIP:%TFTPPORT//2004 sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test2004.txt file://localhost/%PWD/log/test2004.txt scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test2004.txt file://localhost/%PWD/log/test2004.txt sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test2004.txt tftp://%HOSTIP:%TFTPPORT//2004 --insecure
  32. </command>
  33. <file name="log/test2004.txt">
  34. This is test data
  35. for several protocols
  36. </file>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. opcode: 1
  43. mode: octet
  44. tsize: 0
  45. blksize: 512
  46. timeout: 6
  47. filename: /2004
  48. opcode: 1
  49. mode: octet
  50. tsize: 0
  51. blksize: 512
  52. timeout: 6
  53. filename: /2004
  54. </protocol>
  55. <stdout>
  56. Test data file
  57. for tftp test
  58. This is test data
  59. for several protocols
  60. This is test data
  61. for several protocols
  62. This is test data
  63. for several protocols
  64. This is test data
  65. for several protocols
  66. This is test data
  67. for several protocols
  68. Test data file
  69. for tftp test
  70. </stdout>
  71. <valgrind>
  72. disable
  73. </valgrind>
  74. </verify>
  75. </testcase>