File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test1382
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 3 10:01:16 2020 UTC (5 years ago) by misho
Branches: curl, MAIN
CVS tags: v7_70_0p4, HEAD
curl

    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 stdout
   25: </name>
   26: <command option="no-output,no-include">
   27: ftp://%HOSTIP:%FTPPORT/path/file1382 -o log/download1382 -J -D -
   28: </command>
   29: <postcheck>
   30: perl %SRCDIR/libtest/notexists.pl log/file1382
   31: </postcheck>
   32: </client>
   33: 
   34: # Verify data after the test has been "shot"
   35: <verify>
   36: <protocol>
   37: USER anonymous
   38: PASS ftp@example.com
   39: PWD
   40: CWD path
   41: EPSV
   42: TYPE I
   43: SIZE file1382
   44: RETR file1382
   45: QUIT
   46: </protocol>
   47: 
   48: <file1 name="log/download1382">
   49: fooo
   50: mooo
   51: </file1>
   52: 
   53: <file2 name="log/stdout1382">
   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 1382 () (10 bytes).
   67: 226 File transfer complete
   68: </file2>
   69: <stripfile2>
   70: s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
   71: </stripfile2>
   72: 
   73: </verify>
   74: </testcase>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>