diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2018-06-20 02:26:49 +0200 |
---|---|---|
committer | Etienne Samson <samson.etienne@gmail.com> | 2018-11-02 14:58:01 +0100 |
commit | 798be87ee5fb8a8bd10ffac158ab6bd2fa84f2af (patch) | |
tree | 78f99a8af343436df8a9b69aa3004e47ede6c037 /tests/network | |
parent | b5ae83bfac53fa3a17435ebf2fc3b79db8055dae (diff) | |
download | libgit2-798be87ee5fb8a8bd10ffac158ab6bd2fa84f2af.tar.gz |
tests: rename remote creation test suite
Diffstat (limited to 'tests/network')
-rw-r--r-- | tests/network/remote/createthenload.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/network/remote/createthenload.c b/tests/network/remote/createthenload.c deleted file mode 100644 index f811f3c4c..000000000 --- a/tests/network/remote/createthenload.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "clar_libgit2.h" - -static git_remote *_remote; -static git_repository *_repo; -static git_config *_config; -static char url[] = "http://github.com/libgit2/libgit2.git"; - -void test_network_remote_createthenload__initialize(void) -{ - cl_fixture_sandbox("testrepo.git"); - - cl_git_pass(git_repository_open(&_repo, "testrepo.git")); - - cl_git_pass(git_repository_config(&_config, _repo)); - cl_git_pass(git_config_set_string(_config, "remote.origin.fetch", "+refs/heads/*:refs/remotes/origin/*")); - cl_git_pass(git_config_set_string(_config, "remote.origin.url", url)); - git_config_free(_config); - - cl_git_pass(git_remote_lookup(&_remote, _repo, "origin")); -} - -void test_network_remote_createthenload__cleanup(void) -{ - git_remote_free(_remote); - _remote = NULL; - - git_repository_free(_repo); - _repo = NULL; - - cl_fixture_cleanup("testrepo.git"); -} - -void test_network_remote_createthenload__parsing(void) -{ - cl_assert_equal_s(git_remote_name(_remote), "origin"); - cl_assert_equal_s(git_remote_url(_remote), url); -} |