libgit2/tests
2014-01-08 19:43:31 -08: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 Overwrite ignored directories on checkout 2013-12-13 10:10:32 -05: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 Introduce git_revert to revert a single commit 2013-12-02 16:57:41 -06: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 More tests of canceling from callbacks 2013-12-12 11:14:51 -08: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 Clean up warnings 2013-12-09 11:40:44 -05:00
network Rename tests-clar to tests 2013-11-14 14:05:52 -08: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 Merge pull request #1920 from libgit2/cmn/ref-with-log 2013-12-18 09:33:45 -08:00
repo Rename tests-clar to tests 2013-11-14 14:05:52 -08: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 Rename tests-clar to tests 2013-11-14 14:05:52 -08: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 Update test related to fetchRecurseSubmodules 2013-12-31 07:34:40 +08:00
threads Rename tests-clar to tests 2013-11-14 14:05:52 -08: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.