1<testcase>
2<info>
3<keywords>
4FTP
5RETR
6-J
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data nocheck="yes">
13fooo
14mooo
15</data>
16</reply>
17
18# Client-side
19<client>
20<server>
21ftp
22</server>
23<name>
24FTP DL, file without C-D inside, using -o fname -J -D stdout
25</name>
26<command option="no-output,no-include">
27ftp://%HOSTIP:%FTPPORT/path/file1382 -o log/download1382 -J -D -
28</command>
29<postcheck>
30perl %SRCDIR/libtest/notexists.pl log/file1382
31</postcheck>
32</client>
33
34# Verify data after the test has been "shot"
35<verify>
36<protocol>
37USER anonymous
38PASS ftp@example.com
39PWD
40CWD path
41EPSV
42TYPE I
43SIZE file1382
44RETR file1382
45QUIT
46</protocol>
47
48<file1 name="log/download1382">
49fooo
50mooo
51</file1>
52
53<file2 name="log/stdout1382">
54220-        _   _ ____  _
55220-    ___| | | |  _ \| |
56220-   / __| | | | |_) | |
57220-  | (__| |_| |  _ {| |___
58220    \___|\___/|_| \_\_____|
59331 We are happy you popped in!
60230 Welcome you silly person
61257 "/" is current directory
62250 CWD command successful.
63229 Entering Passive Mode (stripped)
64200 I modify TYPE as you wanted
65213 10
66150 Binary data connection for 1382 () (10 bytes).
67226 File transfer complete
68</file2>
69<stripfile2>
70s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
71</stripfile2>
72
73</verify>
74</testcase>
75