test286 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <testcase>
  2. <info>
  3. <keywords>
  4. TFTP
  5. TFTP WRQ
  6. </keywords>
  7. </info>
  8. #
  9. # Client-side
  10. <client>
  11. <server>
  12. tftp
  13. </server>
  14. <name>
  15. TFTP send of boundary case 512 byte file
  16. </name>
  17. <command>
  18. -T %LOGDIR/test%TESTNUMBER.txt tftp://%HOSTIP:%TFTPPORT//
  19. </command>
  20. <file name="%LOGDIR/test%TESTNUMBER.txt">
  21. A chunk of data which exactly fits into
  22. a 512 byte TFTP block, testing a boundary
  23. condition in the TFTP transmit code.
  24. 89ABCDEF
  25. 123456789ABCDEF
  26. 123456789ABCDEF
  27. 123456789ABCDEF
  28. 123456789ABCDEF
  29. 123456789ABCDEF
  30. 123456789ABCDEF
  31. 123456789ABCDEF
  32. 123456789ABCDEF
  33. 123456789ABCDEF
  34. 123456789ABCDEF
  35. 123456789ABCDEF
  36. 123456789ABCDEF
  37. 123456789ABCDEF
  38. 123456789ABCDEF
  39. 123456789ABCDEF
  40. 123456789ABCDEF
  41. 123456789ABCDEF
  42. 123456789ABCDEF
  43. 123456789ABCDEF
  44. 123456789ABCDEF
  45. 123456789ABCDEF
  46. 123456789ABCDEF
  47. 123456789ABCDEF
  48. 123456789ABCDEF
  49. </file>
  50. </client>
  51. #
  52. # Verify pseudo protocol after the test has been "shot"
  53. <verify>
  54. <upload>
  55. A chunk of data which exactly fits into
  56. a 512 byte TFTP block, testing a boundary
  57. condition in the TFTP transmit code.
  58. 89ABCDEF
  59. 123456789ABCDEF
  60. 123456789ABCDEF
  61. 123456789ABCDEF
  62. 123456789ABCDEF
  63. 123456789ABCDEF
  64. 123456789ABCDEF
  65. 123456789ABCDEF
  66. 123456789ABCDEF
  67. 123456789ABCDEF
  68. 123456789ABCDEF
  69. 123456789ABCDEF
  70. 123456789ABCDEF
  71. 123456789ABCDEF
  72. 123456789ABCDEF
  73. 123456789ABCDEF
  74. 123456789ABCDEF
  75. 123456789ABCDEF
  76. 123456789ABCDEF
  77. 123456789ABCDEF
  78. 123456789ABCDEF
  79. 123456789ABCDEF
  80. 123456789ABCDEF
  81. 123456789ABCDEF
  82. 123456789ABCDEF
  83. </upload>
  84. <strip>
  85. ^timeout = [5-6]$
  86. </strip>
  87. <protocol>
  88. opcode = 2
  89. mode = octet
  90. tsize = 512
  91. blksize = 512
  92. filename = /test%TESTNUMBER.txt
  93. </protocol>
  94. </verify>
  95. </testcase>