From 0e74e1d8d83d50ba1d411903ae2dbba13a71bdeb Mon Sep 17 00:00:00 2001 From: Henry Ludemann Date: Tue, 8 Mar 2011 00:19:49 +0100 Subject: sftp-multi: test 582 added Add test 582 for uploading a file using sftp and the multi interface. (Patch and test slightly tweaked by Daniel Stenberg) Initially marked as disabled until it is fixed in the source. --- tests/data/DISABLED | 4 ++++ tests/data/Makefile.am | 2 +- tests/data/test582 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 tests/data/test582 (limited to 'tests/data') diff --git a/tests/data/DISABLED b/tests/data/DISABLED index b6071cbd9..2485e89b9 100644 --- a/tests/data/DISABLED +++ b/tests/data/DISABLED @@ -3,3 +3,7 @@ # per line. # Lines starting with '#' letters are treated as comments. 564 +# Disabled due to a bug with uploading to an SFTP server using the multi +# interface. Easy work around; always pass 0 as the evBitmask to force CURL +# to re-evaluate the socket status. +582 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index aa060ed1a..3a76a288d 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -70,7 +70,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test313 test1115 test578 test579 test1116 test1200 test1201 test1202 \ test1203 test1117 test1118 test1119 test1120 test1300 test1301 test1302 \ test1303 test320 test321 test322 test323 test324 test1121 test581 test580 \ - test1304 test1305 test1306 test1307 + test1304 test1305 test1306 test1307 test582 filecheck: @mkdir test-place; \ diff --git a/tests/data/test582 b/tests/data/test582 new file mode 100644 index 000000000..8881a87d7 --- /dev/null +++ b/tests/data/test582 @@ -0,0 +1,46 @@ + + + +SFTP +multi + + + +# Server-side + + + + + +# Client-side + + +sftp + + +lib582 + + +SFTP upload using multi interface + + +Sftp://%HOSTIP:%SSHPORT%PWD/log/upload582.txt %PWD/log/file582.txt %USER: + + +Moooooooooooo + upload this + + + +# Verify data after the test has been "shot" + + + + + + +Moooooooooooo + upload this + + + -- cgit v1.2.3