lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | TFTP |
| 5 | TFTP WRQ |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Client-side |
| 11 | <client> |
| 12 | <server> |
| 13 | tftp |
| 14 | </server> |
| 15 | <name> |
| 16 | TFTP send of boundary case 512 byte file |
| 17 | </name> |
| 18 | <command> |
| 19 | -T log/test286.txt tftp://%HOSTIP:%TFTPPORT// |
| 20 | </command> |
| 21 | <file name="log/test286.txt"> |
| 22 | A chunk of data which exactly fits into |
| 23 | a 512 byte TFTP block, testing a boundary |
| 24 | condition in the TFTP transmit code. |
| 25 | 89ABCDEF |
| 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 | 123456789ABCDEF |
| 50 | </file> |
| 51 | </client> |
| 52 | |
| 53 | # |
| 54 | # Verify pseudo protocol after the test has been "shot" |
| 55 | <verify> |
| 56 | <upload> |
| 57 | A chunk of data which exactly fits into |
| 58 | a 512 byte TFTP block, testing a boundary |
| 59 | condition in the TFTP transmit code. |
| 60 | 89ABCDEF |
| 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 | 123456789ABCDEF |
| 84 | 123456789ABCDEF |
| 85 | </upload> |
| 86 | <protocol> |
| 87 | opcode: 2 |
| 88 | mode: octet |
| 89 | tsize: 512 |
| 90 | blksize: 512 |
| 91 | timeout: 6 |
| 92 | filename: /test286.txt |
| 93 | </protocol> |
| 94 | </verify> |
| 95 | </testcase> |