libgit2/tests-clar
Carlos Martín Nieto f1c75b94a1 tree: relax the filemode parser
There are many different broken filemodes in the wild so we need to
protect against them and give something useful up the chain. Don't
fail when reading a tree from the ODB but normalize the mode as best
we can.

As 664 is no longer a mode that we consider to be valid and gets
normalized to 644, we can stop accepting it in the treebuilder. The
library won't expose it to the user, so any invalid modes are a bug.
2012-12-07 16:59:18 +01:00
..
attr API updates for index.h 2012-11-27 13:18:28 -08:00
buf buf: introduce git_buf_splice() 2012-10-25 17:42:35 +02:00
checkout Deploy GIT_INIT_STRUCTURE 2012-11-30 20:34:50 -08:00
clone More external API cleanup 2012-11-27 13:18:27 -08:00
commit Remove GIT_SIGNATURE_VERSION and friends 2012-12-03 12:41:50 -08:00
config versions: MSVC build fixes 2012-12-05 20:56:27 +01:00
core Consolidate text buffer functions 2012-11-28 09:58:48 -08:00
date Omit failing test on 32-bit machines. 2012-06-06 12:39:29 -07:00
diff Deploy GIT_INIT_STRUCTURE 2012-11-30 20:34:50 -08:00
fetchhead API updates for remote.h 2012-11-27 13:19:49 -08:00
index Fix warnings on Win64 build 2012-11-27 13:18:29 -08:00
network tests: MSVC fix 2012-12-05 21:06:54 +01:00
notes Remove git_note_data structure 2012-11-27 14:47:39 -08:00
object tree: relax the filemode parser 2012-12-07 16:59:18 +01:00
odb Deploy versioned git_odb_backend structure 2012-11-30 13:12:15 -08:00
pack More external API cleanup 2012-11-27 13:18:27 -08:00
refs Merge pull request #1115 from ben/struct-versions 2012-12-05 11:47:19 -08:00
repo Deploy GIT_REPOSITORY_INIT_OPTIONS_INIT 2012-11-30 13:12:15 -08:00
reset Rename ref and reflog apis for consistency 2012-11-27 13:17:45 -08:00
resources tree: relax the filemode parser 2012-12-07 16:59:18 +01:00
revwalk Fixup ahead/behind tests 2012-11-29 18:11:30 -08:00
stash Fix warnings on Win64 build 2012-11-27 13:18:29 -08:00
status Merge pull request #1115 from ben/struct-versions 2012-12-05 11:47:19 -08:00
submodule API updates for submodule.h 2012-11-27 13:18:28 -08:00
threads t13-threads.c ported. 2012-03-30 13:05:54 -07:00
clar Update clar and add reliable rename for Win32 2012-10-18 14:50:17 -04:00
clar_helpers.c tests: introduce cl_git_remove_placeholders() 2012-11-17 07:20:07 -08:00
clar_libgit2.h tests: introduce cl_git_remove_placeholders() 2012-11-17 07:20:07 -08:00
README.md Update README because vmg is @vmg. 2012-10-19 14:05:55 -07:00
valgrind-supp-mac.txt Fix valgrind issues and leaks 2012-08-24 11:00:27 -07: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.