Commit 6475600a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

New test cases added

parent e450888b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ test:
	[ -f test1 ] || ln -s $(srcdir)/test* .

EXTRA_DIST = \
test1    test11   test14   test3    test400  test7    \
test10   test12   test2    test300  test5    test8    \
test100  test13   test200  test4    test6    test9    
test1    test102  test106  test13   test3    test400  test8    \
test10   test103  test107  test14   test300  test5    test9    \
test100  test104  test11   test2    test33   test6    \
test101  test105  test12   test200  test4    test7    

tests/data/test101

0 → 100644
+41 −0
Original line number Diff line number Diff line
# Server-side
<reply>
<data>
total 20
drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
-r--r--r--   1 0        1             35 Jul 16  1996 README
lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
dr-xr-xr-x   5 0        1            512 Oct  1  1997 usr
</data>
</reply>

# Client-side
<client>
 <name>
FTP dir list, PORT with specified IP
 </name>
 <command>
ftp://%HOSTIP:%FTPPORT/ -P %HOSTIP
</command>
</test>

# Verify data after the test has been "shot"
<verify>
<strip>
^PORT 127,0,0,1,.*
</strip>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
PORT 127,0,0,1,243,212
TYPE A
LIST
</protocol>
</verify>

tests/data/test102

0 → 100644
+33 −0
Original line number Diff line number Diff line
# Server-side
<reply>
<data>
data
    to
      see
that FTP
works
  so does it?
</data>
</reply>

# Client-side
<client>
 <name>
FTP RETR PASV
 </name>
 <command>
ftp://%HOSTIP:%FTPPORT/102
</command>
</test>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
PASV
TYPE I
RETR 102
</protocol>
</verify>

tests/data/test103

0 → 100644
+37 −0
Original line number Diff line number Diff line
# Server-side
<reply>
<data>
data
    to
      see
that FTP
works
  so does it?
</data>
</reply>

# Client-side
<client>
 <name>
FTP RETR PORT with CWD
 </name>
 <command>
ftp://%HOSTIP:%FTPPORT/a/path/103 -P -
</command>
</test>

# Verify data after the test has been "shot"
<verify>
<strip>
^PORT .*
</strip>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
CWD a/path
PORT 127,0,0,1,246,33
TYPE I
RETR 103
</protocol>
</verify>

tests/data/test104

0 → 100644
+29 −0
Original line number Diff line number Diff line
# Server-side
<reply>
<size>
51
</size>
</reply>

# Client-side
<client>
 <name>
FTP --head to get file size only
 </name>
 <command>
ftp://%HOSTIP:%FTPPORT/a/path/103 --head
</command>
</test>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
CWD a/path
MDTM 103
TYPE I
SIZE 103
</protocol>
</verify>
Loading