libgit2/tests-clar
Russell Belfer ad9a921b92 Rework checkout with new strategy options
This is a major reworking of checkout strategy options.  The
checkout code is now sensitive to the contents of the HEAD tree
and the new options allow you to update the working tree so that
it will match the index content only when it previously matched
the contents of the HEAD.  This allows you to, for example, to
distinguish between removing files that are in the HEAD but not
in the index, vs just removing all untracked files.

Because of various corner cases that arise, etc., this required
some additional capabilities in rmdir and other utility functions.

This includes the beginnings of an implementation of code to read
a partial tree into the index based on a pathspec, but that is
not enabled because of the possibility of creating conflicting
index entries.
2012-11-09 13:52:07 -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 Rework checkout with new strategy options 2012-11-09 13:52:07 -08:00
clone Rework checkout with new strategy options 2012-11-09 13:52:07 -08:00
commit Merge pull request #805 from nulltoken/fix/revwalk-email-parsing 2012-07-12 09:37:09 -07:00
config config: make git_config_open_level() work with an empty config 2012-11-09 21:49:50 +01:00
core Extensions to rmdir and mkdir utilities 2012-11-09 13:52:06 -08:00
date Omit failing test on 32-bit machines. 2012-06-06 12:39:29 -07:00
diff Merge pull request #1014 from arrbee/diff-rename-detection 2012-11-02 10:00:28 -07:00
index index: Fix tests 2012-11-01 20:24:43 +01:00
network Revert "Don't expect the 'empty-remote-url' remote to be listed" 2012-11-05 10:58:13 -08:00
notes Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
object Extensions to rmdir and mkdir utilities 2012-11-09 13:52:06 -08:00
odb revwalk: fix off-by-one error 2012-09-27 19:12:01 +02:00
pack packbuilder: add git_packbuilder_foreach 2012-11-01 06:21:49 +01:00
refs reflog: fix bogus removal of reflog entries 2012-10-26 21:02:01 +02:00
repo Extensions to rmdir and mkdir utilities 2012-11-09 13:52:06 -08:00
reset repo: enhance git_repository_state() detection 2012-10-27 16:45:59 +02:00
resources - Update 'tests-clar/resources/config/config11' in order to reproduce the invalidread with the unittest (just added some \n at the end of the file) 2012-11-08 12:28:21 +01:00
revwalk revwalk: fix off-by-one error 2012-09-27 19:12:01 +02:00
stash Clean up a couple things missed in rebase 2012-11-09 13:52:07 -08:00
status Extensions to rmdir and mkdir utilities 2012-11-09 13:52:06 -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 Fix a bug in cl_setenv on Windows XP 2012-11-01 11:50:08 -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.