quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test1381 (1407B)


      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/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -J -D %LOGDIR/heads%TESTNUMBER
     28 </command>
     29 </client>
     30 
     31 # Verify data after the test has been "shot"
     32 <verify>
     33 <strip>
     34 QUIT
     35 </strip>
     36 <protocol>
     37 USER anonymous
     38 PASS ftp@example.com
     39 PWD
     40 CWD path
     41 EPSV
     42 TYPE I
     43 SIZE file%TESTNUMBER
     44 RETR file%TESTNUMBER
     45 QUIT
     46 </protocol>
     47 
     48 <file1 name="%LOGDIR/download%TESTNUMBER">
     49 fooo
     50 mooo
     51 </file1>
     52 
     53 <file2 name="%LOGDIR/heads%TESTNUMBER">
     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 %TESTNUMBER () (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="%LOGDIR/stdout%TESTNUMBER">
     74 </file3>
     75 
     76 <notexists>
     77 %LOGDIR/file%TESTNUMBER
     78 </notexists>
     79 </verify>
     80 </testcase>