Added test for TFTP retrieve of boundary case 512 byte file.

This commit is contained in:
Dan Fandrich 2007-01-10 23:40:22 +00:00
Родитель 9e61c904ac
Коммит 5ec5b95f54
2 изменённых файлов: 66 добавлений и 1 удалений

Просмотреть файл

@ -36,4 +36,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test265 test266 test267 test268 test269 test270 test271 test272 test273 \
test274 test275 test524 test525 test276 test277 test526 test527 test528 \
test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \
test534 test535 test281 test537 test282 test283 test538
test534 test535 test281 test537 test282 test283 test284 test538

65
tests/data/test284 Normal file
Просмотреть файл

@ -0,0 +1,65 @@
<info>
<keywords>
TFTP
TFTP RRQ
</keywords>
</info>
#
# Server-side
<reply>
<data>
A chunk of data which exactly fits into
a 512 byte TFTP block, testing a boundary
condition in the TFTP receive code.
789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
123456789ABCDEF
</data>
</reply>
#
# Client-side
<client>
<server>
tftp
</server>
<name>
TFTP retrieve of boundary case 512 byte file
</name>
<command>
tftp://%HOSTIP:%TFTPPORT//284 --trace-ascii log/traceit
</command>
</client>
#
# Verify pseudo protocol after the test has been "shot"
<verify>
<protocol>
opcode: 1
filename: /284
mode: octet
</protocol>
</verify>