mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-10 21:10:30 +00:00
Adding test cases that actually test the functionality of the new transport
ssh, ssh+git and git+ssh should all successfully build an SSH transport
This commit is contained in:
parent
e44f6586ce
commit
b8dc15f70e
@ -48,6 +48,9 @@ void test_transport_register__custom_transport_ssh(void)
|
||||
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, "ssh://somehost:somepath"));
|
||||
cl_git_pass(git_transport_new(&transport, NULL, "ssh+git://somehost:somepath"));
|
||||
cl_git_pass(git_transport_new(&transport, NULL, "git+ssh://somehost:somepath"));
|
||||
cl_git_pass(git_transport_new(&transport, NULL, "git@somehost:somepath"));
|
||||
transport->free(transport);
|
||||
#endif
|
||||
@ -66,6 +69,9 @@ void test_transport_register__custom_transport_ssh(void)
|
||||
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, "ssh://somehost:somepath"));
|
||||
cl_git_pass(git_transport_new(&transport, NULL, "ssh+git://somehost:somepath"));
|
||||
cl_git_pass(git_transport_new(&transport, NULL, "git+ssh://somehost:somepath"));
|
||||
cl_git_pass(git_transport_new(&transport, NULL, "git@somehost:somepath"));
|
||||
transport->free(transport);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user