diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-01-11 14:20:41 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-01-11 14:20:41 +0000 |
commit | 08adf679691006a8fc45fca07c7a10e6a458283e (patch) | |
tree | e63dcc718a803ed4653d7eba24c1a143cef52475 /tests/data | |
parent | e2c817731a6abd94c1946e855938ec5f12167c31 (diff) |
Daniel Egger made CURLOPT_RANGE work on file:// URLs the very same way it
already worked for FTP:// URLs
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/Makefile.am | 40 | ||||
-rw-r--r-- | tests/data/test1016 | 35 | ||||
-rw-r--r-- | tests/data/test1017 | 35 | ||||
-rw-r--r-- | tests/data/test1018 | 35 | ||||
-rw-r--r-- | tests/data/test1019 | 37 | ||||
-rw-r--r-- | tests/data/test1020 | 37 |
6 files changed, 199 insertions, 20 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 4c214bc4f..87a41e438 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -28,26 +28,26 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test194 test195 test196 test197 test198 test515 test516 test517 test518 \ test210 test211 test212 test220 test221 test222 test223 test224 test206 \ test207 test208 test209 test213 test240 test241 test242 test519 test214 \ - test215 test216 test217 test218 test199 test225 test226 test227 \ - test228 test229 test233 test234 test235 test236 test520 \ - test237 test238 test239 test243 test245 test246 test247 test248 test249 \ - test250 test251 test252 test253 test254 test255 test521 test522 test523 \ - test256 test257 test258 test259 test260 test261 test262 test263 test264 \ - test265 test266 test267 test268 test269 test270 test271 test272 test273 \ - test274 test275 test524 test525 test276 test277 test526 test527 test528 \ - test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \ - test534 test535 test281 test537 test282 test283 test284 test538 test285 \ - test286 test307 test308 test287 test400 test288 test600 test601 test602 \ - test603 test401 test402 test290 test291 test292 test293 test403 test404 \ - test405 test604 test605 test606 test607 test608 test609 test294 test295 \ - test296 test297 test298 test610 test611 test612 test406 test407 test408 \ - test409 test613 test614 test700 test701 test702 test704 test705 test703 \ - test706 test707 test350 test351 test352 test353 test289 test540 test354 \ - test231 test1000 test1001 test1002 test1003 test1004 test1005 test1006 \ - test615 test1007 test541 test1010 test1011 test1012 test542 test543 \ - test536 test1008 test1009 test2000 test2001 test2002 test2003 test35 \ - test544 test545 test2004 test546 test1013 test1014 test1015 \ - test547 test548 test549 test550 test551 test552 + test215 test216 test217 test218 test199 test225 test226 test227 test228 \ + test229 test233 test234 test235 test236 test520 test237 test238 test239 \ + test243 test245 test246 test247 test248 test249 test250 test251 test252 \ + test253 test254 test255 test521 test522 test523 test256 test257 test258 \ + test259 test260 test261 test262 test263 test264 test265 test266 test267 \ + test268 test269 test270 test271 test272 test273 test274 test275 test524 \ + test525 test276 test277 test526 test527 test528 test530 DISABLED test278 \ + test279 test531 test280 test529 test532 test533 test534 test535 test281 \ + test537 test282 test283 test284 test538 test285 test286 test307 test308 \ + test287 test400 test288 test600 test601 test602 test603 test401 test402 \ + test290 test291 test292 test293 test403 test404 test405 test604 test605 \ + test606 test607 test608 test609 test294 test295 test296 test297 test298 \ + test610 test611 test612 test406 test407 test408 test409 test613 test614 \ + test700 test701 test702 test704 test705 test703 test706 test707 test350 \ + test351 test352 test353 test289 test540 test354 test231 test1000 test1001 \ + test1002 test1003 test1004 test1005 test1006 test615 test1007 test541 \ + test1010 test1011 test1012 test542 test543 test536 test1008 test1009 \ + test2000 test2001 test2002 test2003 test35 test544 test545 test2004 \ + test546 test1013 test1014 test1015 test547 test548 test549 test550 \ + test551 test552 test1016 test1017 test1018 test1019 test1020 filecheck: @mkdir test-place; \ diff --git a/tests/data/test1016 b/tests/data/test1016 new file mode 100644 index 000000000..4b8fc6270 --- /dev/null +++ b/tests/data/test1016 @@ -0,0 +1,35 @@ +<testcase> +<info> +<keywords> +FILE +</keywords> +</info> + +<reply> +<data> +</data> +</reply> + +# Client-side +<client> +<server> +none +</server> + <name> +X-Y range on a file:// URL to stdout + </name> + <command> +-r 1-4 file://localhost/%PWD/log/test1016.txt +</command> +<file name="log/test1016.txt"> +1234567890 +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +<stdout nonewline="yes"> +2345 +</stdout> +</verify> +</testcase> diff --git a/tests/data/test1017 b/tests/data/test1017 new file mode 100644 index 000000000..8c4c0a811 --- /dev/null +++ b/tests/data/test1017 @@ -0,0 +1,35 @@ +<testcase> +<info> +<keywords> +FILE +</keywords> +</info> +# Server-side +<reply> +<data> +</data> +</reply> + +# Client-side +<client> +<server> +none +</server> + <name> +0-Y range on a file:// URL to stdout + </name> + <command> +-r 0-3 file://localhost/%PWD/log/test1017.txt +</command> +<file name="log/test1017.txt"> +1234567890 +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +<stdout nonewline="yes"> +1234 +</stdout> +</verify> +</testcase> diff --git a/tests/data/test1018 b/tests/data/test1018 new file mode 100644 index 000000000..c66dc663a --- /dev/null +++ b/tests/data/test1018 @@ -0,0 +1,35 @@ +<testcase> +<info> +<keywords> +FILE +</keywords> +</info> + +<reply> +<data> +</data> +</reply> + +# Client-side +<client> +<server> +none +</server> + <name> +X-X range on a file:// URL to stdout + </name> + <command> +-r 4-4 file://localhost/%PWD/log/test1018.txt +</command> +<file name="log/test1018.txt"> +1234567890 +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +<stdout nonewline="yes"> +5 +</stdout> +</verify> +</testcase> diff --git a/tests/data/test1019 b/tests/data/test1019 new file mode 100644 index 000000000..f5ab151f5 --- /dev/null +++ b/tests/data/test1019 @@ -0,0 +1,37 @@ +<testcase> +<info> +<keywords> +FILE +</keywords> +</info> +# Server-side +<reply> +<data> +</data> +</reply> + +# Client-side +<client> +<server> +none +</server> + <name> +X- range on a file:// URL to stdout + </name> + <command> +-r 7- file://localhost/%PWD/log/test1019.txt +</command> +<file name="log/test1019.txt"> +1234567890 +1234567890 +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +<stdout> +890 +1234567890 +</stdout> +</verify> +</testcase> diff --git a/tests/data/test1020 b/tests/data/test1020 new file mode 100644 index 000000000..fe834d27c --- /dev/null +++ b/tests/data/test1020 @@ -0,0 +1,37 @@ +<testcase> +<info> +<keywords> +FILE +</keywords> +</info> +# Server-side +<reply> +<data> +</data> +</reply> + +# Client-side +<client> +<server> +none +</server> + <name> +-Y range on a file:// URL to stdout + </name> + <command> +-r -9 file://localhost/%PWD/log/test1020.txt +</command> +<file name="log/test1020.txt"> +1234567890 +1234567890 +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +<stdout> +34567890 +</stdout> +</verify> +</testcase> + |