From fd802db39f77fa3985d20e461742bf24644065d6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 May 2004 21:47:29 +0000 Subject: initial support for "uploading" to file:// URLs --- tests/data/Makefile.am | 2 +- tests/data/test204 | 32 ++++++++++++++++++++++++++++++++ tests/data/test205 | 29 +++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 tests/data/test204 create mode 100644 tests/data/test205 (limited to 'tests') 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 + + +none + + +"upload" with file:// + + +file://localhost/%PWD/log/result204.txt -T log/upload204.txt + + +data +in +file +to +write + + + +# Verify data after the test has been "shot" + + +data +in +file +to +write + + 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 + + +none + + +"upload" with file:// + + +file://localhost/%PWD/log/nonexisting/result205.txt -T log/upload205.txt + + +data +in +file +to +write + + + +# Verify data after the test has been "shot" + +# 23 => CURLE_WRITE_ERROR + +23 + + -- cgit v1.2.3