quickjs-tart

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

test542 (733B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 PASV
      6 RETR
      7 </keywords>
      8 </info>
      9 # Server-side
     10 <reply>
     11 <data>
     12 data
     13     to
     14       see
     15 that FTP
     16 works
     17   so does it?
     18 </data>
     19 <datacheck>
     20 Content-Length: 51
     21 Accept-ranges: bytes
     22 </datacheck>
     23 </reply>
     24 
     25 # Client-side
     26 <client>
     27 <server>
     28 ftp
     29 </server>
     30 <tool>
     31 lib%TESTNUMBER
     32 </tool>
     33 <name>
     34 FTP a file with NOBODY yes and HEADER no
     35 </name>
     36 <command>
     37 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
     38 </command>
     39 
     40 </client>
     41 
     42 # Verify data after the test has been "shot"
     43 #
     44 # There's no MTDM in the protocol here since this code doesn't ask for the
     45 # time/date of the file
     46 <verify>
     47 <strip>
     48 QUIT
     49 </strip>
     50 <protocol>
     51 USER anonymous
     52 PASS ftp@example.com
     53 PWD
     54 TYPE I
     55 SIZE %TESTNUMBER
     56 REST 0
     57 QUIT
     58 </protocol>
     59 </verify>
     60 </testcase>