From: "Randall S. Becker" <rsbecker@nexbridge.com>
To: <git@vger.kernel.org>
Subject: [Patch 3/3] t5601: add nonstopssh SSH variant sub-tests
Date: Fri, 30 Apr 2021 10:56:10 -0400 [thread overview]
Message-ID: <012101d73dd0$f4fc0d10$def42730$@nexbridge.com> (raw)
From 375278eb010a91f0ad3114ca2334cd85c4519208 Mon Sep 17 00:00:00 2001
From: "Randall S. Becker" <rsbecker@nexbridge.com>
Date: Fri, 30 Apr 2021 10:10:28 -0400
Subject: [Patch 3/3] t5601: add nonstopssh SSH variant sub-tests
Tests added are creation of the base configuration for nonstopssh
with defaults, banner suppression, verbosity suppression, and
explicit specification of the platform's SSH2 process name
(for example $ZSSH0).
Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
---
t/t5601-clone.sh | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index e7e6c08955..39b49ef67e 100755
--- a/t/t5601-clone.sh
+++ b/t/t5601-clone.sh
@@ -474,6 +474,40 @@ test_expect_success 'GIT_SSH_VARIANT overrides plink to tortoiseplink' '
expect_ssh "-batch -P 123" myhost src
'
+test_expect_success 'nonstopssh base configuration' '
+ copy_ssh_wrapper_as "$TRASH_DIRECTORY/nonstopssh" &&
+ unset SSH2_PROCESS_NAME &&
+ GIT_SSH_VARIANT=nonstopssh \
+ git clone "[myhost:123]:src" ssh-bracket-clone-nonstopssh &&
+ expect_ssh "-p 123 -Z -Q" myhost src
+'
+
+test_expect_success 'nonstopssh suppress banner' '
+ copy_ssh_wrapper_as "$TRASH_DIRECTORY/nonstopssh" &&
+ unset SSH2_PROCESS_NAME &&
+ GIT_SSH_VARIANT=nonstopssh \
+ SSH_SUPPRESS_BANNER=1 \
+ git clone "[myhost:123]:src" ssh-bracket-clone-nonstopssh2 &&
+ expect_ssh "-p 123 -Q" myhost src
+'
+
+test_expect_success 'nonstopssh suppress quiet' '
+ copy_ssh_wrapper_as "$TRASH_DIRECTORY/nonstopssh" &&
+ unset SSH2_PROCESS_NAME &&
+ GIT_SSH_VARIANT=nonstopssh \
+ SSH_SUPPRESS_QUIET=1 \
+ git clone "[myhost:123]:src" ssh-bracket-clone-nonstopssh3 &&
+ expect_ssh "-p 123 -Z" myhost src
+'
+
+test_expect_success 'nonstopssh supply SSH process name' '
+ copy_ssh_wrapper_as "$TRASH_DIRECTORY/nonstopssh" &&
+ GIT_SSH_VARIANT=nonstopssh \
+ SSH2_PROCESS_NAME=\$ZSSH0 \
+ git clone "[myhost:123]:src" ssh-bracket-clone-nonstopssh4 &&
+ expect_ssh "-p 123 -Z -Q -S \$ZSSH0" myhost src
+'
+
test_expect_success 'clean failure on broken quoting' '
test_must_fail \
env GIT_SSH_COMMAND="${SQ}plink.exe -v" \
--
2.29.2
reply other threads:[~2021-04-30 15:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='012101d73dd0$f4fc0d10$def42730$@nexbridge.com' \
--to=rsbecker@nexbridge.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).