libgit2/tests
Yury G. Kudryashov 3ea78f241f Add test for include.path inside included config
It fails at least on my computer, though it may depend on some unpredictable
factors (say, will realloc() extend the memory segment in place, or it will
allocate new memory).
2015-02-13 00:15:16 +03: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 Fix crash in free() when git_buf_grow() fails. 2015-01-09 16:46:44 +01:00
checkout win32: further cleanups for 8.3 disabling 2015-02-03 20:01:24 -05:00
cherrypick Fix test build 2014-10-10 18:03:09 +02:00
clar clar: use a custom temp directory name 2014-10-24 10:50:57 -04:00
clone remote: rename _load() to _lookup() 2014-11-08 13:28:27 +01:00
commit signature: don't allow empty emails 2014-09-10 18:14:46 +02:00
config Add test for include.path inside included config 2015-02-13 00:15:16 +03:00
core structinit test: use %PRIuZ instead of %d for size_t 2015-02-04 03:52:34 +00:00
date Added RFC2822 date format test cases 2014-04-11 21:55:36 +02:00
describe Don't use cl_git_pass for POSIX functions 2014-10-10 15:17:27 -07:00
diff Added GIT_HASHSIG_ALLOW_SMALL_FILES to allow computing signatures for small files 2015-01-14 10:17:56 -06:00
fetchhead remote: rename _load() to _lookup() 2014-11-08 13:28:27 +01:00
filter Add files and tests with many UTF-8 chars and few UTF-8 chars 2015-01-20 16:17:48 -06:00
graph Added a no path test for git_graph_descendant_of 2014-04-08 16:32:06 +02:00
index index tests: test capitalization before mkdir 2014-12-18 12:41:59 -06:00
merge Fix broken merge tests due to autocrlf was not false 2014-12-07 23:41:30 +08:00
network Fix more indentation. 2015-01-07 09:26:36 -08: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 remote: remove git_push from the public API 2014-12-30 17:02:50 +00: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
rebase Fix broken merge tests due to autocrlf was not false 2014-12-07 23:41:30 +08:00
refs reference_create: validate loose names 2014-12-16 10:08:56 -06:00
repo repo::init test: create hook symlink 2015-01-08 19:23:37 +00:00
reset Allow to propagate checkout callbacks to git HARD reset 2014-08-03 16:29:51 +02:00
resources checkout tests: nasty symlinks 2015-01-20 17:13:09 -06:00
revert revert tests: always use core.autocrlf=false in tests 2014-10-27 17:27:25 -04:00
revwalk revwalk::mergebase test: free memory 2014-10-26 22:27:58 -04:00
stash p_mkdir != mkdir on win32 2014-10-03 19:30:48 -04:00
status ignore: adjust test for negating inside a dir 2014-12-05 19:43:36 +01:00
stress Use p_snprintf also in tests 2014-08-05 20:51:59 +02:00
submodule Fix warning 2015-01-09 16:29:08 +01:00
threads Rename git_threads_ to git_libgit2_ 2014-11-08 23:46:39 +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 clar to d17c7f6 2015-02-05 13:24:38 -05:00
clar.h clar: wide character comparisons 2014-12-10 18:11: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.