Switch branches/tags
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
apply
attr
blame
buf
checkout
cherrypick
clar
clone
commit
config
core
date
describe
diff
fetchhead
filter
graph
index
iterator
merge
network
notes
object
odb
online
pack
patch
path
perf
rebase
refs
remote
repo
reset
resources
revert
revwalk
stash
status
stress
submodule
threads
trace
transport
win32
worktree
README.md
clar.c
clar.h
clar_libgit2.c
clar_libgit2.h
clar_libgit2_timer.c
clar_libgit2_timer.h
clar_libgit2_trace.c
clar_libgit2_trace.h
generate.py
generate_crlf.sh
main.c
valgrind-supp-mac.txt

README.md

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.