xref: /third_party/curl/tests/data/test608 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciSFTP
513498266Sopenharmony_cipost-quote
613498266Sopenharmony_ci</keywords>
713498266Sopenharmony_ci</info>
813498266Sopenharmony_ci
913498266Sopenharmony_ci#
1013498266Sopenharmony_ci# Server-side
1113498266Sopenharmony_ci<reply>
1213498266Sopenharmony_ci<data>
1313498266Sopenharmony_ciTest file for rename test
1413498266Sopenharmony_ci</data>
1513498266Sopenharmony_ci</reply>
1613498266Sopenharmony_ci
1713498266Sopenharmony_ci#
1813498266Sopenharmony_ci# Client-side
1913498266Sopenharmony_ci<client>
2013498266Sopenharmony_ci<server>
2113498266Sopenharmony_cisftp
2213498266Sopenharmony_ci</server>
2313498266Sopenharmony_ci<name>
2413498266Sopenharmony_ciSFTP post-quote rename
2513498266Sopenharmony_ci</name>
2613498266Sopenharmony_ci<command>
2713498266Sopenharmony_ci--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "-rename %PWD/%LOGDIR/file%TESTNUMBER.txt %PWD/%LOGDIR/file%TESTNUMBER-renamed.txt" sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/file%TESTNUMBER.txt --insecure
2813498266Sopenharmony_ci</command>
2913498266Sopenharmony_ci# Verify that the file was renamed properly, then rename the file back to what
3013498266Sopenharmony_ci# it was so the verify section works and the file can be cleaned up.
3113498266Sopenharmony_ci<postcheck>
3213498266Sopenharmony_ciperl %SRCDIR/libtest/test610.pl gone %PWD/%LOGDIR/file%TESTNUMBER.txt move %PWD/%LOGDIR/file%TESTNUMBER-renamed.txt %PWD/%LOGDIR/file%TESTNUMBER.txt
3313498266Sopenharmony_ci</postcheck>
3413498266Sopenharmony_ci<file name="%LOGDIR/file%TESTNUMBER.txt">
3513498266Sopenharmony_ciTest file for rename test
3613498266Sopenharmony_ci</file>
3713498266Sopenharmony_ci</client>
3813498266Sopenharmony_ci
3913498266Sopenharmony_ci#
4013498266Sopenharmony_ci# Verify data after the test has been "shot"
4113498266Sopenharmony_ci<verify>
4213498266Sopenharmony_ci<file name="%LOGDIR/file%TESTNUMBER.txt">
4313498266Sopenharmony_ciTest file for rename test
4413498266Sopenharmony_ci</file>
4513498266Sopenharmony_ci<valgrind>
4613498266Sopenharmony_cidisable
4713498266Sopenharmony_ci</valgrind>
4813498266Sopenharmony_ci</verify>
4913498266Sopenharmony_ci</testcase>
50