~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to tests/FILEFORMAT

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
<info>
29
29
<keywords>
30
30
A newline-separated list of keywords describing what this test case uses and
31
 
tests. Try to use an already used keyword. These keywords will be used for
32
 
statistical/informational purposes.
 
31
tests. Try to use an already used keyword.  These keywords will be used for
 
32
statistical/informational purposes and for choosing or skipping classes
 
33
of tests.  "Keywords" must begin with an alphabetic character, "-", "["
 
34
or "{" and may actually consist of multiple words separated by spaces
 
35
which are treated together as a single identifier.
33
36
</keywords>
34
37
</info>
35
38
 
36
39
<reply>
37
 
<data [nocheck="1"] [sendzero="yes"] [base64="yes"]>
 
40
<data [nocheck="yes"] [sendzero="yes"] [base64="yes"]>
38
41
data to be sent to the client on its request and later verified that it arrived
39
 
safely. Set nocheck="1" to prevent the test script from verifying the arrival
 
42
safely. Set nocheck="yes" to prevent the test script from verifying the arrival
40
43
of this data.
41
44
 
42
45
If the data contains 'swsclose' anywhere within the start and end tag, and
64
67
B) The request was HTTP and included digest details, which adds 1000 to NUM
65
68
C) If a HTTP request is NTLM type-1, it adds 1001 to num
66
69
D) If a HTTP request is NTLM type-3, it adds 1002 to num
 
70
E) If a HTTP request is Basic and num is already >=1000, it adds 1 to num
 
71
 
 
72
Dynamically changing num in this way allows the test harness to be used to
 
73
test authentication negotiation where several different requests must be sent
 
74
to complete a transfer. The response to each request is found in its own data
 
75
section.  Validating the entire negotiation sequence can be done by
 
76
specifying a datacheck section.
67
77
</dataNUM>
68
78
<datacheck [nonewline="yes"]>
69
79
if the data is sent but this is what should be checked afterwards. If
105
115
NOSAVE
106
116
 - Don't actually save what is received
107
117
SLOWDOWN
108
 
 - Send FTP responses with 0.1 sec delay between each byte
 
118
 - Send FTP responses with 0.01 sec delay between each byte
109
119
PASVBADIP
110
120
 - makes PASV send back an illegal IP in its 227 response
111
121
 
112
122
For HTTP/HTTPS:
113
 
auth_required - if this is set and a POST/PUT is made without auth, the
 
123
auth_required   if this is set and a POST/PUT is made without auth, the
114
124
                server will NOT wait for the full request body to get sent
115
 
idle -          do nothing after receiving the request, just "sit idle"
116
 
stream -        continuously send data to the client, never-ending
117
 
pipe: [num] -   tell the server to expect this many HTTP requests before
 
125
idle            do nothing after receiving the request, just "sit idle"
 
126
stream          continuously send data to the client, never-ending
 
127
pipe: [num]     tell the server to expect this many HTTP requests before
118
128
                sending back anything, to allow pipelining tests
 
129
skip: [num]     instructs the server to ignore reading this many bytes from a PUT
 
130
                or POST request
119
131
</servercmd>
120
132
</reply>
121
133
 
171
183
 
172
184
<precheck>
173
185
A command line that if set gets run by the test script before the test. If an
174
 
output is displayed by the command, the test will be skipped and the
175
 
(single-line) output will be displayed as reason for not running the test.
176
 
Variables are substituted as in the <command> section.
 
186
output is displayed by the command or if the return code is non-zero, the test
 
187
will be skipped and the (single-line) output will be displayed as reason for
 
188
not running the test.  Variables are substituted as in the <command> section.
177
189
</precheck>
178
190
 
179
191
<postcheck>