libgit2/tests
Carlos Martín Nieto 65d69fe854 commit: ignore multiple author fields
Some tools create multiple author fields. git is rather lax when parsing
them, although fsck does complain about them. This means that they exist
in the wild.

As it's not too taxing to check for them, and there shouldn't be a
noticeable slowdown when dealing with correct commits, add logic to skip
over these extra fields when parsing the commit.
2015-06-11 08:24:58 +02:00
..
attr attr tests: make explicit our dir/file match tests 2015-05-13 10:56:55 -04:00
blame
buf
checkout Rename GIT_EMERGECONFLICT to GIT_ECONFLICT 2015-05-29 09:55:09 -04:00
cherrypick
clar
clone Merge pull request #3115 from libgit2/cmn/clone-submodule 2015-05-13 09:07:15 -04:00
commit commit: ignore multiple author fields 2015-06-11 08:24:58 +02:00
config
core Merge pull request #3165 from ethomson/downcase 2015-06-08 15:22:01 +02:00
date
describe
diff Fixed build warnings on Xcode 6.1 2015-06-02 11:49:38 -07:00
fetchhead remote: remove url and pushurl from the save logic 2015-05-13 09:46:36 +02:00
filter Introduce git_filter_list_contains 2015-06-10 14:43:49 -04:00
graph
index Fixed build warnings on Xcode 6.1 2015-06-02 11:49:38 -07:00
merge introduce git_index_entry_is_conflict 2015-05-28 09:47:31 -04:00
network Merge pull request #3149 from libgit2/cmn/upstream-matching-push 2015-05-28 10:13:07 -04:00
notes
object conflict tests: use GIT_IDXENTRY_STAGE_SET 2015-05-28 09:44:22 -04:00
odb path: error out if the callback returns an error 2015-06-06 03:55:28 +02:00
online Merge pull request #3157 from mgorny/ssh_memory_auth 2015-05-29 19:38:11 +02:00
pack
path
perf
rebase
refs branch: error out if we cannot find the remote 2015-05-22 12:31:39 +02:00
remote remote: test insteadOf for anonymous remotes 2015-05-31 13:26:05 +02:00
repo
reset conflict tests: use GIT_IDXENTRY_STAGE_SET 2015-05-28 09:44:22 -04:00
resources remote: apply insteadOf configuration. 2015-05-31 13:21:53 +02:00
revert
revwalk
stash Fixed build warnings on Xcode 6.1 2015-06-02 11:49:38 -07:00
status Fixed build warnings on Xcode 6.1 2015-06-02 11:49:38 -07:00
stress
submodule Fix a few leaks 2015-05-13 16:40:18 +02:00
threads
trace
transport
clar_libgit2_timer.c
clar_libgit2_timer.h
clar_libgit2_trace.c
clar_libgit2_trace.h
clar_libgit2.c Introduce cl_git_sandbox_init_new() 2015-05-28 09:47:39 -04:00
clar_libgit2.h Introduce cl_git_sandbox_init_new() 2015-05-28 09:47:39 -04:00
clar.c
clar.h
generate.py
main.c
README.md
valgrind-supp-mac.txt

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.