summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-09-03 00:13:23 +0200
committerVicent Marti <vicent@github.com>2014-09-03 00:13:23 +0200
commit0ac9f9a0c730d6dfc1a897c27070252d354ec456 (patch)
tree838428401ddd3d07687858b1f6ba51e916df5f6f
parentd4cb23e4e50688a9079ab0e3ec12cf2cc1256f04 (diff)
parentfe3b67891b7ce73c317075bc93744ab6fab5bbff (diff)
downloadlibgit2-0ac9f9a0c730d6dfc1a897c27070252d354ec456.tar.gz
Merge pull request #2545 from linquize/no-ssh
Skip SSH clone tests if libgit2 not built with GIT_SSH defined
-rw-r--r--tests/online/clone.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c
index 1ccaf2773..6a6c049f8 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -384,6 +384,9 @@ void test_online_clone__ssh_auth_methods(void)
{
int with_user;
+#ifndef GIT_SSH
+ clar__skip();
+#endif
g_options.remote_callbacks.credentials = check_ssh_auth_methods;
g_options.remote_callbacks.payload = &with_user;
@@ -436,6 +439,9 @@ void test_online_clone__ssh_with_paths(void)
const char *remote_url = cl_getenv("GITTEST_REMOTE_URL");
const char *remote_user = cl_getenv("GITTEST_REMOTE_USER");
+#ifndef GIT_SSH
+ clar__skip();
+#endif
if (!remote_url || !remote_user || strncmp(remote_url, "ssh://", 5) != 0)
clar__skip();
@@ -459,6 +465,9 @@ static int cred_foo_bar(git_cred **cred, const char *url, const char *username_f
void test_online_clone__ssh_cannot_change_username(void)
{
+#ifndef GIT_SSH
+ clar__skip();
+#endif
g_options.remote_callbacks.credentials = cred_foo_bar;
cl_git_fail(git_clone(&g_repo, "ssh://git@github.com/libgit2/TestGitRepository", "./foo", &g_options));