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

tests: specify 'text' mode for some output files in verify section

This commit is contained in:
Yang Tse 2013-03-18 20:44:46 +01:00
parent b3440f490f
commit b0dfbf305a
43 changed files with 92 additions and 92 deletions

View File

@ -53,7 +53,7 @@ Content-Type: application/x-www-form-urlencoded
userid=myname&password=mypassword
</protocol>
<file name="log/cookie1105.txt">
<file name="log/cookie1105.txt" mode="text">
# Netscape HTTP Cookie File
# http://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.

View File

@ -17,9 +17,9 @@ none
#
# Verify data after the test has been "shot"
<verify>
<file1 name="log/stderr1221">
<file1 name="log/stderr1221" mode="text">
</file1>
<file2 name="log/stdout1221">
<file2 name="log/stdout1221" mode="text">
Testing curl_10char_object_name...
result: 16AFKPQRST expected: 16AFKPQRST input: 123__678__ABC__FGH__KLM__PQRSTUV

View File

@ -17,9 +17,9 @@ none
#
# Verify data after the test has been "shot"
<verify>
<file1 name="log/stderr1222">
<file1 name="log/stderr1222" mode="text">
</file1>
<file2 name="log/stdout1222">
<file2 name="log/stdout1222" mode="text">
Testing curl_8char_object_name...
result: 16AFKPQR expected: 16AFKPQR input: 123__678__ABC__FGH__KLM__PQRSTUV

View File

@ -24,7 +24,7 @@ unit1309
</client>
<verify>
<stdout>
<stdout mode="text">
Result:
0.1013[3]
0.1003[2]

View File

@ -55,11 +55,11 @@ Accept: */*
</protocol>
<file1 name="log/1334">
<file1 name="log/1334" mode="text">
12345
</file1>
<file2 name="log/heads1334">
<file2 name="log/heads1334" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -69,7 +69,7 @@ Content-Type: text/html
</file2>
<file3 name="log/stdout1334">
<file3 name="log/stdout1334" mode="text">
</file3>
</verify>

View File

@ -55,11 +55,11 @@ Accept: */*
</protocol>
<file1 name="log/1335">
<file1 name="log/1335" mode="text">
12345
</file1>
<file2 name="log/stdout1335">
<file2 name="log/stdout1335" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -59,11 +59,11 @@ Accept: */*
</protocol>
<file1 name="log/1336">
<file1 name="log/1336" mode="text">
12345
</file1>
<file2 name="log/heads1336">
<file2 name="log/heads1336" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -74,7 +74,7 @@ Content-Disposition: filename=name1336; charset=funny; option=strange
</file2>
<file3 name="log/stdout1336">
<file3 name="log/stdout1336" mode="text">
</file3>
</verify>

View File

@ -59,11 +59,11 @@ Accept: */*
</protocol>
<file1 name="log/1337">
<file1 name="log/1337" mode="text">
12345
</file1>
<file2 name="log/stdout1337">
<file2 name="log/stdout1337" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -56,11 +56,11 @@ Accept: */*
</protocol>
<file1 name="log/1338">
<file1 name="log/1338" mode="text">
12345
</file1>
<file2 name="log/heads1338">
<file2 name="log/heads1338" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -70,7 +70,7 @@ Content-Type: text/html
</file2>
<file3 name="log/stdout1338">
<file3 name="log/stdout1338" mode="text">
</file3>
</verify>

View File

@ -56,11 +56,11 @@ Accept: */*
</protocol>
<file1 name="log/1339">
<file1 name="log/1339" mode="text">
12345
</file1>
<file2 name="log/stdout1339">
<file2 name="log/stdout1339" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -57,11 +57,11 @@ Accept: */*
</protocol>
<file1 name="log/name1340">
<file1 name="log/name1340" mode="text">
12345
</file1>
<file2 name="log/heads1340">
<file2 name="log/heads1340" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -72,7 +72,7 @@ Content-Disposition: filename=name1340; charset=funny; option=strange
</file2>
<file3 name="log/stdout1340">
<file3 name="log/stdout1340" mode="text">
curl: Saved to filename '%PWD/log/name1340'
</file3>

View File

@ -57,11 +57,11 @@ Accept: */*
</protocol>
<file1 name="log/name1341">
<file1 name="log/name1341" mode="text">
12345
</file1>
<file2 name="log/stdout1341">
<file2 name="log/stdout1341" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -55,7 +55,7 @@ Accept: */*
</protocol>
<file1 name="log/1342">
<file1 name="log/1342" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -66,7 +66,7 @@ Content-Type: text/html
12345
</file1>
<file2 name="log/heads1342">
<file2 name="log/heads1342" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -76,7 +76,7 @@ Content-Type: text/html
</file2>
<file3 name="log/stdout1342">
<file3 name="log/stdout1342" mode="text">
</file3>
</verify>

View File

@ -55,7 +55,7 @@ Accept: */*
</protocol>
<file1 name="log/1343">
<file1 name="log/1343" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -66,7 +66,7 @@ Content-Type: text/html
12345
</file1>
<file2 name="log/stdout1343">
<file2 name="log/stdout1343" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -59,7 +59,7 @@ Accept: */*
</protocol>
<file1 name="log/1344">
<file1 name="log/1344" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -71,7 +71,7 @@ Content-Disposition: filename=name1344; charset=funny; option=strange
12345
</file1>
<file2 name="log/heads1344">
<file2 name="log/heads1344" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -82,7 +82,7 @@ Content-Disposition: filename=name1344; charset=funny; option=strange
</file2>
<file3 name="log/stdout1344">
<file3 name="log/stdout1344" mode="text">
</file3>
</verify>

View File

@ -59,7 +59,7 @@ Accept: */*
</protocol>
<file1 name="log/1345">
<file1 name="log/1345" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -71,7 +71,7 @@ Content-Disposition: filename=name1345; charset=funny; option=strange
12345
</file1>
<file2 name="log/stdout1345">
<file2 name="log/stdout1345" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -55,7 +55,7 @@ Accept: */*
</protocol>
<file1 name="log/1346">
<file1 name="log/1346" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -66,7 +66,7 @@ Content-Type: text/html
12345
</file1>
<file2 name="log/stdout1346">
<file2 name="log/stdout1346" mode="text">
</file2>
</verify>

View File

@ -59,7 +59,7 @@ Accept: */*
</protocol>
<file1 name="log/1347">
<file1 name="log/1347" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -71,7 +71,7 @@ Content-Disposition: filename=name1347; charset=funny; option=strange
12345
</file1>
<file2 name="log/stdout1347">
<file2 name="log/stdout1347" mode="text">
</file2>
</verify>

View File

@ -49,12 +49,12 @@ RETR file1348
QUIT
</protocol>
<file1 name="log/file1348">
<file1 name="log/file1348" mode="text">
fooo
mooo
</file1>
<file2 name="log/stdout1348">
<file2 name="log/stdout1348" mode="text">
</file2>
</verify>

View File

@ -60,7 +60,7 @@ RETR file1356
QUIT
</protocol>
<file1 name="log/file1356">
<file1 name="log/file1356" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -72,7 +72,7 @@ Content-Disposition: filename=name1356; charset=funny; option=strange
MOOOO
</file1>
<file2 name="log/stdout1356">
<file2 name="log/stdout1356" mode="text">
</file2>
</verify>

View File

@ -60,7 +60,7 @@ RETR file1363
QUIT
</protocol>
<file1 name="log/file1363">
<file1 name="log/file1363" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -72,7 +72,7 @@ Content-Disposition: filename=name1363; charset=funny; option=strange
MOOOO
</file1>
<file2 name="log/stdout1363">
<file2 name="log/stdout1363" mode="text">
</file2>
</verify>

View File

@ -50,11 +50,11 @@ Accept: */*
</protocol>
<file1 name="log/outfile1364">
<file1 name="log/outfile1364" mode="text">
12345
</file1>
<file2 name="log/heads1364">
<file2 name="log/heads1364" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -64,7 +64,7 @@ Content-Type: text/html
</file2>
<file3 name="log/stdout1364">
<file3 name="log/stdout1364" mode="text">
</file3>
</verify>

View File

@ -50,11 +50,11 @@ Accept: */*
</protocol>
<file1 name="log/outfile1365">
<file1 name="log/outfile1365" mode="text">
12345
</file1>
<file2 name="log/stdout1365">
<file2 name="log/stdout1365" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -51,11 +51,11 @@ Accept: */*
</protocol>
<file1 name="log/outfile1366">
<file1 name="log/outfile1366" mode="text">
12345
</file1>
<file2 name="log/heads1366">
<file2 name="log/heads1366" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -66,7 +66,7 @@ Content-Disposition: filename=name1366; charset=funny; option=strange
</file2>
<file3 name="log/stdout1366">
<file3 name="log/stdout1366" mode="text">
</file3>
</verify>

View File

@ -51,11 +51,11 @@ Accept: */*
</protocol>
<file1 name="log/outfile1367">
<file1 name="log/outfile1367" mode="text">
12345
</file1>
<file2 name="log/stdout1367">
<file2 name="log/stdout1367" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -51,11 +51,11 @@ Accept: */*
</protocol>
<file1 name="log/outfile1368">
<file1 name="log/outfile1368" mode="text">
12345
</file1>
<file2 name="log/heads1368">
<file2 name="log/heads1368" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -65,7 +65,7 @@ Content-Type: text/html
</file2>
<file3 name="log/stdout1368">
<file3 name="log/stdout1368" mode="text">
</file3>
</verify>

View File

@ -51,11 +51,11 @@ Accept: */*
</protocol>
<file1 name="log/outfile1369">
<file1 name="log/outfile1369" mode="text">
12345
</file1>
<file2 name="log/stdout1369">
<file2 name="log/stdout1369" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -52,11 +52,11 @@ Accept: */*
</protocol>
<file1 name="log/outfile1370">
<file1 name="log/outfile1370" mode="text">
12345
</file1>
<file2 name="log/heads1370">
<file2 name="log/heads1370" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -67,7 +67,7 @@ Content-Disposition: filename=name1370; charset=funny; option=strange
</file2>
<file3 name="log/stdout1370">
<file3 name="log/stdout1370" mode="text">
</file3>
</verify>

View File

@ -52,11 +52,11 @@ Accept: */*
</protocol>
<file1 name="log/outfile1371">
<file1 name="log/outfile1371" mode="text">
12345
</file1>
<file2 name="log/stdout1371">
<file2 name="log/stdout1371" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -50,7 +50,7 @@ Accept: */*
</protocol>
<file1 name="log/outfile1372">
<file1 name="log/outfile1372" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -61,7 +61,7 @@ Content-Type: text/html
12345
</file1>
<file2 name="log/heads1372">
<file2 name="log/heads1372" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -71,7 +71,7 @@ Content-Type: text/html
</file2>
<file3 name="log/stdout1372">
<file3 name="log/stdout1372" mode="text">
</file3>
</verify>

View File

@ -50,7 +50,7 @@ Accept: */*
</protocol>
<file1 name="log/outfile1373">
<file1 name="log/outfile1373" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -61,7 +61,7 @@ Content-Type: text/html
12345
</file1>
<file2 name="log/stdout1373">
<file2 name="log/stdout1373" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -51,7 +51,7 @@ Accept: */*
</protocol>
<file1 name="log/outfile1374">
<file1 name="log/outfile1374" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -63,7 +63,7 @@ Content-Disposition: filename=name1374; charset=funny; option=strange
12345
</file1>
<file2 name="log/heads1374">
<file2 name="log/heads1374" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -74,7 +74,7 @@ Content-Disposition: filename=name1374; charset=funny; option=strange
</file2>
<file3 name="log/stdout1374">
<file3 name="log/stdout1374" mode="text">
</file3>
</verify>

View File

@ -51,7 +51,7 @@ Accept: */*
</protocol>
<file1 name="log/outfile1375">
<file1 name="log/outfile1375" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -63,7 +63,7 @@ Content-Disposition: filename=name1375; charset=funny; option=strange
12345
</file1>
<file2 name="log/stdout1375">
<file2 name="log/stdout1375" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake

View File

@ -50,7 +50,7 @@ Accept: */*
</protocol>
<file1 name="log/outfile1376">
<file1 name="log/outfile1376" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -61,7 +61,7 @@ Content-Type: text/html
12345
</file1>
<file2 name="log/stdout1376">
<file2 name="log/stdout1376" mode="text">
</file2>
</verify>

View File

@ -51,7 +51,7 @@ Accept: */*
</protocol>
<file1 name="log/outfile1377">
<file1 name="log/outfile1377" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -63,7 +63,7 @@ Content-Disposition: filename=name1377; charset=funny; option=strange
12345
</file1>
<file2 name="log/stdout1377">
<file2 name="log/stdout1377" mode="text">
</file2>
</verify>

View File

@ -44,12 +44,12 @@ RETR file1378
QUIT
</protocol>
<file1 name="log/download1378">
<file1 name="log/download1378" mode="text">
fooo
mooo
</file1>
<file2 name="log/stdout1378">
<file2 name="log/stdout1378" mode="text">
</file2>
</verify>

View File

@ -44,12 +44,12 @@ RETR file1385
QUIT
</protocol>
<file1 name="log/download1385">
<file1 name="log/download1385" mode="text">
fooo
mooo
</file1>
<file2 name="log/stdout1385">
<file2 name="log/stdout1385" mode="text">
</file2>
</verify>

View File

@ -52,7 +52,7 @@ RETR file1386
QUIT
</protocol>
<file1 name="log/download1386">
<file1 name="log/download1386" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -64,7 +64,7 @@ Content-Disposition: filename=name1386; charset=funny; option=strange
MOOOO
</file1>
<file2 name="log/stdout1386">
<file2 name="log/stdout1386" mode="text">
</file2>
</verify>

View File

@ -52,7 +52,7 @@ RETR file1393
QUIT
</protocol>
<file1 name="log/download1393">
<file1 name="log/download1393" mode="text">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
@ -64,7 +64,7 @@ Content-Disposition: filename=name1393; charset=funny; option=strange
MOOOO
</file1>
<file2 name="log/stdout1393">
<file2 name="log/stdout1393" mode="text">
</file2>
</verify>

View File

@ -43,7 +43,7 @@ Accept: */*
<errorcode>
22
</errorcode>
<file2 name="log/stderr24">
<file2 name="log/stderr24" mode="text">
curl: (22) The requested URL returned error: 404 BAD BOY
</file2>
</verify>

View File

@ -28,7 +28,7 @@ curl_easy_escape
# There's no MTDM in the protocol here since this code doesn't ask for the
# time/date of the file
<verify>
<stdout>
<stdout mode="text">
%9C%26K%3DI%04%A1%01%E0%D8%7C%20%B7%EFS%29%FA%1DW%E1
</stdout>
</verify>

View File

@ -83,7 +83,7 @@ rtsp://%HOSTIP:%RTSPPORT/571 log/protofile.txt
</client>
<verify>
<stdout>
<stdout mode="text">
RTP: message size 10, channel 1
RTP: message size 500, channel 0
RTP: message size 196, channel 0

View File

@ -76,7 +76,7 @@ Host: %HOSTIP:%HTTPPORT
Accept: */*
</protocol>
<stdout>
<stdout mode="text">
HTTP/1.1 200 OK
Server: test-server/fake
Content-Length: 4