libgit2/tests
Carlos Martín Nieto a57dd3b7a4 reflog: integrate into the ref writing
Whenever a reference is created or updated, we need to write to the
reflog regardless of whether the user gave us a message, so we shouldn't
leave that to the ref frontend, but integrate it into the backend.

This also eliminates the race between ref update and writing to the
reflog, as we protect the reflog with the ref lock.

As an additional benefit, this reflog append on the backend happens by
appending to the file instead of parsing and rewriting it.
2013-11-23 14:55:02 +01:00
..
attr Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
blame Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
buf Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
checkout Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clone Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
commit Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
config Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
core Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
date Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
diff Add content offset to git_diff_line 2013-11-18 14:03:25 -08:00
fetchhead Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
filter Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
index tests: Drop unrelated comment 2013-11-19 14:25:30 +01:00
merge Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
network Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
notes Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
object Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
odb Update files that reference tests-clar 2013-11-14 14:10:32 -08:00
online Fix warnings 2013-11-18 12:14:50 -08:00
pack Update files that reference tests-clar 2013-11-14 14:10:32 -08:00
refs reflog: integrate into the ref writing 2013-11-23 14:55:02 +01:00
repo Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
reset Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
resources tree-cache: Don't segfault upon corruption 2013-11-19 13:25:37 +01:00
revwalk Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
stash Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
status Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
stress Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
submodule Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
threads Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
trace Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar_libgit2.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar_libgit2.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
clar.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
generate.py Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
main.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
README.md Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
valgrind-supp-mac.txt Rename tests-clar to tests 2013-11-14 14:05:52 -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.