From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 20 Mar 2002 10:50:12 +0000 (+0000)
Subject: added test 128, ftp upload with --crlf
X-Git-Tag: curl-7_9_6~63
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1f993a25b5f8fe403b92d4e0bfb9ecd7796fa91;p=curl

added test 128, ftp upload with --crlf
---

diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 7e64f11dd..53fc05325 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -15,5 +15,5 @@ test104  test113  test122  test18   test23   test301  test402  test9 \
 test105  test114  test123  test19   test24   test302  test43   test31 \
 test106  test115  test124  test190  test25   test303  test44   test38 \
 test107  test116  test125  test2    test26   test33   test45   test126 \
-test304  test39   test32
+test304  test39   test32   test128
 
diff --git a/tests/data/test128 b/tests/data/test128
new file mode 100644
index 000000000..bb09ec749
--- /dev/null
+++ b/tests/data/test128
@@ -0,0 +1,43 @@
+# Server-side
+<reply>
+</reply>
+
+# Client-side
+<client>
+ <name>
+FTP upload with --crlf
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/128 -T log/upload128 --crlf
+</command>
+<file name="log/upload128">
+file
+with unix newlines
+meant to be
+converted
+with
+the
+--crlf option
+</file>
+</test>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PWD
+EPSV
+TYPE I
+STOR 128
+</protocol>
+<upload>
+file
+with unix newlines
+meant to be
+converted
+with
+the
+--crlf option
+</upload>
+</verify>