blob: 32604c6f31b617cdf9461f6eaa3fcd43e56f548e [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4FTP
5PASV
6FILE
7multiprotocol
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<data nocheck="yes">
15data
16 to
17 see
18that FTP
19works
20 so does it?
21</data>
22</reply>
23
24#
25# Client-side
26<client>
27<server>
28ftp
29file
30</server>
31 <name>
32FTP RETR followed by FILE
33 </name>
34<command option="no-include">
35ftp://%HOSTIP:%FTPPORT/%TESTNUMBER file://localhost%FILE_PWD/log/test%TESTNUMBER.txt
36</command>
37<file name="log/test%TESTNUMBER.txt">
38foo
39 bar
40bar
41 foo
42moo
43</file>
44</client>
45
46#
47# Verify data after the test has been "shot"
48<verify>
49<protocol>
50USER anonymous
51PASS ftp@example.com
52PWD
53EPSV
54TYPE I
55SIZE %TESTNUMBER
56RETR %TESTNUMBER
57QUIT
58</protocol>
59<stdout>
60data
61 to
62 see
63that FTP
64works
65 so does it?
66foo
67 bar
68bar
69 foo
70moo
71</stdout>
72</verify>
73</testcase>