quickjs-tart

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

test494 (743B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 EPSV
      6 netrc
      7 macdef
      8 </keywords>
      9 </info>
     10 #
     11 # Server-side
     12 <reply>
     13 <data>
     14 blipp
     15 </data>
     16 </reply>
     17 
     18 #
     19 # Client-side
     20 <client>
     21 <server>
     22 ftp
     23 </server>
     24 <name>
     25 skip 'macdef' when parsing netrc
     26 </name>
     27 <command>
     28 --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
     29 </command>
     30 <file name="%LOGDIR/netrc%TESTNUMBER" >
     31 
     32 macdef testmacro
     33 	bin
     34 	cd default
     35 	cd login
     36 	put login.bin
     37 	cd ..
     38 	cd password
     39 	put password.bin
     40 	quit
     41 
     42 machine %HOSTIP login user1 password passwd1
     43 </file>
     44 </client>
     45 
     46 #
     47 # Verify data after the test has been "shot"
     48 <verify>
     49 <strip>
     50 QUIT
     51 </strip>
     52 <protocol>
     53 USER user1
     54 PASS passwd1
     55 PWD
     56 EPSV
     57 TYPE I
     58 SIZE %TESTNUMBER
     59 RETR %TESTNUMBER
     60 QUIT
     61 </protocol>
     62 </verify>
     63 </testcase>