libgit2/tests-clar
Russell Belfer e1de726c15 Migrate ODB files to new error handling
This migrates odb.c, odb_loose.c, odb_pack.c and pack.c to
the new style of error handling.  Also got the unix and win32
versions of map.c.  There are some minor changes to other
files but no others were completely converted.

This also contains an update to filebuf so that a zeroed out
filebuf will not think that the fd (== 0) is actually open
(and inadvertently call close() on fd 0 if cleaned up).

Lastly, this was built and tested on win32 and contains a
bunch of fixes for the win32 build which was pretty broken.
2012-03-12 22:55:40 -07:00
..
attr Migrate ODB files to new error handling 2012-03-12 22:55:40 -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 error-handling: References 2012-03-06 00:43:10 +01:00
diff diff: Fix rebase breackage 2012-03-06 01:37:56 +01:00
index Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
network Add git_remote_list() 2012-02-26 19:15:36 +01:00
notes tests-clar/notes: init oid before using 2012-02-23 23:38:48 +01:00
object error-handling: Add new routines 2012-03-03 02:28:00 +01:00
odb Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
refs tests-clar: fix warning sign-compare 2012-02-13 12:13:05 +01:00
repo repository: ensure that the path to the .git directory ends with a forward slash when opening a repository through a working directory path 2012-02-03 12:46:50 +01:00
revwalk Simple test for pushing HEAD and hiding a branch 2012-02-27 22:46:45 +01:00
status Revert GIT_STATUS constants to avoid issues 2012-03-02 15:51:55 -08:00
clar Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
clar_helpers.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
clar_libgit2.h Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08: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.