quickjs-tart

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

test608 (1073B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 SFTP
      5 post-quote
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 Test file for rename test
     14 </data>
     15 </reply>
     16 
     17 #
     18 # Client-side
     19 <client>
     20 <server>
     21 sftp
     22 </server>
     23 <name>
     24 SFTP post-quote rename
     25 </name>
     26 <command>
     27 --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "-rename %SFTP_PWD/%LOGDIR/file%TESTNUMBER.txt %SFTP_PWD/%LOGDIR/file%TESTNUMBER-renamed.txt" sftp://%HOSTIP:%SSHPORT%SFTP_PWD/%LOGDIR/file%TESTNUMBER.txt --insecure
     28 </command>
     29 # Verify that the file was renamed properly, then rename the file back to what
     30 # it was so the verify section works and the file can be cleaned up.
     31 <file name="%LOGDIR/file%TESTNUMBER.txt">
     32 Test file for rename test
     33 </file>
     34 </client>
     35 
     36 #
     37 # Verify data after the test has been "shot"
     38 <verify>
     39 <file name="%LOGDIR/file%TESTNUMBER.txt">
     40 Test file for rename test
     41 </file>
     42 <postcheck>
     43 %PERL %SRCDIR/libtest/test610.pl gone %PWD/%LOGDIR/file%TESTNUMBER.txt move %PWD/%LOGDIR/file%TESTNUMBER-renamed.txt %PWD/%LOGDIR/file%TESTNUMBER.txt
     44 </postcheck>
     45 </verify>
     46 </testcase>