mirror of
https://github.com/curl/curl.git
synced 2026-04-12 12:21:42 +08:00
The idea here is to set limits per test how many allocations and maximum
amount of memory it is allowed to use. This is a means to make sure the
number and total size of allocations are kept in check and don't
mistakenly "blow up".
If runtests.pl detects that the given limits have been exceeded it fails
the test case with an error.
The `<verify>` part now supports `<limits>`, and in this section two
limits can be set for each test (verified in debug builds only):
Allocations: [number of allocation calls]
Maximum allocated: [maximum concurrent memory allocated]
Default limits (used if nothing is set in the test file):
Allocations: 1000
Maximum allocated: 1000000
Closes #17821
128 lines
1.8 KiB
Plaintext
128 lines
1.8 KiB
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
RETR
|
|
multi
|
|
wildcardmatch
|
|
ftplistparser
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<tool>
|
|
lib%TESTNUMBER
|
|
</tool>
|
|
<name>
|
|
FTP wildcard download - dup_handle and multi interface
|
|
</name>
|
|
<command>
|
|
ftp://%HOSTIP:%FTPPORT/fully_simulated/UNIX/*
|
|
</command>
|
|
</client>
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<strip>
|
|
QUIT
|
|
</strip>
|
|
<errorcode>
|
|
0
|
|
</errorcode>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
CWD fully_simulated
|
|
CWD UNIX
|
|
EPSV
|
|
TYPE A
|
|
LIST
|
|
EPSV
|
|
TYPE I
|
|
RETR chmod1
|
|
EPSV
|
|
RETR chmod2
|
|
EPSV
|
|
RETR chmod3
|
|
EPSV
|
|
RETR empty_file.dat
|
|
EPSV
|
|
RETR file.txt
|
|
EPSV
|
|
RETR someothertext.txt
|
|
CWD /
|
|
CWD fully_simulated
|
|
CWD UNIX
|
|
EPSV
|
|
TYPE A
|
|
LIST
|
|
EPSV
|
|
TYPE I
|
|
RETR chmod1
|
|
EPSV
|
|
RETR chmod2
|
|
EPSV
|
|
RETR chmod3
|
|
EPSV
|
|
RETR empty_file.dat
|
|
EPSV
|
|
RETR file.txt
|
|
EPSV
|
|
RETR someothertext.txt
|
|
QUIT
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
CWD fully_simulated
|
|
CWD UNIX
|
|
EPSV
|
|
TYPE A
|
|
LIST
|
|
EPSV
|
|
TYPE I
|
|
RETR chmod1
|
|
EPSV
|
|
RETR chmod2
|
|
EPSV
|
|
RETR chmod3
|
|
EPSV
|
|
RETR empty_file.dat
|
|
EPSV
|
|
RETR file.txt
|
|
EPSV
|
|
RETR someothertext.txt
|
|
QUIT
|
|
</protocol>
|
|
<stdout>
|
|
This file should have permissions 444
|
|
This file should have permissions 666
|
|
This file should have permissions 777
|
|
This is content of file "file.txt"
|
|
Some junk ;-) This file does not really exist.
|
|
This file should have permissions 444
|
|
This file should have permissions 666
|
|
This file should have permissions 777
|
|
This is content of file "file.txt"
|
|
Some junk ;-) This file does not really exist.
|
|
This file should have permissions 444
|
|
This file should have permissions 666
|
|
This file should have permissions 777
|
|
This is content of file "file.txt"
|
|
Some junk ;-) This file does not really exist.
|
|
</stdout>
|
|
<limits>
|
|
Allocations: 1500
|
|
</limits>
|
|
</verify>
|
|
</testcase>
|