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:
Daniel Stenberg 2024-08-29 09:53:28 +02:00
parent cc8b813765
commit ee17f35d43
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 53 additions and 2 deletions

45
tests/data/test475 Normal file
View 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>