From 5c0eae136b2c01a38c14a6148989b88ab8ab068f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 4 Jan 2014 23:39:30 +0100 Subject: ftp tests: provide LIST responses in the test file itself Previously LIST always returned a fixed hardcoded list that the ftp server code knew about, mostly since the server didn't get any test case number in the LIST scenario. Starting now, doing a CWD to a directory named test-[number] will make the test server remember that number and consider it a test case so that a subsequent LIST command will send the section of that test case back. It allows LIST tests to be made more similar to how all other tests work. Test 100 was updated to provide its own directory listing. --- tests/FILEFORMAT | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/FILEFORMAT') diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT index 0815556b1..4f05e3900 100644 --- a/tests/FILEFORMAT +++ b/tests/FILEFORMAT @@ -59,6 +59,12 @@ transfers. of data encoded with base64. It is the only way a test case can contain binary data. (This attribute can in fact be used on any section, but it doesn't make much sense for other sections than "data"). + +For FTP file listings, the section will be used *only* if you make sure +that there has been a CWD done first to a directory named 'test-[num]' where +[num] is the test case number. Otherwise the ftp server can't know from which +test file to load the list content. + Send back this contents instead of the one. The num is set by: -- cgit v1.2.3