Skip to content

Commit f818eae

Browse files
committed
Add test
1 parent 6e4cd3c commit f818eae

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/test_clone.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from .conftest import GIT2CPP_TEST_WASM
66

7+
xsimd_url = "https://github.com/xtensor-stack/xsimd.git"
78
xtl_url = "https://github.com/xtensor-stack/xtl.git"
89

910

@@ -218,3 +219,13 @@ def test_clone_negative_timeout_ignored(git2cpp_path, tmp_path, run_in_tmp_path)
218219
"environment variable GIT_HTTP_TIMEOUT must be a positive number of seconds"
219220
in p_clone.stdout
220221
)
222+
223+
224+
def test_clone_large_repo(git2cpp_path, tmp_path, run_in_tmp_path):
225+
clone_cmd = [git2cpp_path, "clone", xsimd_url]
226+
p_clone = subprocess.run(clone_cmd, capture_output=True, cwd=tmp_path, text=True)
227+
assert p_clone.returncode == 0
228+
229+
assert (tmp_path / "xsimd").exists()
230+
assert (tmp_path / "xsimd/include").exists()
231+
assert (tmp_path / "xsimd/xsimdConfig.cmake.in").exists()

0 commit comments

Comments
 (0)