Commit 458925ae authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Added tests 618-621 to test SFTP/SCP transfers of more than one file

(test 620 tests the just-fixed problem reported by Brian Ulm).
parent e44dc921
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -6,6 +6,10 @@


                                  Changelog
                                  Changelog


Daniel Fandrich (10 Mar 2008)
- Added tests 618-621 to test SFTP/SCP transfers of more than one file
  (test 620 tests the just-fixed problem reported by Brian Ulm).

Daniel Stenberg (9 Mar 2008)
Daniel Stenberg (9 Mar 2008)
- Brian Ulm reported a crash when doing a second SFTP transfer on a re-used
- Brian Ulm reported a crash when doing a second SFTP transfer on a re-used
  easy handle if curl_easy_reset() was used between them. I fixed it and Brian
  easy handle if curl_easy_reset() was used between them. I fixed it and Brian
+2 −1
Original line number Original line Diff line number Diff line
@@ -48,7 +48,8 @@ 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 test616 test617
 test1021 test1022 test1023 test309 test616 test617 test618 test619        \
 test620 test621


filecheck:
filecheck:
	@mkdir test-place; \
	@mkdir test-place; \

tests/data/test618

0 → 100644
+39 −0
Original line number Original line Diff line number Diff line
<testcase>
<info>
<keywords>
SFTP
</keywords>
</info>

#
# Client-side
<client>
<server>
sftp
</server>
 <name>
SFTP retrieval of two files
 </name>
 <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file618.txt sftp://%HOSTIP:%SSHPORT%PWD/log/file618.txt
</command>
<file name="log/file618.txt">
Test data
for ssh test
</file>
</client>

#
# Verify data after the test has been "shot"
<verify>
<valgrind>
disable
</valgrind>
<stdout>
Test data
for ssh test
Test data
for ssh test
</stdout>
</verify>
</testcase>

tests/data/test619

0 → 100644
+39 −0
Original line number Original line Diff line number Diff line
<testcase>
<info>
<keywords>
SCP
</keywords>
</info>

#
# Client-side
<client>
<server>
scp
</server>
 <name>
SCP retrieval of two files
 </name>
 <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/file619.txt scp://%HOSTIP:%SSHPORT%PWD/log/file619.txt
</command>
<file name="log/file619.txt">
Test data
for ssh test
</file>
</client>

#
# Verify data after the test has been "shot"
<verify>
<valgrind>
disable
</valgrind>
<stdout>
Test data
for ssh test
Test data
for ssh test
</stdout>
</verify>
</testcase>

tests/data/test620

0 → 100644
+38 −0
Original line number Original line Diff line number Diff line
<testcase>
<info>
<keywords>
SFTP
FAILURE
</keywords>
</info>

#
# Client-side
<client>
<server>
sftp
</server>
 <name>
SFTP retrieval of missing file followed by good file
 </name>
 <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/not-a-valid-file-moooo sftp://%HOSTIP:%SSHPORT%PWD/log/file620.txt
</command>
<file name="log/file620.txt">
Test data
for ssh test
</file>
</client>

#
# Verify data after the test has been "shot"
<verify>
<valgrind>
disable
</valgrind>
<stdout>
Test data
for ssh test
</stdout>
</verify>
</testcase>
Loading