libgit2/tests-clar
Russell Belfer f917481ee8 Support reading attributes from index
Depending on the operation, we need to consider gitattributes
in both the work dir and the index.  This adds a parameter to
all of the gitattributes related functions that allows user
control of attribute reading behavior (i.e. prefer workdir,
prefer index, only use index).

This fix also covers allowing us to check attributes (and
hence do diff and status) on bare repositories.

This was a somewhat larger change that I hoped because it had
to change the cache key used for gitattributes files.
2012-05-03 16:37:25 -07:00
..
attr Support reading attributes from index 2012-05-03 16:37:25 -07:00
buf Update test suite 2012-05-02 16:14:30 -07:00
commit tests-clar/commit: fix memory leaks 2012-04-03 11:07:04 +02:00
config Update test suite 2012-05-02 16:14:30 -07:00
core Remove old and unused error codes 2012-05-02 19:56:38 -07:00
diff Support reading attributes from index 2012-05-03 16:37:25 -07:00
index Update test suite 2012-05-02 16:14:30 -07:00
network Remove old and unused error codes 2012-05-02 19:56:38 -07:00
notes Update test suite 2012-05-02 16:14:30 -07:00
object Remove old and unused error codes 2012-05-02 19:56:38 -07:00
odb Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
refs Boom 2012-05-02 16:57:16 -07:00
repo Boom 2012-05-02 16:57:16 -07:00
resources Support reading attributes from index 2012-05-03 16:37:25 -07:00
revwalk revwalk: add test hiding a commit without a merge base 2012-04-12 20:25:25 +02:00
status Support reading attributes from index 2012-05-03 16:37:25 -07:00
threads t13-threads.c ported. 2012-03-30 13:05:54 -07:00
clar tests-clar: update to latest version of clar 2012-04-21 18:36:13 +02:00
clar_helpers.c chmod for writability when writing test files 2012-05-02 16:44:47 -07:00
clar_libgit2.h Remove old and unused error codes 2012-05-02 19:56:38 -07:00
README.md Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08: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.