mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
Added test cases 1038 and 1039 to test Adrian Kreher's report that ftp
uploads with -C - didn't resume properly, but the tests pass.
This commit is contained in:
parent
b4b6cfdb1c
commit
8d49a8f278
3
CHANGES
3
CHANGES
@ -13,6 +13,9 @@ Daniel Fandrich (10 Jul 2008)
|
||||
reported when setting some modes, but regardless, it saves a protocol
|
||||
round trip in the chmod case.
|
||||
|
||||
- Added test cases 1038 and 1039 to test Adrian Kreher's report that ftp
|
||||
uploads with -C - didn't resume properly, but the tests pass.
|
||||
|
||||
Yang Tse (10 Jul 2008)
|
||||
- Peter Lamberg filed bug report #2015126: "poll gives WSAEINVAL when POLLPRI
|
||||
is set in fdset.events" (http://curl.haxx.se/bug/view.cgi?id=2015126) which
|
||||
|
@ -52,7 +52,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
|
||||
test620 test621 test622 test623 test624 test625 test626 test627 test554 \
|
||||
test1024 test1025 test555 test1026 test1027 test1028 test1029 test1030 \
|
||||
test556 test1031 test628 test629 test630 test631 test632 test1032 test1033 \
|
||||
test539 test1034 test1035 test1036 test1037
|
||||
test539 test1034 test1035 test1036 test1037 test1038 test1039
|
||||
|
||||
filecheck:
|
||||
@mkdir test-place; \
|
||||
|
53
tests/data/test1038
Normal file
53
tests/data/test1038
Normal file
@ -0,0 +1,53 @@
|
||||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
EPSV
|
||||
APPE
|
||||
Resume
|
||||
</keywords>
|
||||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<size>
|
||||
17
|
||||
</size>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP PASV upload resume from end of file
|
||||
</name>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/1038 -T log/upload1038 -C -
|
||||
</command>
|
||||
<file name="log/upload1038">
|
||||
this is the *****cr@p******** that we're gonna upload
|
||||
|
||||
worx?
|
||||
</file>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE I
|
||||
SIZE 1038
|
||||
APPE 1038
|
||||
QUIT
|
||||
</protocol>
|
||||
<upload>
|
||||
cr@p******** that we're gonna upload
|
||||
|
||||
worx?
|
||||
</upload>
|
||||
</verify>
|
||||
</testcase>
|
53
tests/data/test1039
Normal file
53
tests/data/test1039
Normal file
@ -0,0 +1,53 @@
|
||||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
EPSV
|
||||
APPE
|
||||
Resume
|
||||
</keywords>
|
||||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<size>
|
||||
0
|
||||
</size>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP PASV upload resume from end of empty file
|
||||
</name>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/1039 -T log/upload1039 -C -
|
||||
</command>
|
||||
<file name="log/upload1039">
|
||||
this is the *****cr@p******** that we're gonna upload
|
||||
|
||||
worx?
|
||||
</file>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE I
|
||||
SIZE 1039
|
||||
STOR 1039
|
||||
QUIT
|
||||
</protocol>
|
||||
<upload>
|
||||
this is the *****cr@p******** that we're gonna upload
|
||||
|
||||
worx?
|
||||
</upload>
|
||||
</verify>
|
||||
</testcase>
|
Loading…
Reference in New Issue
Block a user