mirror of
https://github.com/curl/curl.git
synced 2025-01-24 14:15:18 +08:00
3fd80c7b59
The threee tags `<name>`, `</name>` and `<command>` were frequently used with a leading space that this removes. The reason this habbit is so widespread in testcases is probably that they have been copy and pasted. Hence, fixing them all now might curb this practice from now on. Closes #12028
53 lines
792 B
Plaintext
53 lines
792 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
EPSV
|
|
RETR
|
|
--remote-time
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
file data
|
|
</data>
|
|
<mdtm>
|
|
213 20090213233130
|
|
</mdtm>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<name>
|
|
FTP with --remote-time
|
|
</name>
|
|
<command>
|
|
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --remote-time
|
|
</command>
|
|
# Verify the mtime of the file. The mtime is specifically chosen to be an even
|
|
# number so that it can be represented exactly on a FAT filesystem.
|
|
<postcheck>
|
|
perl -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 1234567890)'
|
|
</postcheck>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
MDTM %TESTNUMBER
|
|
EPSV
|
|
TYPE I
|
|
SIZE %TESTNUMBER
|
|
RETR %TESTNUMBER
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|