diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-01-04 23:39:30 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-01-04 23:39:30 +0100 |
commit | 5c0eae136b2c01a38c14a6148989b88ab8ab068f (patch) | |
tree | d40a87aa7f556f37fe85d10b67ca725fa20a957e /tests/FILEFORMAT | |
parent | 5220c1d69240dfab2087990d24229f81db9b4b33 (diff) | |
download | curl-5c0eae136b2c01a38c14a6148989b88ab8ab068f.tar.gz |
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
<data> 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.
Diffstat (limited to 'tests/FILEFORMAT')
-rw-r--r-- | tests/FILEFORMAT | 6 |
1 files changed, 6 insertions, 0 deletions
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 <data> 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. + </data> <dataNUM> Send back this contents instead of the <data> one. The num is set by: |