mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 10:17:20 +00:00
Adding spec coverage for ssh+git and git+ssh protocols
This commit is contained in:
parent
ff8e3f0e6b
commit
fa8b1a8822
@ -44,6 +44,8 @@ void test_transport_register__custom_transport_ssh(void)
|
||||
|
||||
#ifndef GIT_SSH
|
||||
cl_git_fail_with(git_transport_new(&transport, NULL, "ssh://somehost:somepath"), -1);
|
||||
cl_git_fail_with(git_transport_new(&transport, NULL, "ssh+git://somehost:somepath"), -1);
|
||||
cl_git_fail_with(git_transport_new(&transport, NULL, "git+ssh://somehost:somepath"), -1);
|
||||
cl_git_fail_with(git_transport_new(&transport, NULL, "git@somehost:somepath"), -1);
|
||||
#else
|
||||
cl_git_pass(git_transport_new(&transport, NULL, "git@somehost:somepath"));
|
||||
@ -60,6 +62,8 @@ void test_transport_register__custom_transport_ssh(void)
|
||||
|
||||
#ifndef GIT_SSH
|
||||
cl_git_fail_with(git_transport_new(&transport, NULL, "ssh://somehost:somepath"), -1);
|
||||
cl_git_fail_with(git_transport_new(&transport, NULL, "ssh+git://somehost:somepath"), -1);
|
||||
cl_git_fail_with(git_transport_new(&transport, NULL, "git+ssh://somehost:somepath"), -1);
|
||||
cl_git_fail_with(git_transport_new(&transport, NULL, "git@somehost:somepath"), -1);
|
||||
#else
|
||||
cl_git_pass(git_transport_new(&transport, NULL, "git@somehost:somepath"));
|
||||
|
Loading…
Reference in New Issue
Block a user