mirror of
https://github.com/curl/curl.git
synced 2025-09-21 03:22:41 +03:00
Added TFTP upload tests.
This commit is contained in:
parent
b0d13fa4cb
commit
f11d3c329c
|
@ -36,4 +36,5 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
|
||||||
test265 test266 test267 test268 test269 test270 test271 test272 test273 \
|
test265 test266 test267 test268 test269 test270 test271 test272 test273 \
|
||||||
test274 test275 test524 test525 test276 test277 test526 test527 test528 \
|
test274 test275 test524 test525 test276 test277 test526 test527 test528 \
|
||||||
test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \
|
test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \
|
||||||
test534 test535 test281 test537 test282 test283 test284 test538
|
test534 test535 test281 test537 test282 test283 test284 test538 test285 \
|
||||||
|
test286
|
||||||
|
|
42
tests/data/test285
Normal file
42
tests/data/test285
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
TFTP
|
||||||
|
TFTP WRQ
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
tftp
|
||||||
|
</server>
|
||||||
|
<name>
|
||||||
|
TFTP send
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
-T log/test285.txt tftp://%HOSTIP:%TFTPPORT// --trace-ascii log/traceit
|
||||||
|
</command>
|
||||||
|
<file name="log/test285.txt">
|
||||||
|
a chunk of
|
||||||
|
data
|
||||||
|
sent
|
||||||
|
to server
|
||||||
|
</file>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify pseudo protocol after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
<upload>
|
||||||
|
a chunk of
|
||||||
|
data
|
||||||
|
sent
|
||||||
|
to server
|
||||||
|
</upload>
|
||||||
|
<protocol>
|
||||||
|
opcode: 2
|
||||||
|
filename: /test285.txt
|
||||||
|
mode: octet
|
||||||
|
</protocol>
|
||||||
|
</verify>
|
90
tests/data/test286
Normal file
90
tests/data/test286
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
TFTP
|
||||||
|
TFTP WRQ
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
tftp
|
||||||
|
</server>
|
||||||
|
<name>
|
||||||
|
TFTP send of boundary case 512 byte file
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
-T log/test286.txt tftp://%HOSTIP:%TFTPPORT// --trace-ascii log/traceit
|
||||||
|
</command>
|
||||||
|
<file name="log/test286.txt">
|
||||||
|
A chunk of data which exactly fits into
|
||||||
|
a 512 byte TFTP block, testing a boundary
|
||||||
|
condition in the TFTP transmit code.
|
||||||
|
89ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
</file>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify pseudo protocol after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
<upload>
|
||||||
|
A chunk of data which exactly fits into
|
||||||
|
a 512 byte TFTP block, testing a boundary
|
||||||
|
condition in the TFTP transmit code.
|
||||||
|
89ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
123456789ABCDEF
|
||||||
|
</upload>
|
||||||
|
<protocol>
|
||||||
|
opcode: 2
|
||||||
|
filename: /test286.txt
|
||||||
|
mode: octet
|
||||||
|
</protocol>
|
||||||
|
</verify>
|
Loading…
Reference in New Issue
Block a user