ftp tests: provide LIST responses in the test file itself
authorDaniel Stenberg <daniel@haxx.se>
Sat, 4 Jan 2014 22:39:30 +0000 (23:39 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 4 Jan 2014 22:39:30 +0000 (23:39 +0100)
commit5c0eae136b2c01a38c14a6148989b88ab8ab068f
treed40a87aa7f556f37fe85d10b67ca725fa20a957e
parent5220c1d69240dfab2087990d24229f81db9b4b33
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.
tests/FILEFORMAT
tests/data/test100
tests/ftpserver.pl