1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

test: add tests to ensure basic file: URLs

This commit is contained in:
Matthew Kerwin 2017-11-24 22:08:05 +10:00 committed by Daniel Stenberg
parent 25634611f9
commit d7c103746c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 85 additions and 1 deletions

View File

@ -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

41
tests/data/test2070 Normal file
View File

@ -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>

41
tests/data/test2071 Normal file
View File

@ -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>