1 <testcase> 2 <info> 3 <keywords> 4 FTP 5 RETR 6 -J 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data nocheck="yes"> 13 fooo 14 mooo 15 </data> 16 </reply> 17 18 # Client-side 19 <client> 20 <server> 21 ftp 22 </server> 23 <name> 24 FTP DL, file without C-D inside, using -o fname -J -D file 25 </name> 26 <command option="no-output,no-include"> 27 ftp://%HOSTIP:%FTPPORT/path/file1381 -o log/download1381 -J -D log/heads1381 28 </command> 29 <postcheck> 30 perl %SRCDIR/libtest/notexists.pl log/file1381 31 </postcheck> 32 </client> 33 34 # Verify data after the test has been "shot" 35 <verify> 36 <protocol> 37 USER anonymous 38 PASS ftp (a] example.com 39 PWD 40 CWD path 41 EPSV 42 TYPE I 43 SIZE file1381 44 RETR file1381 45 QUIT 46 </protocol> 47 48 <file1 name="log/download1381"> 49 fooo 50 mooo 51 </file1> 52 53 <file2 name="log/heads1381"> 54 220- _ _ ____ _ 55 220- ___| | | | _ \| | 56 220- / __| | | | |_) | | 57 220- | (__| |_| | _ {| |___ 58 220 \___|\___/|_| \_\_____| 59 331 We are happy you popped in! 60 230 Welcome you silly person 61 257 "/" is current directory 62 250 CWD command successful. 63 229 Entering Passive Mode (stripped) 64 200 I modify TYPE as you wanted 65 213 10 66 150 Binary data connection for 1381 () (10 bytes). 67 226 File transfer complete 68 </file2> 69 <stripfile2> 70 s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ 71 </stripfile2> 72 73 <file3 name="log/stdout1381"> 74 </file3> 75 76 </verify> 77 </testcase> 78