mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
To formalize they are now XML-compliant (with some asterisks.) Also to help syntax highlighters work on them to make their content more readable. Also: - Delete empty comment decorations. - GHA/checksrc: simplify XML check. - runtests: fail to load test data with XML prolog missing. Follow-up tobfe6eb1c06#19927 Follow-up to87ba80a6dfCloses #19946
86 lines
1.6 KiB
XML
86 lines
1.6 KiB
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
# Derived from test227
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
post-quote
|
|
pre-quote
|
|
--libcurl
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
data
|
|
to
|
|
see
|
|
that FTP
|
|
works
|
|
so does it?
|
|
</data>
|
|
<servercmd>
|
|
REPLY EPSV 500 no such command
|
|
REPLY FAIL 500 this might not be a failure!
|
|
</servercmd>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
--libcurl
|
|
</features>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<name>
|
|
--libcurl for FTP with quote ops
|
|
</name>
|
|
<setenv>
|
|
SSL_CERT_FILE
|
|
</setenv>
|
|
<command>
|
|
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -Q "NOOP 1" -Q "+NOOP 2" -Q "-NOOP 3" -Q "*FAIL" -Q "+*FAIL HARD" --libcurl %LOGDIR/test%TESTNUMBER.c
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol crlf="yes">
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
NOOP 1
|
|
FAIL
|
|
EPSV
|
|
PASV
|
|
TYPE I
|
|
NOOP 2
|
|
FAIL HARD
|
|
SIZE %TESTNUMBER
|
|
RETR %TESTNUMBER
|
|
NOOP 3
|
|
QUIT
|
|
</protocol>
|
|
<stripfile>
|
|
# CURLOPT_USERAGENT and CURLOPT_MAXREDIRS requires HTTP protocol
|
|
# CURLOPT_INTERLEAVEDATA requires RTSP (HTTP) protocol
|
|
# support, IOW depends on configuration - just ignore these.
|
|
$_ = '' if /CURLOPT_USERAGENT/
|
|
$_ = '' if /CURLOPT_MAXREDIRS/
|
|
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
|
# configurations - just ignore them
|
|
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
|
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
|
$_ = '' if /CURLOPT_HTTP_VERSION/
|
|
$_ = '' if /CURLOPT_HTTP09_ALLOWED/
|
|
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
|
$_ = '' if /CURLOPT_SSLVERSION/
|
|
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
|
</stripfile>
|
|
<file name="%LOGDIR/test%TESTNUMBER.c" mode="text">
|
|
%includetext %SRCDIR/data/data%TESTNUMBER.c%
|
|
</file>
|
|
</verify>
|
|
</testcase>
|