libgit2/tests-clar
Russell Belfer d46b0a04c7 Improve iterator ignoring .git file
The workdir iterator has always tried to ignore .git files, but
it turns out there were some bugs.  This makes it more robust at
ignoring .git files.

This also makes iterators always check ".git" case insensitively
regardless of the properties of the system.  This will make libgit2
skip ".GIT" and the like.  This is different from core git, but on
systems with case insensitive but case preserving file systems,
allowing ".GIT" to be added is problematic.
2012-11-19 16:34:44 -08:00
..
attr index refactoring 2012-10-29 20:04:21 -05:00
buf buf: introduce git_buf_splice() 2012-10-25 17:42:35 +02:00
checkout Add explicit git_index ptr to diff and checkout 2012-11-14 23:29:48 -08:00
clone Merge pull request #1016 from arrbee/fix-checkout-dir-removal 2012-11-13 14:13:47 -08:00
commit Merge pull request #805 from nulltoken/fix/revwalk-email-parsing 2012-07-12 09:37:09 -07:00
config Fix a couple of warnings 2012-11-18 04:27:49 +01:00
core env: ensure git_futils_find_xxx() returns ENOTFOUND 2012-11-17 05:41:22 -08:00
date Omit failing test on 32-bit machines. 2012-06-06 12:39:29 -07:00
diff Improve iterator ignoring .git file 2012-11-19 16:34:44 -08:00
fetchhead create FETCH_HEAD specially instead of as a ref file 2012-11-11 11:56:33 -06:00
index Add a test for invalid filenames while writing tree from index 2012-11-18 16:59:42 -08:00
network test: fix memory leak 2012-11-13 07:12:53 +01:00
notes Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
object Prevent creating .., ., and .git with tree builder 2012-11-18 15:15:24 -08:00
odb odb: recursively load alternates 2012-11-16 08:46:02 -08:00
pack packbuilder: add git_packbuilder_foreach 2012-11-01 06:21:49 +01:00
refs reflog: make entry_byindex() and drop() git compliant 2012-11-17 18:30:35 -08:00
repo repo: ensure is_empty() checks there are no refs 2012-11-17 07:20:08 -08:00
reset Fix reset hard tests on platforms with CRLF 2012-11-14 22:44:17 -08:00
resources config: distinguish between a lone variable name and one without rhs 2012-11-13 13:53:41 -08:00
revwalk revwalk: fix off-by-one error 2012-09-27 19:12:01 +02:00
stash reflog: make entry_byindex() and drop() git compliant 2012-11-17 18:30:35 -08:00
status Set up default internal ignores 2012-11-19 16:33:30 -08:00
submodule Extensions to rmdir and mkdir utilities 2012-11-09 13:52:06 -08: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 tests: introduce cl_git_remove_placeholders() 2012-11-17 07:20:07 -08:00
clar_libgit2.h tests: introduce cl_git_remove_placeholders() 2012-11-17 07:20:07 -08: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.