aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-10 11:43:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-10 11:43:47 +0000
commitc8ecbda40b35e3b057136d891d6dd0eb88c564f7 (patch)
treebd1d506c3ca583f43b0eb589a66fdca5b3ec5408 /tests
parent2324c10d43a5c09824287d7051ac6077b512d9dd (diff)
new ftp tests
Diffstat (limited to 'tests')
-rw-r--r--tests/data/test13934
-rw-r--r--tests/data/test14029
-rw-r--r--tests/data/test14134
3 files changed, 97 insertions, 0 deletions
diff --git a/tests/data/test139 b/tests/data/test139
new file mode 100644
index 000000000..dd87118f1
--- /dev/null
+++ b/tests/data/test139
@@ -0,0 +1,34 @@
+# Server-side
+<reply>
+<data>
+this is file contents
+</data>
+<mdtm>
+213 20030409102659
+</mdtm>
+</reply>
+
+# Client-side
+<client>
+ <name>
+FTP download a newer file with -z
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/blalbla/139 -z "1 jan 1989"
+</command>
+</test>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PWD
+CWD blalbla
+MDTM 139
+EPSV
+TYPE I
+SIZE 139
+RETR 139
+</protocol>
+</verify>
diff --git a/tests/data/test140 b/tests/data/test140
new file mode 100644
index 000000000..eecec6029
--- /dev/null
+++ b/tests/data/test140
@@ -0,0 +1,29 @@
+# Server-side
+<reply>
+<data>
+</data>
+<mdtm>
+213 20030409102659
+</mdtm>
+</reply>
+
+# Client-side
+<client>
+ <name>
+FTP download file with -z, expected to not transfer
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/blalbla/140 -z "1 jan 2004"
+</command>
+</test>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PWD
+CWD blalbla
+MDTM 140
+</protocol>
+</verify>
diff --git a/tests/data/test141 b/tests/data/test141
new file mode 100644
index 000000000..649609586
--- /dev/null
+++ b/tests/data/test141
@@ -0,0 +1,34 @@
+# Server-side
+<reply>
+<data>
+</data>
+<mdtm>
+213 20030409102659
+</mdtm>
+</reply>
+
+# Client-side
+<client>
+ <name>
+FTP download info with -I
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/blalbla/141 -I
+</command>
+</test>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PWD
+CWD blalbla
+MDTM 141
+TYPE I
+SIZE 141
+</protocol>
+<stdout>
+Last-Modified: Wed, 09 Apr 2003 10:26:59 GMT
+</stdout>
+</verify>