summaryrefslogtreecommitdiff
path: root/clone_test.go
AgeCommit message (Collapse)Author
2016-08-27Run the tests in parallelCarlos Martín Nieto
This saves about 1s, or 1/3 of the test runtime. The linking is still much slower, but this we can control.
2015-08-31Merge branch 'next'Carlos Martín Nieto
2015-08-18clone: improve handling of remote create callbackPatrick Steinhardt
The clone options contain fields for ae remote create callback and its payload, which can be used to override the behavior when the default remote is being created for newly cloned repositories. Currently we only accept a C function as callback, though, making it overly complicated to use it. We also unconditionally `free` the payload if its address is non-`nil`, which may cause the program to segfault when the memory is not dynamically allocated. Instead, we want callers to provide a Go function that is subsequently being called by us. To do this, we introduce an indirection such that we are able to extract the provided function and payload when being called by `git_clone` and handle the return values of the user-provided function.
2015-06-30Clone: test we clone something usable and fix constructorCarlos Martín Nieto
Clone was still trying to do its own initialisation, which was missing all of the namespacing changes.
2015-04-24tests: always clean up temporary repository dirsPatrick Steinhardt
Some test repositories are not correctly removed after the tests did run. Fix by introducing a function that is to be used for cleaning up temporary test repositories.
2014-03-19Clean up after the testsCarlos Martín Nieto
2014-03-18fix naming on testJesse Ezell
2014-03-18add simple clone testJesse Ezell