aboutsummaryrefslogtreecommitdiff
path: root/tests/README
diff options
context:
space:
mode:
Diffstat (limited to 'tests/README')
-rw-r--r--tests/README38
1 files changed, 7 insertions, 31 deletions
diff --git a/tests/README b/tests/README
index 6316d9369..41b0f7e02 100644
--- a/tests/README
+++ b/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