quickjs-tart

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

test754 (1259B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 list
      6 post-quote
      7 pre-quote
      8 </keywords>
      9 </info>
     10 # Server-side
     11 <reply>
     12 <data mode="text">
     13 total 20
     14 drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
     15 drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
     16 drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
     17 -r--r--r--   1 0        1             35 Jul 16  1996 README
     18 lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
     19 dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
     20 drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
     21 dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
     22 drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
     23 dr-xr-xr-x   5 0        1            512 Oct  1  1997 usr
     24 </data>
     25 <servercmd>
     26 REPLY FAIL 500 this might not be a failure!
     27 </servercmd>
     28 </reply>
     29 
     30 # Client-side
     31 <client>
     32 <server>
     33 ftp
     34 </server>
     35 <name>
     36 FTP list with quote ops
     37 </name>
     38 <command>
     39 ftp://%HOSTIP:%FTPPORT/path/ -Q "NOOP 1" -Q "+NOOP 2" -Q "-NOOP 3" -Q "*FAIL" -Q "+*FAIL HARD"
     40 </command>
     41 </client>
     42 
     43 # Verify data after the test has been "shot"
     44 <verify>
     45 <strip>
     46 QUIT
     47 </strip>
     48 <protocol>
     49 USER anonymous
     50 PASS ftp@example.com
     51 PWD
     52 NOOP 1
     53 FAIL
     54 CWD path
     55 EPSV
     56 TYPE A
     57 NOOP 2
     58 FAIL HARD
     59 LIST
     60 NOOP 3
     61 QUIT
     62 </protocol>
     63 </verify>
     64 </testcase>