test1238 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. TFTP
  5. TFTP RRQ
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <servercmd>
  12. writedelay: 2000
  13. </servercmd>
  14. # ~1200 bytes (so that they don't fit in two 512 byte chunks)
  15. <data nocheck="yes">
  16. 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
  17. </data>
  18. </reply>
  19. #
  20. # Client-side
  21. <client>
  22. <server>
  23. tftp
  24. </server>
  25. # Always kill the TFTP server to not affect following tests, due
  26. # to this test potentially keeping the TFTP server busy waiting
  27. # for another 5 seconds after this test has already terminated.
  28. # On some platforms and CI not enough time passes between this
  29. # test and the next tests 1242 and 1243, causing them to fail.
  30. <killserver>
  31. tftp
  32. </killserver>
  33. <name>
  34. slow TFTP retrieve cancel due to -Y and -y
  35. </name>
  36. # if less than 1000 bytes/sec within 2 seconds, abort!
  37. <command>
  38. tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER -Y1000 -y2
  39. </command>
  40. </client>
  41. #
  42. # Verify pseudo protocol after the test has been "shot"
  43. <verify>
  44. <protocol>
  45. opcode = 1
  46. mode = octet
  47. tsize = 0
  48. blksize = 512
  49. timeout = 6
  50. filename = /%TESTNUMBER
  51. </protocol>
  52. # 28 = CURLE_OPERATION_TIMEDOUT
  53. <errorcode>
  54. 28
  55. </errorcode>
  56. </verify>
  57. </testcase>