aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-08-23 14:41:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-08-23 14:41:19 +0000
commitb233c13dca62fccb6223f249448f2e4c67acaa91 (patch)
tree89872a9f332407bee7eb9a9e74ad7ec6d4503174 /tests
parent464be27479925e727eea688da93704aff7e17a1e (diff)
verify that transferring a zero byte FTP file results in a zero byte local
file
Diffstat (limited to 'tests')
-rw-r--r--tests/data/Makefile.am2
-rw-r--r--tests/data/test18235
2 files changed, 36 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 4da5fc3af..32e64a22f 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -25,7 +25,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test158 test159 test511 test160 test161 test162 test163 test164 \
test512 test165 test166 test167 test168 test169 test170 test171 \
test172 test204 test205 test173 test174 test175 test176 test177 \
- test513 test514 test178 test179 test180 test181
+ test513 test514 test178 test179 test180 test181 test182
# The following tests have been removed from the dist since they no longer
# work. We need to fix the test suite's FTPS server first, then bring them
diff --git a/tests/data/test182 b/tests/data/test182
new file mode 100644
index 000000000..5eac8b708
--- /dev/null
+++ b/tests/data/test182
@@ -0,0 +1,35 @@
+# Server-side
+<reply>
+<data sendzero=yes>
+</data>
+<size>
+0
+</size>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+<name>
+FTP download an empty file
+</name>
+<command>
+ftp://%HOSTIP:%FTPPORT/182
+</command>
+</test>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PWD
+EPSV
+TYPE I
+SIZE 182
+RETR 182
+QUIT
+</protocol>
+</verify>