From 61591eee68b4820442feeacfb7670fd091b441b1 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 13 Mar 2014 03:22:02 +0100 Subject: [PATCH] test640/1: add tests for --head with sftp and scp This option is currently rather useless with these protocols when no quote command is given, but it is valid. --- tests/data/Makefile.am | 2 +- tests/data/test640 | 41 +++++++++++++++++++++++++++++++++++++++++ tests/data/test641 | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 tests/data/test640 create mode 100644 tests/data/test641 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 53e8327fa..9251d9be2 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -58,7 +58,7 @@ test599 test600 test601 test602 test603 test604 test605 test606 test607 \ test608 test609 test610 test611 test612 test613 test614 test615 test616 \ test617 test618 test619 test620 test621 test622 test623 test624 test625 \ test626 test627 test628 test629 test630 test631 test632 test633 test634 \ -test635 test636 test637 test638 test639 \ +test635 test636 test637 test638 test639 test640 test641 \ \ test700 test701 test702 test703 test704 test705 test706 test707 test708 \ test709 test710 test711 test712 \ diff --git a/tests/data/test640 b/tests/data/test640 new file mode 100644 index 000000000..e3e715ba1 --- /dev/null +++ b/tests/data/test640 @@ -0,0 +1,41 @@ + + + +SFTP +NOBODY + + + +# +# Server-side + + + + + +# +# Client-side + + +sftp + + +SFTP --head retrieval + + +--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file640.txt --insecure --head + + +Test data +for ssh test + + + +# +# Verify data after the test has been "shot" + + +disable + + + diff --git a/tests/data/test641 b/tests/data/test641 new file mode 100644 index 000000000..beb59d6a7 --- /dev/null +++ b/tests/data/test641 @@ -0,0 +1,41 @@ + + + +SCP +NOBODY + + + +# +# Server-side + + + + + +# +# Client-side + + +scp + + +SCP --head retrieval + + +--key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/file641.txt --insecure --head + + +Test data +for ssh test + + + +# +# Verify data after the test has been "shot" + + +disable + + +