mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Removed references to the previous file format, added some tests about
the new format but there's still much more to be said and done
This commit is contained in:
parent
d3516810a7
commit
915b10052c
38
tests/README
38
tests/README
@ -51,39 +51,13 @@ Logs:
|
||||
in the runtests.pl script)
|
||||
|
||||
Data:
|
||||
All test-data are put in the data/ subdirctory.
|
||||
All test-data are put in the data/ subdirctory. Each test is stored in the
|
||||
file named according to the test number.
|
||||
|
||||
For each tests there exist a few files, all with their own separate and
|
||||
special purpose. Replace N with the test number:
|
||||
The test case file format is simply a way to store different sections within
|
||||
the same physical file. The different sections are to be described here
|
||||
within shortly.
|
||||
|
||||
nameN.txt: test description as displayed when run
|
||||
|
||||
commandN.txt: command line options for this test
|
||||
|
||||
protN.txt: the full dump of the protocol communication that curl is
|
||||
expected to use when performing this test
|
||||
|
||||
replyN.txt: the full dump the server should reply to curl for this test.
|
||||
If the final result that curl should've got is not in this
|
||||
file, you can instead name the file replyN0001.txt. This
|
||||
enables you to fiddle more. ;-) Alas, the server sends the
|
||||
replyN.txt file but checks the result after the test against
|
||||
the *0001.txt file.
|
||||
|
||||
stdoutN.txt: if this file is present, curl's stdout is compared against
|
||||
this file to see that they're identical. If this is present,
|
||||
curl will not be run with -o but instead all output is compared
|
||||
against this file!
|
||||
|
||||
errorN.txt: if this file is present, it should contain the error number
|
||||
curl is supposed to return when this test is run.
|
||||
|
||||
uploadN.txt: if this file is present, it should contain the same data as
|
||||
the log/upload.N does, after a curl upload has been performed.
|
||||
|
||||
ftpdN.txt: this file may contain instructions how to modify the behaviour
|
||||
of the ftp server. It uses a simple syntax that is left to
|
||||
describe here!
|
||||
|
||||
TEST CASE NUMBERS
|
||||
|
||||
@ -100,5 +74,7 @@ TEST CASE NUMBERS
|
||||
|
||||
TODO:
|
||||
|
||||
* Port old test cases to the new file format
|
||||
|
||||
* Make httpserver.pl work when we PUT without Content-Length:
|
||||
* Add persistant connection support and test cases
|
||||
|
Loading…
Reference in New Issue
Block a user