From 915b10052c45852adb015fe5a4cdacdf860f462e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 23 May 2001 15:05:43 +0000 Subject: [PATCH] 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 --- tests/README | 38 +++++++------------------------------- 1 file 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