Comment 7 for bug 1990655

Revision history for this message
Simon Chopin (schopin) wrote :

Re: libgit2 trivial tests

The libgit2 test suite in 1.3.2 is mostly unit-tests, and cannot be run against the final .so, which makes it impractical for autopgktests. Luckily, in the 1.5.0 that just landed in Debian unstable there seem to be some integration tests as well that should be easier to use in that context, which I plan to investigate.

Meanwhile, src:cargo has an extensive test suite, including for its git-related features, and that test suite is run both at build time and in its autopkgtests.

Here are the two test files:

https://git.launchpad.net/~canonical-foundations/ubuntu/+source/cargo/tree/tests/testsuite/git_auth.rs?h=merge-0.62
https://git.launchpad.net/~canonical-foundations/ubuntu/+source/cargo/tree/tests/testsuite/git.rs?h=merge-0.62

While it doesn't cover the entirety of libgit2's feature set, at a glance I see commit, branch and tag creation, as well as submodule handling. The `cargo new` command also creates a new repo using libgit2, but it's not tested in that file.

Does that answer your concerns?

(tentatively marking libgit2 as Confirmed)