mirror of https://github.com/moparisthebest/curl
Added tests 616 and 617 to see how SFTP and SCP cope with zero-length
files, as questioned by Mike Protts. SFTP does for me but SCP doesn't so test 617 is disabled for now.
This commit is contained in:
parent
80cec5a62a
commit
b16ea66cec
7
CHANGES
7
CHANGES
|
@ -6,6 +6,13 @@
|
||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel Fandrich (5 Mar 2008)
|
||||||
|
- Fixed the test harness so it will write out zero-length data files.
|
||||||
|
|
||||||
|
- Added tests 616 and 617 to see how SFTP and SCP cope with zero-length
|
||||||
|
files, as questioned by Mike Protts. SFTP does for me but SCP doesn't
|
||||||
|
so test 617 is disabled for now.
|
||||||
|
|
||||||
Daniel S (4 Mar 2008)
|
Daniel S (4 Mar 2008)
|
||||||
- Mike Protts brought a patch that makes resumed transfers work with SFTP.
|
- Mike Protts brought a patch that makes resumed transfers work with SFTP.
|
||||||
|
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
# test cases are run by runtests.pl. Just add the plain test case numbers, one
|
# test cases are run by runtests.pl. Just add the plain test case numbers, one
|
||||||
# per line.
|
# per line.
|
||||||
# Lines starting with '#' letters are treated as comments.
|
# Lines starting with '#' letters are treated as comments.
|
||||||
#1009
|
617
|
||||||
|
|
|
@ -48,7 +48,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
|
||||||
test2000 test2001 test2002 test2003 test35 test544 test545 test2004 \
|
test2000 test2001 test2002 test2003 test35 test544 test545 test2004 \
|
||||||
test546 test1013 test1014 test1015 test547 test548 test549 test550 \
|
test546 test1013 test1014 test1015 test547 test548 test549 test550 \
|
||||||
test551 test552 test1016 test1017 test1018 test1019 test1020 test553 \
|
test551 test552 test1016 test1017 test1018 test1019 test1020 test553 \
|
||||||
test1021 test1022 test1023 test309
|
test1021 test1022 test1023 test309 test616 test617
|
||||||
|
|
||||||
filecheck:
|
filecheck:
|
||||||
@mkdir test-place; \
|
@mkdir test-place; \
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
<testcase>
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
SFTP
|
||||||
|
zero-length
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Server-side
|
||||||
|
<reply>
|
||||||
|
<data sendzero="yes">
|
||||||
|
</data>
|
||||||
|
</reply>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
sftp
|
||||||
|
</server>
|
||||||
|
<name>
|
||||||
|
SFTP retrieval of empty file
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file616.txt
|
||||||
|
</command>
|
||||||
|
<file name="log/file616.txt">
|
||||||
|
</file>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify data after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
<valgrind>
|
||||||
|
disable
|
||||||
|
</valgrind>
|
||||||
|
</verify>
|
||||||
|
</testcase>
|
|
@ -0,0 +1,39 @@
|
||||||
|
<testcase>
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
SCP
|
||||||
|
zero-length
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Server-side
|
||||||
|
<reply>
|
||||||
|
<data sendzero="yes">
|
||||||
|
</data>
|
||||||
|
</reply>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
scp
|
||||||
|
</server>
|
||||||
|
<name>
|
||||||
|
SCP retrieval of empty file
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
--key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/file617.txt
|
||||||
|
</command>
|
||||||
|
<file name="log/file617.txt">
|
||||||
|
</file>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify data after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
<valgrind>
|
||||||
|
disable
|
||||||
|
</valgrind>
|
||||||
|
</verify>
|
||||||
|
</testcase>
|
Loading…
Reference in New Issue