]> granicus.if.org Git - curl/commitdiff
new ftp tests
authorDaniel Stenberg <daniel@haxx.se>
Thu, 10 Apr 2003 11:43:47 +0000 (11:43 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Apr 2003 11:43:47 +0000 (11:43 +0000)
tests/data/test139 [new file with mode: 0644]
tests/data/test140 [new file with mode: 0644]
tests/data/test141 [new file with mode: 0644]

diff --git a/tests/data/test139 b/tests/data/test139
new file mode 100644 (file)
index 0000000..dd87118
--- /dev/null
@@ -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\r
+PASS curl_by_daniel@haxx.se\r
+PWD\r
+CWD blalbla\r
+MDTM 139
+EPSV\r
+TYPE I\r
+SIZE 139\r
+RETR 139\r
+</protocol>
+</verify>
diff --git a/tests/data/test140 b/tests/data/test140
new file mode 100644 (file)
index 0000000..eecec60
--- /dev/null
@@ -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\r
+PASS curl_by_daniel@haxx.se\r
+PWD\r
+CWD blalbla\r
+MDTM 140
+</protocol>
+</verify>
diff --git a/tests/data/test141 b/tests/data/test141
new file mode 100644 (file)
index 0000000..6496095
--- /dev/null
@@ -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\r
+PASS curl_by_daniel@haxx.se\r
+PWD\r
+CWD blalbla\r
+MDTM 141\r
+TYPE I\r
+SIZE 141\r
+</protocol>
+<stdout>
+Last-Modified: Wed, 09 Apr 2003 10:26:59 GMT
+</stdout>
+</verify>