mirror of
https://github.com/curl/curl.git
synced 2026-07-23 00:27:24 +03:00
test475: verify a 72K ASCII FTP upload
Extended the test format and runtest.pl so that the verify/upload part can be marked using crlf newlines even when the client/file does not have it. Closes #14717
This commit is contained in:
parent
cc8b813765
commit
ee17f35d43
4 changed files with 53 additions and 2 deletions
45
tests/data/test475
Normal file
45
tests/data/test475
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
EPSV
|
||||
STOR
|
||||
TYPE A
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP PASV upload ASCII file
|
||||
</name>
|
||||
<file name="%LOGDIR/test%TESTNUMBER.txt">
|
||||
%repeat[1750 x a line of text used for verifying this !%0a]%
|
||||
</file>
|
||||
<command>
|
||||
"ftp://%HOSTIP:%FTPPORT/%TESTNUMBER;type=a" -T %LOGDIR/test%TESTNUMBER.txt
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strip>
|
||||
QUIT
|
||||
</strip>
|
||||
<upload crlf="yes">
|
||||
%repeat[1750 x a line of text used for verifying this !%0a]%
|
||||
</upload>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE A
|
||||
STOR %TESTNUMBER
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue