libgit2/tests-clar
nulltoken c1aefb35dd Fix git_repository_set_index() refcount issue
git_repository_free() calls git_index_free() if the owned index is not null.

According to the doc, when setting a new index through git_repository_set_index() the caller has still to take care of releasing the index by itself.

In order to cope with this, this fix makes sure the index refcount is incremented when a new repository is being plugged a new index.
2012-04-14 15:05:38 +02:00
..
attr Add support for pathspec to diff and status 2012-04-13 15:00:29 -07:00
buf Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
commit commit: actually allow yet to be born update_ref 2012-02-15 13:07:41 +01:00
config error-handling: References 2012-03-06 00:43:10 +01:00
core Merge pull request #619 from nulltoken/topic/branches 2012-04-11 03:43:30 -07:00
diff Add support for pathspec to diff and status 2012-04-13 15:00:29 -07:00
index Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
network transport/local: Fix peeling of nested tags 2012-04-10 21:39:01 +02:00
notes tests-clar/notes: init oid before using 2012-02-23 23:38:48 +01:00
object tag: Add git_tag_peel() which recursively peel a tag until a non tag git_object is met 2012-04-10 21:38:49 +02:00
odb Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
refs tests: Remove unused file 2012-04-11 19:17:21 +02:00
repo Fix git_repository_set_index() refcount issue 2012-04-14 15:05:38 +02:00
revwalk revwalk: add test hiding a commit without a merge base 2012-04-12 20:25:25 +02:00
status Merge pull request #619 from nulltoken/topic/branches 2012-04-11 03:43:30 -07:00
clar Update to latest clar 2012-03-19 16:09:03 -07:00
clar_helpers.c Refactor git_repository_open with new options 2012-04-11 12:11:35 -07:00
clar_libgit2.h Refactor git_repository_open with new options 2012-04-11 12:11:35 -07:00
README.md Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00

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.