libgit2/tests
Carlos Martín Nieto 659cf2029f Remove the signature from ref-modifying functions
The signature for the reflog is not something which changes
dynamically. Almost all uses will be NULL, since we want for the
repository's default identity to be used, making it noise.

In order to allow for changing the identity, we instead provide
git_repository_set_ident() and git_repository_ident() which allow a user
to override the choice of signature.
2015-03-03 14:40:50 +01:00
..
attr attr: Add an extra test for files under a subfolder 2014-09-17 15:08:16 +02:00
blame Factor 40 and 41 constants from source. 2014-09-16 13:07:04 +02:00
buf buf test: cleanup memory leak 2015-02-13 09:28:12 -05:00
checkout Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
cherrypick Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
clar clar: use a custom temp directory name 2014-10-24 10:50:57 -04:00
clone Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
commit Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
config Add test for include.path inside included config 2015-02-13 00:15:16 +03:00
core Remove extra semicolon outside of a function 2015-02-15 21:07:05 +01:00
date Added RFC2822 date format test cases 2014-04-11 21:55:36 +02:00
describe Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
diff Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
fetchhead Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
filter tests: separate INVASIVE filesystem tests 2015-02-19 12:14:06 -05:00
graph Added a no path test for git_graph_descendant_of 2014-04-08 16:32:06 +02:00
index Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
merge Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
network Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
notes notes: move the notes name argument 2014-12-06 04:20:09 +01:00
object Plug a couple of leaks 2015-01-04 17:39:43 +00:00
odb odb: git_odb_object contents are never NULL 2014-11-21 14:09:53 +01:00
online Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
pack Silence unused return value warning 2014-09-26 12:12:09 +02:00
path win32: further cleanups for 8.3 disabling 2015-02-03 20:01:24 -05:00
perf Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
rebase Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
refs Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
repo Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
reset Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
resources checkout test: ensure .gitattributes lifecycle 2015-02-02 22:46:39 -05:00
revert Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
revwalk tests: update for new test data 2015-02-02 22:46:43 -05:00
stash Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
status Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
stress Use p_snprintf also in tests 2014-08-05 20:51:59 +02:00
submodule Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
threads Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
trace Remove trace / add git_diff_perfdata struct + api 2014-05-02 09:21:33 -07:00
transport Clean up some leaks in the test suite 2014-09-17 03:19:40 +02:00
clar_libgit2.c win32: further cleanups for 8.3 disabling 2015-02-03 20:01:24 -05:00
clar_libgit2.h win32: further cleanups for 8.3 disabling 2015-02-03 20:01:24 -05:00
clar.c Update to clar 2b73f5e 2015-02-27 00:30:50 -05:00
clar.h Update to clar 2b73f5e 2015-02-27 00:30:50 -05:00
generate.py Update clar to e3985dd 2014-12-07 22:09:00 +08:00
main.c Rename git_threads_ to git_libgit2_ 2014-11-08 23:46:39 +01: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.