lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 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 | Dummy test file for rename test |
| 14 | </data> |
| 15 | </reply> |
| 16 | |
| 17 | # |
| 18 | # Client-side |
| 19 | <client> |
| 20 | <server> |
| 21 | sftp |
| 22 | </server> |
| 23 | <precheck> |
| 24 | perl %SRCDIR/libtest/test610.pl mkdir %PWD/log/test611.dir |
| 25 | </precheck> |
| 26 | <name> |
| 27 | SFTP post-quote rename |
| 28 | </name> |
| 29 | <command> |
| 30 | --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rename %PWD/log/test611.dir %PWD/log/test611.new" sftp://%HOSTIP:%SSHPORT%PWD/log/file611.txt --insecure |
| 31 | </command> |
| 32 | <postcheck> |
| 33 | perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test611.new |
| 34 | </postcheck> |
| 35 | <file name="log/file611.txt"> |
| 36 | Dummy test file for rename test |
| 37 | </file> |
| 38 | </client> |
| 39 | |
| 40 | # |
| 41 | # Verify data after the test has been "shot" |
| 42 | <verify> |
| 43 | <valgrind> |
| 44 | disable |
| 45 | </valgrind> |
| 46 | </verify> |
| 47 | </testcase> |