From: Jonas Schnelli Date: Fri, 18 Nov 2011 19:30:46 +0000 (+0100) Subject: test: SFTP quote commands with * prefix X-Git-Tag: curl-7_24_0~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0db5ff678ecca068ca85b454517fb4585da85f1;p=curl test: SFTP quote commands with * prefix Related to the f64812ca63 commit --- diff --git a/tests/data/test638 b/tests/data/test638 new file mode 100644 index 000000000..c72cf636a --- /dev/null +++ b/tests/data/test638 @@ -0,0 +1,49 @@ + + + +SFTP +post-quote +acceptfail +asterisk + + + +# +# Server-side + + +Dummy test file for rename test + + + +# +# Client-side + + +sftp + + +perl %SRCDIR/libtest/test610.pl mkdir %PWD/log/test638.dir + + +SFTP post-quote rename * asterisk accept-fail + + +--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-*rename %PWD/log/test638.dir %PWD/log/test638.new" sftp://%HOSTIP:%SSHPORT%PWD/log/file638.txt --insecure + + +perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test638.new + + +Dummy test file for rename test + + + +# +# Verify data after the test has been "shot" + + +disable + + + diff --git a/tests/data/test639 b/tests/data/test639 new file mode 100644 index 000000000..8dfe85975 --- /dev/null +++ b/tests/data/test639 @@ -0,0 +1,49 @@ + + + +SFTP +post-quote +acceptfail +asterisk + + + +# +# Server-side + + +Dummy test file for rename test + + + +# +# Client-side + + +sftp + + +perl %SRCDIR/libtest/test610.pl mkdir %PWD/log/test639.dir + + +SFTP post-quote rename * asterisk accept-fail + + +--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-*rename %PWD/log/test639-not-exists-dir %PWD/log/test639.new" sftp://%HOSTIP:%SSHPORT%PWD/log/file639.txt --insecure + + +perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test639.dir + + +Dummy test file for rename test + + + +# +# Verify data after the test has been "shot" + + +disable + + +