Commit 1cc7f544 by Chris Bargren

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
parent 4df17045
...@@ -48,6 +48,9 @@ void test_transport_register__custom_transport_ssh(void) ...@@ -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+ssh://somehost:somepath"), -1);
cl_git_fail_with(git_transport_new(&transport, NULL, "git@somehost:somepath"), -1); cl_git_fail_with(git_transport_new(&transport, NULL, "git@somehost:somepath"), -1);
#else #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")); cl_git_pass(git_transport_new(&transport, NULL, "git@somehost:somepath"));
transport->free(transport); transport->free(transport);
#endif #endif
...@@ -66,6 +69,9 @@ void test_transport_register__custom_transport_ssh(void) ...@@ -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+ssh://somehost:somepath"), -1);
cl_git_fail_with(git_transport_new(&transport, NULL, "git@somehost:somepath"), -1); cl_git_fail_with(git_transport_new(&transport, NULL, "git@somehost:somepath"), -1);
#else #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")); cl_git_pass(git_transport_new(&transport, NULL, "git@somehost:somepath"));
transport->free(transport); transport->free(transport);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment