libgit2/tests
Carlos Martín Nieto b25d87c9cd branch: move to git_buf when outputting newly-allocated strings
Internally we already did everything with git_bufs, so this is just
exposing those functions with public names.
2014-01-27 04:44:05 +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 Preserve tree filemode in index during checkout 2014-01-22 13:26:30 -05: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 add unit tests for git_buf_join corner cases 2014-01-20 11:42:12 -06:00
date Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
diff Drop git_patch_to_str 2014-01-22 17:51:32 +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 Merge submodules 2014-01-20 18:07:17 -05:00
network Make sure git_remote_dup copies a remote's refspecs correctly. 2014-01-26 19:35:02 +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 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 Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
resources Preserve tree filemode in index during checkout 2014-01-22 13:26:30 -05: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 Sometimes a zero byte file is just a zero byte file 2014-01-22 18:31:25 -05: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.