libgit2/tests-clar
Russell Belfer 60b9d3fcef Implement filters for status/diff blobs
This adds support to diff and status for running filters (a la crlf)
on blobs in the workdir before computing SHAs and before generating
text diffs.  This ended up being a bit more code change than I had
thought since I had to reorganize some of the diff logic to minimize
peak memory use when filtering blobs in a diff.

This also adds a cap on the maximum size of data that will be loaded
to diff.  I set it at 512Mb which should match core git.  Right now
it is a #define in src/diff.h but it could be moved into the public
API if desired.
2012-09-06 15:34:02 -07:00
..
attr Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
buf Update test suite 2012-05-02 16:14:30 -07:00
checkout Fix warnings and merge issues on Win64 2012-08-23 09:20:17 -07:00
clone Turn off network-dependent test for CI. 2012-07-27 11:14:30 -07:00
commit Merge pull request #805 from nulltoken/fix/revwalk-email-parsing 2012-07-12 09:37:09 -07:00
config Fix config parser boundary logic 2012-08-12 07:59:30 -07:00
core Fix errors on Win32 with new repo init 2012-08-24 10:48:48 -07:00
date Omit failing test on 32-bit machines. 2012-06-06 12:39:29 -07:00
diff Diff iterators 2012-09-05 15:17:24 -07:00
index filemode: deploy enum usage 2012-08-21 23:15:10 +02:00
network Test trailing space after ref oid 2012-08-09 14:39:43 -05:00
notes Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
object Make git_object_peel a bit smarter 2012-08-27 11:53:59 -07:00
odb test: Open ODB on each test suite 2012-08-06 12:53:09 +02:00
refs Merge branch 'branch-delete-ref' into development 2012-08-27 14:54:52 -07:00
repo repository: make initialization cope with missing core.worktree 2012-08-29 19:56:55 +02:00
reset Add git_reset() 2012-06-07 21:27:30 +02:00
resources Merge remote-tracking branch 'arrbee/diff-iterator' into development 2012-09-06 10:08:14 +02:00
revwalk revwalk: refuse push of non-commit objects 2012-08-27 11:52:32 +02:00
status Implement filters for status/diff blobs 2012-09-06 15:34:02 -07:00
submodule Test for gitmodules only submodule def 2012-09-05 15:54:32 -07:00
threads t13-threads.c ported. 2012-03-30 13:05:54 -07:00
clar Fixed mode on clar 2012-05-10 11:15:37 -07:00
clar_helpers.c Merge pull request #856 from libgit2/utf8-win 2012-09-04 14:19:24 -07:00
clar_libgit2.h Fix warnings and merge issues on Win64 2012-08-23 09:20:17 -07:00
README.md Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08: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/tanoku/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.