summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-01-10 21:14:40 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-01-17 21:06:06 -0500
commit6913422323a5df43020eeb8bd05cb7780228ecc2 (patch)
tree5ae17820729ec74c73f5a6f984eb53e504384e78
parente2bda60a524fef857763ce8605b0be277ef12f37 (diff)
downloadlibgit2-6913422323a5df43020eeb8bd05cb7780228ecc2.tar.gz
ci: test `[user@host:port]:path` formats
-rwxr-xr-xci/test.sh20
1 files changed, 15 insertions, 5 deletions
diff --git a/ci/test.sh b/ci/test.sh
index 0dc43aa87..a94839778 100755
--- a/ci/test.sh
+++ b/ci/test.sh
@@ -300,18 +300,28 @@ if [ -z "$SKIP_NEGOTIATE_TESTS" -a -n "$GITTEST_NEGOTIATE_PASSWORD" ]; then
fi
if [ -z "$SKIP_SSH_TESTS" ]; then
- echo ""
- echo "Running ssh tests"
- echo ""
-
- export GITTEST_REMOTE_URL="ssh://localhost:2222/$SSHD_DIR/test.git"
export GITTEST_REMOTE_USER=$USER
export GITTEST_REMOTE_SSH_KEY="${HOME}/.ssh/id_rsa"
export GITTEST_REMOTE_SSH_PUBKEY="${HOME}/.ssh/id_rsa.pub"
export GITTEST_REMOTE_SSH_PASSPHRASE=""
export GITTEST_REMOTE_SSH_FINGERPRINT="${SSH_FINGERPRINT}"
+
+ echo ""
+ echo "Running ssh tests"
+ echo ""
+
+ export GITTEST_REMOTE_URL="ssh://localhost:2222/$SSHD_DIR/test.git"
run_test ssh
unset GITTEST_REMOTE_URL
+
+ echo ""
+ echo "Running ssh tests (scp-style paths)"
+ echo ""
+
+ export GITTEST_REMOTE_URL="[localhost:2222]:$SSHD_DIR/test.git"
+ run_test ssh
+ unset GITTEST_REMOTE_URL
+
unset GITTEST_REMOTE_USER
unset GITTEST_REMOTE_SSH_KEY
unset GITTEST_REMOTE_SSH_PUBKEY