1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Tweaked some test data files

Fixed some issues that caused xmllint failures, added features
and keywords, fixed some quotes and removed some <strip> sections
that unnecessarily limited test checking.
This commit is contained in:
Dan Fandrich 2010-08-25 16:43:26 -07:00
parent f43ecac175
commit ae467115bb
7 changed files with 159 additions and 64 deletions

View File

@ -2,6 +2,8 @@
<info> <info>
<keywords> <keywords>
FTP FTP
RETR
LIST
wildcardmatch wildcardmatch
ftplistparser ftplistparser
</keywords> </keywords>
@ -26,7 +28,7 @@ lib574
FTP wildcard download - changed fnmatch, 2x perform (DOS LIST response) FTP wildcard download - changed fnmatch, 2x perform (DOS LIST response)
</name> </name>
<command> <command>
ftp://%HOSTIP:%FTPPORT/fully_simulated/DOS/*.txt "ftp://%HOSTIP:%FTPPORT/fully_simulated/DOS/*.txt"
</command> </command>
</client> </client>
@ -36,24 +38,49 @@ ftp://%HOSTIP:%FTPPORT/fully_simulated/DOS/*.txt
<errorcode> <errorcode>
0 0
</errorcode> </errorcode>
<strip> # THERE SHOULD NOT BE "SIZE"! and one "USER/PASS"
^RETR.*
^EPSV.*
^PWD.*
^CWD.*
^TYPE.*
^LIST.*
</strip>
<strippart>
s/USER.*/USER/
s/PASS.*/PASS/
s/QUIT.*/QUIT/
</strippart>
# THERE SHOULD NOT BE "SIZE"! and once "USER && PASS"
<protocol> <protocol>
USER USER anonymous
PASS PASS ftp@example.com
QUIT PWD
CWD fully_simulated
CWD DOS
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 DOS
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> </protocol>
<stdout mode="text"> <stdout mode="text">
This file should have permissions 444 This file should have permissions 444

View File

@ -1,4 +1,3 @@
# Gopher directory fetch
<testcase> <testcase>
<info> <info>
<keywords> <keywords>

View File

@ -1,4 +1,3 @@
# Gopher selector fetch
<testcase> <testcase>
<info> <info>
<keywords> <keywords>

View File

@ -1,4 +1,3 @@
# Gopher query fetch
<testcase> <testcase>
<info> <info>
<keywords> <keywords>
@ -27,7 +26,7 @@ gopher
Gopher query Gopher query
</name> </name>
<command> <command>
gopher://%HOSTIP:%GOPHERPORT/7/the/search/engine?query%20succeeded/1202 "gopher://%HOSTIP:%GOPHERPORT/7/the/search/engine?query%20succeeded/1202"
</command> </command>
</client> </client>

View File

@ -1,4 +1,3 @@
# Gopher IPv6 connectivity test
<testcase> <testcase>
<info> <info>
<keywords> <keywords>
@ -20,6 +19,9 @@ iMenu results error.host 1
# Client-side # Client-side
<client> <client>
<features>
ipv6
</features>
<server> <server>
gopher-ipv6 gopher-ipv6
</server> </server>
@ -27,7 +29,7 @@ gopher-ipv6
Gopher IPv6 index Gopher IPv6 index
</name> </name>
<command> <command>
-g "gopher://%HOSTIP:%GOPHER6PORT/1/moo/1203" -g gopher://%HOSTIP:%GOPHER6PORT/1/moo/1203
</command> </command>
</client> </client>

View File

@ -2,6 +2,8 @@
<info> <info>
<keywords> <keywords>
FTP FTP
LIST
RETR
wildcardmatch wildcardmatch
ftplistparser ftplistparser
</keywords> </keywords>
@ -36,24 +38,49 @@ ftp://%HOSTIP:%FTPPORT/fully_simulated/UNIX/*.txt
<errorcode> <errorcode>
0 0
</errorcode> </errorcode>
<strip> # THERE SHOULD NOT BE "SIZE"! and one "USER/PASS"
^RETR.*
^EPSV.*
^PWD.*
^CWD.*
^TYPE.*
^LIST.*
</strip>
<strippart>
s/USER.*/USER/
s/PASS.*/PASS/
s/QUIT.*/QUIT/
</strippart>
# THERE SHOULD NOT BE "SIZE"! and once "USER && PASS"
<protocol> <protocol>
USER USER anonymous
PASS PASS ftp@example.com
QUIT 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
</protocol> </protocol>
<stdout mode="text"> <stdout mode="text">
This file should have permissions 444 This file should have permissions 444

View File

@ -2,6 +2,7 @@
<info> <info>
<keywords> <keywords>
FTP FTP
RETR
multi multi
wildcardmatch wildcardmatch
ftplistparser ftplistparser
@ -23,7 +24,7 @@ ftp
lib575 lib575
</tool> </tool>
<name> <name>
FTP wildcard download - dup_handle && multi interface FTP wildcard download - dup_handle and multi interface
</name> </name>
<command> <command>
ftp://%HOSTIP:%FTPPORT/fully_simulated/UNIX/* ftp://%HOSTIP:%FTPPORT/fully_simulated/UNIX/*
@ -31,32 +32,73 @@ ftp://%HOSTIP:%FTPPORT/fully_simulated/UNIX/*
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
<strip>
^RETR.*
^EPSV.*
^CWD.*
^PWD.*
^TYPE.*
</strip>
<strippart>
s/^USER.*/USER/
s/^PASS.*/PASS/
s/^LIST.*/LIST/
s/^QUIT.*/QUIT/
</strippart>
<errorcode> <errorcode>
0 0
</errorcode> </errorcode>
<protocol> <protocol>
USER USER anonymous
PASS PASS ftp@example.com
LIST PWD
LIST CWD fully_simulated
QUIT CWD UNIX
USER EPSV
PASS TYPE A
LIST LIST
QUIT 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> </protocol>
<stdout mode="text"> <stdout mode="text">
This file should have permissions 444 This file should have permissions 444