mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Made a few cleanups.
This commit is contained in:
parent
0f0540d00b
commit
7c144d5a7e
@ -1,11 +1,12 @@
|
|||||||
The test suite's file format is very simple and extendable, closely
|
The test suite's file format is very simple and extensible, closely
|
||||||
resembling XML. All data for a single test case resides in a single
|
resembling XML. All data for a single test case resides in a single
|
||||||
ASCII file. Labels mark the beginning and the end of all sections, and each
|
ASCII file. Labels mark the beginning and the end of all sections, and each
|
||||||
label must be written in its own line. Comments are either XML-style
|
label must be written in its own line. Comments are either XML-style
|
||||||
(enclosed with <!-- and -->) or C-style (beginning with #) and must appear
|
(enclosed with <!-- and -->) or C-style (beginning with #) and must appear
|
||||||
on their own lines and not alongside actual test data. Most test data files
|
on their own lines and not alongside actual test data. Most test data files
|
||||||
are syntactically valid XML, although a few files are not (lack of
|
are syntactically valid XML, although a few files are not (lack of
|
||||||
support for character entities is the biggest omission).
|
support for character entities and the preservation of CR/LF characters at
|
||||||
|
the end of lines are the biggest differences).
|
||||||
|
|
||||||
The file begins with a 'testcase' tag, which encompasses the remainder of
|
The file begins with a 'testcase' tag, which encompasses the remainder of
|
||||||
the file.
|
the file.
|
||||||
@ -146,6 +147,7 @@ restart servers.
|
|||||||
A command line that if set gets run by the test script before the test. If an
|
A command line that if set gets run by the test script before the test. If an
|
||||||
output is displayed by the command line, the test will be skipped and the
|
output is displayed by the command line, the test will be skipped and the
|
||||||
(single-line) output will be displayed as reason for not running the test.
|
(single-line) output will be displayed as reason for not running the test.
|
||||||
|
Variables are substituted as in the <command> section.
|
||||||
</precheck>
|
</precheck>
|
||||||
|
|
||||||
<tool>
|
<tool>
|
||||||
@ -162,7 +164,8 @@ variable1=contents1
|
|||||||
variable2=contents2
|
variable2=contents2
|
||||||
|
|
||||||
Set the given environment variables to the specified value before the actual
|
Set the given environment variables to the specified value before the actual
|
||||||
command is run, they are cleared again after the command has been run.
|
command is run. They are cleared again after the command has been run.
|
||||||
|
Variables are first substituted as in the <command> section.
|
||||||
</setenv>
|
</setenv>
|
||||||
|
|
||||||
<command [option="no-output"]>
|
<command [option="no-output"]>
|
||||||
@ -200,8 +203,10 @@ Available substitute variables include:
|
|||||||
</command>
|
</command>
|
||||||
|
|
||||||
<file name="log/filename">
|
<file name="log/filename">
|
||||||
this creates the named file with this content before the test case is run
|
This creates the named file with this content before the test case is run,
|
||||||
which is useful if the test case needs a file to act on.
|
which is useful if the test case needs a file to act on.
|
||||||
|
Variables are substituted on the contents of the file as in the <command>
|
||||||
|
section.
|
||||||
</file>
|
</file>
|
||||||
|
|
||||||
<stdin>
|
<stdin>
|
||||||
@ -233,13 +238,13 @@ actually sent by the client
|
|||||||
<stdout [mode="text"]>
|
<stdout [mode="text"]>
|
||||||
This verifies that this data was passed to stdout.
|
This verifies that this data was passed to stdout.
|
||||||
|
|
||||||
Use the "mode="text"" attribute if the output is in text mode on platforms that
|
Use the mode="text" attribute if the output is in text mode on platforms that
|
||||||
have a text/binary difference.
|
have a text/binary difference.
|
||||||
</stdout>
|
</stdout>
|
||||||
<file name="log/filename" [mode="text"]>
|
<file name="log/filename" [mode="text"]>
|
||||||
The file's contents must be identical to this after the test is complete.
|
The file's contents must be identical to this after the test is complete.
|
||||||
|
|
||||||
Use the "mode="text" attribute if the output is in text mode on platforms that
|
Use the mode="text" attribute if the output is in text mode on platforms that
|
||||||
have a text/binary difference.
|
have a text/binary difference.
|
||||||
</file>
|
</file>
|
||||||
<stripfile>
|
<stripfile>
|
||||||
|
Loading…
Reference in New Issue
Block a user