libgit2/tests
Russell Belfer 027b8edac7 Move userdiff tests to be data driven
This moves the expected and actual test data along with the source
data for the userdiff tests into the tests/resources/userdiff test
repo and updates the test to use that.
2014-01-24 15:45:49 -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 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 Update clone doc and tests for callback return val 2013-12-11 10:57:51 -08: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 Move userdiff tests to be data driven 2014-01-24 15:45:49 -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 Merge submodules 2014-01-20 18:07:17 -05: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 Move userdiff tests to be data driven 2014-01-24 15:45:49 -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 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.