mirror of
https://git.proxmox.com/git/libgit2
synced 2025-11-03 16:29:14 +00:00
This started as a complex new test for checkout going through the "typechanges" test repository, but that revealed numerous issues with checkout, including: * complete failure with submodules * failure to create blobs with exec bits * problems when replacing a tree with a blob because the tree "example/" sorts after the blob "example" so the delete was being processed after the single file blob was created This fixes most of those problems and includes a number of other minor changes that made it easier to do that, including improving the TYPECHANGE support in diff/status, etc. |
||
|---|---|---|
| .. | ||
| attr | ||
| buf | ||
| checkout | ||
| clone | ||
| commit | ||
| config | ||
| core | ||
| date | ||
| diff | ||
| index | ||
| network | ||
| notes | ||
| object | ||
| odb | ||
| refs | ||
| repo | ||
| reset | ||
| resources | ||
| revwalk | ||
| status | ||
| submodule | ||
| threads | ||
| clar | ||
| clar_helpers.c | ||
| clar_libgit2.h | ||
| README.md | ||
| valgrind-supp-mac.txt | ||
Writing Clar tests for libgit2
For information on the Clar testing framework and a detailed introduction please visit:
https://github.com/tanoku/clar
-
Write your modules and tests. Use good, meaningful names.
-
Make sure you actually build the tests by setting:
cmake -DBUILD_CLAR=ON build/ -
Test:
./build/libgit2_clar -
Make sure everything is fine.
-
Send your pull request. That's it.