test2004 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 option="no-include">
  31. --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.txt file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt scp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.txt file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.txt tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER --insecure
  32. </command>
  33. <file name="%LOGDIR/test%TESTNUMBER.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. <strip>
  42. ^timeout = [5-6]$
  43. </strip>
  44. <protocol>
  45. opcode = 1
  46. mode = octet
  47. tsize = 0
  48. blksize = 512
  49. filename = /%TESTNUMBER
  50. opcode = 1
  51. mode = octet
  52. tsize = 0
  53. blksize = 512
  54. filename = /%TESTNUMBER
  55. </protocol>
  56. <stdout>
  57. Test data file
  58. for tftp test
  59. This is test data
  60. for several protocols
  61. This is test data
  62. for several protocols
  63. This is test data
  64. for several protocols
  65. This is test data
  66. for several protocols
  67. This is test data
  68. for several protocols
  69. Test data file
  70. for tftp test
  71. </stdout>
  72. <valgrind>
  73. disable
  74. </valgrind>
  75. </verify>
  76. </testcase>