diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-08-30 23:03:59 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-08-30 23:03:59 +0000 |
commit | f6251734fcb118bb513f8484b45aa653f5c76eb1 (patch) | |
tree | 0a91992aa36c27c91b04290f927c621b826a590b /tests/data/test615 | |
parent | 9f44a95522162c0f4a61093efe1bf1f58b087358 (diff) | |
download | curl-f6251734fcb118bb513f8484b45aa653f5c76eb1.tar.gz |
Added more accurate error code returns from SFTP operations. Added test
case 615 to test an SFTP upload failure.
Diffstat (limited to 'tests/data/test615')
-rw-r--r-- | tests/data/test615 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/data/test615 b/tests/data/test615 new file mode 100644 index 000000000..124982644 --- /dev/null +++ b/tests/data/test615 @@ -0,0 +1,44 @@ +<testcase> +<info> +<keywords> +SFTP +SFTP put +FAILURE +</keywords> +</info> + +# +# Client-side +<client> +<server> +sftp +</server> +<precheck> +perl %SRCDIR/libtest/test613.pl prepare %PWD/log/test615.dir +</precheck> + <name> +SFTP put remote failure + </name> + <command> +--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file615.txt sftp://%HOSTIP:%SSHPORT%PWD/log/test615.dir/rofile.txt +</command> +<postcheck> +perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test615.dir +</postcheck> +<file name="log/file615.txt"> +Test data +for ssh upload test +</file> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<errorcode> +9 +</errorcode> +<valgrind> +disable +</valgrind> +</verify> +</testcase> |