libgit2/tests-clar
Russell Belfer b4f5bb0747 Initial implementation of diff rename detection
This implements the basis for diff rename and copy detection,
although it is based on simple SHA comparison right now instead
of using a matching algortihm.  Just as `git_diff_merge` can be
used as a post-pass on diffs to emulate certain command line
behaviors, there is a new API `git_diff_detect` which will
update a diff list in-place, adjusting some deltas to RENAMED
or COPIED state (and also, eventually, splitting MODIFIED deltas
where the change is too large into DELETED/ADDED pairs).

This also adds a new test repo that will hold rename/copy/split
scenarios.  Right now, it just has exact-match rename and copy,
but the tests are written to use tree diffs, so we should be able
to add new test scenarios easily without breaking tests.
2012-10-23 16:40:51 -07:00
..
attr Support for core.ignorecase 2012-09-17 15:42:41 -04:00
buf Update test suite 2012-05-02 16:14:30 -07:00
checkout test: extract make_head_orphaned() logic 2012-10-20 12:07:53 +02:00
clone test: fix some memory leaks 2012-10-16 00:49:05 +02:00
commit Merge pull request #805 from nulltoken/fix/revwalk-email-parsing 2012-07-12 09:37:09 -07:00
config Add config level support in the config API 2012-10-23 12:48:38 +02:00
core Fix env variable tests with new Win32 path rules 2012-10-19 15:40:43 -07:00
date Omit failing test on 32-bit machines. 2012-06-06 12:39:29 -07:00
diff Initial implementation of diff rename detection 2012-10-23 16:40:51 -07:00
index filemode: deploy enum usage 2012-08-21 23:15:10 +02:00
network Merge pull request #963 from carlosmn/remote-save-autotag 2012-10-22 12:04:48 -07:00
notes Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
object Merge pull request #968 from arrbee/diff-support-typechange 2012-10-17 14:14:51 -07:00
odb revwalk: fix off-by-one error 2012-09-27 19:12:01 +02:00
pack gsoc-pack-objects WIP 2012-10-09 21:28:31 +02:00
refs test: extract make_head_orphaned() logic 2012-10-20 12:07:53 +02:00
repo Initial implementation of diff rename detection 2012-10-23 16:40:51 -07:00
reset reset: make git_reset() cope with an orphaned HEAD 2012-10-22 19:46:00 +02:00
resources Initial implementation of diff rename detection 2012-10-23 16:40:51 -07:00
revwalk revwalk: fix off-by-one error 2012-09-27 19:12:01 +02:00
status tests: Fix unused variable warning 2012-10-19 20:35:12 +02:00
submodule Add config level support in the config API 2012-10-23 12:48:38 +02: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 Update clar and add reliable rename for Win32 2012-10-18 14:50:17 -04:00
clar_libgit2.h Update clar and add reliable rename for Win32 2012-10-18 14:50:17 -04: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.