libgit2/tests
Vicent Marti 7a16d54b54 pool: Agh, this test doesn't really apply in 32-bit machines
The size_t is 32-bit already, so it overflows before going into the
function. The `-1` test should handle this gracefully in both cases
anyway.
2013-12-13 12:47:51 +01:00
..
attr Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
blame Clean up warnings 2013-12-09 11:40:44 -05:00
buf
checkout Try a test that won't assert on Linux 2013-12-11 10:57:51 -08:00
clar
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
filter
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
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 More tests of canceling from callbacks 2013-12-12 11:14:51 -08:00
pack Test cancel from indexer progress callback 2013-12-11 15:02:20 -08:00
refs More tests of canceling from callbacks 2013-12-12 11:14:51 -08:00
repo
reset
resources Introduce git_revert to revert a single commit 2013-12-02 16:57:41 -06:00
revert Reorder var decls in revert test 2013-12-03 10:47:18 -05:00
revwalk
stash
status Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
stress
submodule Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
threads
trace
clar_libgit2.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar_libgit2.h
clar.c
clar.h
generate.py
main.c
README.md
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.