diff options
author | Chris Bargren <cbargren@gmail.com> | 2015-12-28 21:35:19 +0300 |
---|---|---|
committer | Chris Bargren <cbargren@gmail.com> | 2015-12-28 21:45:07 +0300 |
commit | 1cc7f544a005faf87f4a1d9f35bdaa7b4156c6b2 (patch) | |
tree | bb77fe0adbf80abea0c5cd2d97ece282f7ec0c01 /tests/transport | |
parent | 4df17045c178194c5617c7df24bbc762895a222b (diff) |
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
Diffstat (limited to 'tests/transport')
-rw-r--r-- | tests/transport/register.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/transport/register.c b/tests/transport/register.c index 385ef0a4c..67a2efd99 100644 --- a/tests/transport/register.c +++ b/tests/transport/register.c @@ -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 |