初始化内容
This commit is contained in:
Vendored
+85
@@ -0,0 +1,85 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user