blob: e6f0d77f0eb2c0729e96d66b615c92b17de46d29 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4SFTP
5SFTP put
6--ftp-create-dirs
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13</reply>
14
15#
16# Client-side
17<client>
18<server>
19sftp
20</server>
21 <name>
22SFTP put with --ftp-create-dirs twice
23 </name>
24 <command>
25--ftp-create-dirs --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/log/test%TESTNUMBER.a/upload.%TESTNUMBER -T log/file%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/log/test%TESTNUMBER.b/upload.%TESTNUMBER --insecure
26</command>
27<postcheck>
28perl %SRCDIR/libtest/test610.pl move %PWD/log/test%TESTNUMBER.a/upload.%TESTNUMBER %PWD/log/upload.%TESTNUMBER rmdir %PWD/log/test%TESTNUMBER.a rm %PWD/log/test%TESTNUMBER.b/upload.%TESTNUMBER rmdir %PWD/log/test%TESTNUMBER.b
29</postcheck>
30<file name="log/file%TESTNUMBER.txt">
31Test data
32for ssh upload test
33</file>
34</client>
35
36#
37# Verify data after the test has been "shot"
38<verify>
39<upload>
40Test data
41for ssh upload test
42</upload>
43<valgrind>
44disable
45</valgrind>
46</verify>
47</testcase>