libgit2/tests
Carlos Martín Nieto 0b28217bda refs: remove the _with_log differentiation
Any well-behaved program should write a descriptive message to the
reflog whenever it updates a reference. Let's make this more prominent
by removing the version without the reflog parameters.
2014-01-15 13:32:43 +01:00
..
attr Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08: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 refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
clar Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clone Update clone doc and tests for callback return val 2013-12-11 10:57:51 -08:00
commit refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
config Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
core pool: Agh, this test doesn't really apply in 32-bit machines 2013-12-13 12:47:51 +01:00
date Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
diff refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
fetchhead Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
filter Handle git_buf's from users more liberally 2014-01-08 10:08:23 -08:00
index More improvements to callback return value tests 2013-12-11 11:55:00 -08:00
merge refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
network Add git_remote_dup. 2014-01-14 21:03:01 +01:00
notes Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
object Add git_treebuilder_insert test and clarify doc 2013-12-12 14:16:40 -08:00
odb Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
online Updated fetch.c test to pass. 2013-12-31 11:27:32 +01:00
pack Test cancel from indexer progress callback 2013-12-11 15:02:20 -08:00
refs refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
repo refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
reset Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
resources Handle git_buf's from users more liberally 2014-01-08 10:08:23 -08:00
revert Reorder var decls in revert test 2013-12-03 10:47:18 -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 Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
stress Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
submodule refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01: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.