libgit2/tests
Russell Belfer d9b04d78a3 Reorganize zstream API and fix wrap problems
There were some confusing issues mixing up the number of bytes
written to the zstream output buffer with the number of bytes
consumed from the zstream input.  This reorganizes the zstream
API and makes it easier to deflate an arbitrarily large input
while still using a fixed size output.
2014-01-30 09:59:59 -08:00
..
attr index: rename an entry's id to 'id' 2014-01-25 08:15:44 +01:00
blame Add orig & final commit test. 2014-01-09 11:18:38 +08:00
buf Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
checkout diff: rename the file's 'oid' to 'id' 2014-01-25 08:15:44 +01:00
clar Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clone branch: move to git_buf when outputting newly-allocated strings 2014-01-27 04:44:05 +01:00
commit Summarize empty messages 2014-01-22 14:41:04 -05:00
config Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
core Reorganize zstream API and fix wrap problems 2014-01-30 09:59:59 -08:00
date Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
diff Merge pull request #2066 from libgit2/rb/builtin-diff-drivers 2014-01-27 15:35:39 -08:00
fetchhead Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
filter index: rename an entry's id to 'id' 2014-01-25 08:15:44 +01:00
graph Add git_graph_descendant_of. 2014-01-28 19:39:14 +01:00
index index: rename an entry's id to 'id' 2014-01-25 08:15:44 +01:00
merge merge: rename _oid() -> id() 2014-01-25 08:15:44 +01:00
network Don't strcmp a git_buf, strcmp its char * 2014-01-29 12:50:42 -08:00
notes note: rename the id getter to git_note_id() 2014-01-24 11:18:51 +01:00
object Merge pull request #2075 from libgit2/cmn/leftover-oid 2014-01-27 09:39:36 -08:00
odb Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
online refspec: move to git_buf for outputting strings 2014-01-27 04:44:06 +01:00
pack Test cancel from indexer progress callback 2013-12-11 15:02:20 -08:00
refs branch: move to git_buf when outputting newly-allocated strings 2014-01-27 04:44:05 +01:00
repo repository: move to use a git_buf for outputting strings 2014-01-27 04:44:05 +01:00
reset index: rename an entry's id to 'id' 2014-01-25 08:15:44 +01:00
resources Add PHP tests and fix bug in PHP builtin driver 2014-01-27 14:57:03 -08:00
revert Remove the "merge none" flag 2014-01-20 17:15:14 -05:00
revwalk Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
stash refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
status Misc cleanups 2014-01-30 09:59:59 -08:00
stress Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
submodule Make submodule fetchRecurse match other options 2014-01-30 09:59:59 -08:00
threads refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
trace Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar_libgit2.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar_libgit2.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
generate.py Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
main.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
README.md Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
valgrind-supp-mac.txt Test cancel from indexer progress callback 2013-12-11 15:02:20 -08:00

Writing Clar tests for libgit2

For information on the Clar testing framework and a detailed introduction please visit:

https://github.com/vmg/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.