test2004 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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%PWD/log/test2004.txt file://localhost/%PWD/log/test2004.txt scp://%HOSTIP:%SSHPORT%PWD/log/test2004.txt file://localhost/%PWD/log/test2004.txt sftp://%HOSTIP:%SSHPORT%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. filename: /2004
  44. mode: octet
  45. opcode: 1
  46. filename: /2004
  47. mode: octet
  48. </protocol>
  49. <stdout>
  50. Test data file
  51. for tftp test
  52. This is test data
  53. for several protocols
  54. This is test data
  55. for several protocols
  56. This is test data
  57. for several protocols
  58. This is test data
  59. for several protocols
  60. This is test data
  61. for several protocols
  62. Test data file
  63. for tftp test
  64. </stdout>
  65. <valgrind>
  66. disable
  67. </valgrind>
  68. </verify>
  69. </testcase>