diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-25 21:47:29 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-25 21:47:29 +0000 |
commit | fd802db39f77fa3985d20e461742bf24644065d6 (patch) | |
tree | a9d477d5a34dc803a845b0c23148df2fe69ffb7c /tests/data | |
parent | 765754d39d164a248b909092295d0a0aab294032 (diff) |
initial support for "uploading" to file:// URLs
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/Makefile.am | 2 | ||||
-rw-r--r-- | tests/data/test204 | 32 | ||||
-rw-r--r-- | tests/data/test205 | 29 |
3 files changed, 62 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 8ed9d8e2d..35ca93c3d 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -24,7 +24,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test150 test151 test152 test153 test154 test155 test156 test157 \ test158 test159 test511 test160 test161 test162 test163 test164 \ test512 test165 test166 test167 test168 test169 test170 test171 \ - test172 + test172 test204 test205 # 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/test204 b/tests/data/test204 new file mode 100644 index 000000000..cd661d3f3 --- /dev/null +++ b/tests/data/test204 @@ -0,0 +1,32 @@ +# no Server-side + +# Client-side +<client> +<server> +none +</server> + <name> +"upload" with file:// + </name> + <command> +file://localhost/%PWD/log/result204.txt -T log/upload204.txt +</command> +<file name="log/upload204.txt"> +data +in +file +to +write +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +<file name="log/result204.txt"> +data +in +file +to +write +</file> +</verify> diff --git a/tests/data/test205 b/tests/data/test205 new file mode 100644 index 000000000..b82919053 --- /dev/null +++ b/tests/data/test205 @@ -0,0 +1,29 @@ +# no Server-side + +# Client-side +<client> +<server> +none +</server> + <name> +"upload" with file:// + </name> + <command> +file://localhost/%PWD/log/nonexisting/result205.txt -T log/upload205.txt +</command> +<file name="log/upload205.txt"> +data +in +file +to +write +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +# 23 => CURLE_WRITE_ERROR +<errorcode> +23 +</errorcode> +</verify> |