mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
Fixed the XML syntax of a few test files.
This commit is contained in:
parent
39f23aec6b
commit
ed2dbefa73
@ -25,7 +25,7 @@ curl --manual
|
|||||||
# Search for these two sentinel lines in the manual output; if they are found,
|
# Search for these two sentinel lines in the manual output; if they are found,
|
||||||
# then chances are good the entire manual is there.
|
# then chances are good the entire manual is there.
|
||||||
<postcheck>
|
<postcheck>
|
||||||
perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(a\s*tool\s*to\s*transfer\s*data)|(mailing\s*lists\s*to\s*discuss\s*curl)/, <IN>); exit ($lines != 2);' log/stdout1026
|
perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(a\s*tool\s*to\s*transfer\s*data)|(mailing\s*lists\s*to\s*discuss\s*curl)/, <IN>); exit ($lines != 2); # Let this file pass an XML syntax check: </IN>' log/stdout1026
|
||||||
</postcheck>
|
</postcheck>
|
||||||
</client>
|
</client>
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ curl --help
|
|||||||
# Search for these two sentinel lines in the help output; if they are found,
|
# Search for these two sentinel lines in the help output; if they are found,
|
||||||
# then chances are good the entire help is there.
|
# then chances are good the entire help is there.
|
||||||
<postcheck>
|
<postcheck>
|
||||||
perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(Usage: curl )|(--version\s*Show version)/, <IN>); exit ($lines != 2);' log/stdout1027
|
perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(Usage: curl )|(--version\s*Show version)/, <IN>); exit ($lines != 2); # Let this file pass an XML syntax check: </IN>' log/stdout1027
|
||||||
</postcheck>
|
</postcheck>
|
||||||
</client>
|
</client>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
<testcase>
|
||||||
#
|
#
|
||||||
# This case with an unexpected 1xx response used to cause a "hang" before the fix
|
# This case with an unexpected 1xx response used to cause a "hang" before the fix
|
||||||
# got 7.19.0
|
# got 7.19.0
|
||||||
<testcase>
|
|
||||||
<info>
|
<info>
|
||||||
<keywords>
|
<keywords>
|
||||||
HTTP
|
HTTP
|
||||||
|
@ -6,23 +6,24 @@ HTTP GET
|
|||||||
Content-Range
|
Content-Range
|
||||||
</keywords>
|
</keywords>
|
||||||
</info>
|
</info>
|
||||||
|
|
||||||
# Server-side
|
# Server-side
|
||||||
<reply>
|
<reply>
|
||||||
<data>
|
<data>
|
||||||
HTTP/1.1 206 Partial Content
|
HTTP/1.1 206 Partial Content
|
||||||
Date: Mon, 13 Nov 2000 13:41:09 GMT
|
Date: Mon, 13 Nov 2000 13:41:09 GMT
|
||||||
Server: Apache/1.3.11 (Unix) PHP/3.0.14
|
Server: Apache/1.3.11 (Unix) PHP/3.0.14
|
||||||
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
||||||
ETag: "21025-dc7-39462498"
|
ETag: "21025-dc7-39462498"
|
||||||
Accept-Ranges: bytes
|
Accept-Ranges: bytes
|
||||||
Content-Length: 101
|
Content-Length: 101
|
||||||
Content-Range: bytes 100-200/3527
|
Content-Range: bytes 100-200/3527
|
||||||
Connection: close
|
Connection: close
|
||||||
Content-Type: text/html
|
Content-Type: text/html
|
||||||
|
|
||||||
ink="#ffffff" vlink="#cccccc">
|
..partial data returned from the
|
||||||
<table width=100% cellspacing=0 cellpadding=0 border=0>
|
server as a result of setting an explicit byte range
|
||||||
<tr> 0123456
|
in the request
|
||||||
</data>
|
</data>
|
||||||
</reply>
|
</reply>
|
||||||
|
|
||||||
|
@ -8,10 +8,10 @@ HTTP PUT
|
|||||||
# Server-side
|
# Server-side
|
||||||
<reply>
|
<reply>
|
||||||
<data>
|
<data>
|
||||||
HTTP/1.0 200 OK swsclose
|
HTTP/1.0 200 OK swsclose
|
||||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||||
Server: test-server/fake
|
Server: test-server/fake
|
||||||
|
|
||||||
blablabla
|
blablabla
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
@ -26,7 +26,7 @@ http
|
|||||||
HTTP PUT from stdin with wrong content-length
|
HTTP PUT from stdin with wrong content-length
|
||||||
</name>
|
</name>
|
||||||
<command>
|
<command>
|
||||||
http://%HOSTIP:%HTTPPORT/bzz/60 -T - -H "Content-Length: 1" < log/60.txt
|
http://%HOSTIP:%HTTPPORT/bzz/60 -T - -H "Content-Length: 1" <log/60.txt
|
||||||
</command>
|
</command>
|
||||||
<file name="log/60.txt">
|
<file name="log/60.txt">
|
||||||
more than one byte
|
more than one byte
|
||||||
|
Loading…
x
Reference in New Issue
Block a user