diff options
author | Matthew Kerwin <matthew@kerwin.net.au> | 2017-11-24 22:08:05 +1000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-11-24 23:13:16 +0100 |
commit | d7c103746cb3d446a879123e48f18e4bd8ceb314 (patch) | |
tree | ab3531239b6941a8b2056dacad00afc700394121 | |
parent | 25634611f983824503cd708f0b65dddf028c3026 (diff) | |
download | curl-d7c103746cb3d446a879123e48f18e4bd8ceb314.tar.gz |
test: add tests to ensure basic file: URLs
-rw-r--r-- | tests/data/Makefile.inc | 4 | ||||
-rw-r--r-- | tests/data/test2070 | 41 | ||||
-rw-r--r-- | tests/data/test2071 | 41 |
3 files changed, 85 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index dc1cc03bc..199ffe248 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -187,4 +187,6 @@ test2032 test2033 test2034 test2035 test2036 test2037 test2038 test2039 \ test2040 test2041 test2042 test2043 test2044 test2045 test2046 test2047 \ test2048 test2049 test2050 test2051 test2052 test2053 test2054 test2055 \ test2056 test2057 test2058 test2059 test2060 test2061 test2062 test2063 \ -test2064 test2065 test2066 test2067 test2068 test2069 +test2064 test2065 test2066 test2067 test2068 test2069 \ +\ +test2070 test2071 diff --git a/tests/data/test2070 b/tests/data/test2070 new file mode 100644 index 000000000..bc3898ab3 --- /dev/null +++ b/tests/data/test2070 @@ -0,0 +1,41 @@ +<testcase> +<info> +<keywords> +FILE +</keywords> +</info> + +<reply> +<data> +foo + bar +bar + foo +moo +</data> +</reply> + +# Client-side +<client> +<server> +file +</server> + <name> +basic file:// file with no authority + </name> + <command> +file:%PWD/log/test2070.txt +</command> +<file name="log/test2070.txt"> +foo + bar +bar + foo +moo +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +</verify> +</testcase> diff --git a/tests/data/test2071 b/tests/data/test2071 new file mode 100644 index 000000000..997dfffeb --- /dev/null +++ b/tests/data/test2071 @@ -0,0 +1,41 @@ +<testcase> +<info> +<keywords> +FILE +</keywords> +</info> + +<reply> +<data> +foo + bar +bar + foo +moo +</data> +</reply> + +# Client-side +<client> +<server> +file +</server> + <name> +basic file:// file with "127.0.0.1" hostname + </name> + <command> +file://127.0.0.1/%PWD/log/test2070.txt +</command> +<file name="log/test2070.txt"> +foo + bar +bar + foo +moo +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +</verify> +</testcase> |