libgit2/tests-clar
Russell Belfer 52032ae536 Fix single-file ignore checks
To answer if a single given file should be ignored, the path to
that file has to be processed progressively checking that there
are no intermediate ignored directories in getting to the file
in question.  This enables that, fixing the broken old behavior,
and adds tests to exercise various ignore situations.
2012-10-15 12:54:46 -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 checkout: add notification callback for skipped files 2012-09-21 08:08:29 +02:00
clone Clone: use libgit2's test repos 2012-10-15 10:48:17 -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 Add git_buf_put_base64 to buffer API 2012-10-10 14:54:31 -07:00
date Omit failing test on 32-bit machines. 2012-06-06 12:39:29 -07:00
diff Fix single-file ignore checks 2012-10-15 12:54:46 -07:00
index filemode: deploy enum usage 2012-08-21 23:15:10 +02:00
network test: fix some memory leaks 2012-10-15 20:41:43 +02:00
notes Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
object tags: cover EEXISTS propagation upon creation 2012-10-11 14:15:40 +02: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 Fix leak in the tests 2012-10-15 16:35:10 +02:00
repo repository: introduce git_repository_set_head() 2012-09-17 10:48:35 +02:00
reset reset: prevent hard reset in a bare repository 2012-10-15 20:41:42 +02:00
resources Fix single-file ignore checks 2012-10-15 12:54:46 -07:00
revwalk revwalk: fix off-by-one error 2012-09-27 19:12:01 +02:00
status Fix single-file ignore checks 2012-10-15 12:54:46 -07:00
submodule Add missing accessor for fetchRecurseSubmodules 2012-09-07 15:49:08 -07:00
threads t13-threads.c ported. 2012-03-30 13:05:54 -07:00
clar Fix clar issue 2012-10-09 15:25:58 -07:00
clar_helpers.c clar: Proper shutdown order 2012-10-02 20:23:54 +02: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.