@@ -6,13 +6,13 @@ SPDX-License-Identifier: curl
6
6
7
7
# curl test suite file format
8
8
9
- The curl test suite's file format is very simple and extensible , closely
10
- resembling XML. All data for a single test case resides in a single ASCII
11
- file. Labels mark the beginning and the end of all sections, and each label
12
- must be written in its own line. Comments are either XML-style (enclosed with
13
- ` <!-- ` and ` -- >` ) or shell script style (beginning with ` # ` ) and must appear
14
- on their own lines and not alongside actual test data. Most test data files
15
- are syntactically valid XML, although a few files are not (lack of support for
9
+ The curl test suite's file format is simple and extendable , closely resembling
10
+ XML. All data for a single test case resides in a single ASCII file. Labels
11
+ mark the beginning and the end of all sections, and each label must be written
12
+ in its own line. Comments are either XML-style (enclosed with ` <!-- ` and
13
+ ` -- >` ) or shell script style (beginning with ` # ` ) and must appear on their own
14
+ lines and not alongside actual test data. Most test data files are
15
+ syntactically valid XML, although a few files are not (lack of support for
16
16
character entities and the preservation of CR/LF characters at the end of
17
17
lines are the biggest differences).
18
18
@@ -185,11 +185,11 @@ that will be checked/used if specified.
185
185
186
186
### ` <keywords> `
187
187
A newline-separated list of keywords describing what this test case uses and
188
- tests. Try to use already used keywords. These keywords will be used for
188
+ tests. Try to use already used keywords. These keywords will be used for
189
189
statistical/informational purposes and for choosing or skipping classes of
190
- tests. " Keywords" must begin with an alphabetic character, "-", " [ " or "{"
191
- and may actually consist of multiple words separated by spaces which are
192
- treated together as a single identifier.
190
+ tests. Keywords must begin with an alphabetic character, ` - ` , ` [ ` or ` { ` and
191
+ may actually consist of multiple words separated by spaces which are treated
192
+ together as a single identifier.
193
193
194
194
When using curl built with Hyper, the keywords must include HTTP or HTTPS for
195
195
'hyper mode' to kick in and make line ending checks work for tests.
@@ -245,7 +245,7 @@ Send back this contents instead of the <data> one. The num is set by:
245
245
Dynamically changing num in this way allows the test harness to be used to
246
246
test authentication negotiation where several different requests must be sent
247
247
to complete a transfer. The response to each request is found in its own data
248
- section. Validating the entire negotiation sequence can be done by specifying
248
+ section. Validating the entire negotiation sequence can be done by specifying
249
249
a datacheck section.
250
250
251
251
### ` <connect> `
@@ -369,7 +369,7 @@ What server(s) this test case requires/uses. Available servers:
369
369
- ` socks4 `
370
370
- ` socks5 `
371
371
372
- Give only one per line. This subsection is mandatory.
372
+ Give only one per line. This subsection is mandatory.
373
373
374
374
### ` <features> `
375
375
A list of features that MUST be present in the client/library for this test to
@@ -437,9 +437,9 @@ Features testable here are:
437
437
- ` wolfssh `
438
438
- ` wolfssl `
439
439
440
- as well as each protocol that curl supports. A protocol only needs to be
441
- specified if it is different from the server (useful when the server
442
- is ` none ` ).
440
+ as well as each protocol that curl supports. A protocol only needs to be
441
+ specified if it is different from the server (useful when the server is
442
+ ` none ` ).
443
443
444
444
### ` <killserver> `
445
445
Using the same syntax as in ` <server> ` but when mentioned here these servers
@@ -505,20 +505,20 @@ Set `option="no-include"` to prevent the test script to slap on the
505
505
` --include ` argument.
506
506
507
507
Set ` option="binary-trace" ` to use ` --trace ` instead of ` --trace-ascii ` for
508
- tracing. Suitable for binary-oriented protocols such as MQTT.
508
+ tracing. Suitable for binary-oriented protocols such as MQTT.
509
509
510
510
Set ` timeout="secs" ` to override default server logs advisor read lock
511
- timeout. This timeout is used by the test harness, once that the command has
511
+ timeout. This timeout is used by the test harness, once that the command has
512
512
completed execution, to wait for the test server to write out server side log
513
513
files and remove the lock that advised not to read them. The "secs" parameter
514
514
is the not negative integer number of seconds for the timeout. This ` timeout `
515
515
attribute is documented for completeness sake, but is deep test harness stuff
516
- and only needed for very singular and specific test cases. Avoid using it.
516
+ and only needed for singular and specific test cases. Avoid using it.
517
517
518
518
Set ` delay="secs" ` to introduce a time delay once that the command has
519
519
completed execution and before the ` <postcheck> ` section runs. The "secs"
520
520
parameter is the not negative integer number of seconds for the delay. This
521
- 'delay' attribute is intended for very specific test cases, and normally not
521
+ 'delay' attribute is intended for specific test cases, and normally not
522
522
needed.
523
523
524
524
### ` <file name="log/filename" [nonewline="yes"]> `
@@ -542,7 +542,7 @@ example.
542
542
543
543
### ` <strip> `
544
544
One regex per line that is removed from the protocol dumps before the
545
- comparison is made. This is very useful to remove dependencies on dynamically
545
+ comparison is made. This is useful to remove dependencies on dynamically
546
546
changing protocol data such as port numbers or user-agent strings.
547
547
548
548
### ` <strippart> `
@@ -582,7 +582,7 @@ If 'nonewline' is set, we will cut off the trailing newline of this given data
582
582
before comparing with the one actually received by the client
583
583
584
584
### ` <file name="log/filename" [mode="text"]> `
585
- The file's contents must be identical to this after the test is complete. Use
585
+ The file's contents must be identical to this after the test is complete. Use
586
586
the mode="text" attribute if the output is in text mode on platforms that have
587
587
a text/binary difference.
588
588
0 commit comments