xref: /curl/tests/data/test611 (revision ca9106c1)
1<testcase>
2<info>
3<keywords>
4SFTP
5post-quote
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13Dummy test file for rename test
14</data>
15</reply>
16
17#
18# Client-side
19<client>
20<server>
21sftp
22</server>
23<precheck>
24%PERL %SRCDIR/libtest/test610.pl mkdir %PWD/%LOGDIR/test%TESTNUMBER.dir
25</precheck>
26<name>
27SFTP post-quote rename
28</name>
29<command>
30--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "-rename %SSH_PWD/%LOGDIR/test%TESTNUMBER.dir %SSH_PWD/%LOGDIR/test%TESTNUMBER.new" sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/file%TESTNUMBER.txt --insecure
31</command>
32<file name="%LOGDIR/file%TESTNUMBER.txt">
33Dummy test file for rename test
34</file>
35</client>
36
37#
38# Verify data after the test has been "shot"
39<verify>
40<postcheck>
41%PERL %SRCDIR/libtest/test610.pl rmdir %PWD/%LOGDIR/test%TESTNUMBER.new
42</postcheck>
43</verify>
44</testcase>
45