libgit2/tests-clay
Russell Belfer bd370b14fe Improved gitattributes macro implementation
This updates to implementation of gitattribute macros to be much more
similar to core git (albeit not 100%) and to handle expansion of
macros within macros, etc.  It also cleans up the refcounting usage
with macros to be much cleaner.

Also, this adds a new vector function `git_vector_insert_sorted()`
which allows you to maintain a sorted list as you go.  In order to
write that function, this changes the function `git__bsearch()` to
take a somewhat different set of parameters, although the core
functionality is still the same.
2011-12-30 15:00:14 -08:00
..
attr Improved gitattributes macro implementation 2011-12-30 15:00:14 -08:00
buf clay: Merge manually @leto's tests from #485 2011-11-22 01:41:22 +01:00
config repository: Change ownership semantics 2011-11-26 08:37:08 +01:00
core Improved gitattributes macro implementation 2011-12-30 15:00:14 -08:00
index tests-clay: remove extra semi-colon in clay_libgit2.h, add one to index/rename.c 2011-11-22 01:19:07 -06:00
network repository: Change ownership semantics 2011-11-26 08:37:08 +01:00
object Add unit test for proper init of index entries 2011-12-18 12:21:18 -08:00
odb Rename all _close methods 2011-11-26 08:48:00 +01:00
repo Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
status Implement p_rename 2011-11-07 20:34:27 +01:00
clay Update to Clay 0.10.0 2011-12-15 02:09:15 +01:00
clay_helpers.c Update to Clay 0.10.0 2011-12-15 02:09:15 +01:00
clay_libgit2.h Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
clay_main.c Improved gitattributes macro implementation 2011-12-30 15:00:14 -08:00
clay.h Improved gitattributes macro implementation 2011-12-30 15:00:14 -08:00
README.md Update clay instructions to use -vtap 2011-11-18 02:35:46 +01:00

Writing Clay tests for libgit2

For information on the Clay testing framework and a detailed introduction please visit:

https://github.com/tanoku/clay

  • Write your modules and tests. Use good, meaningful names.

  • Mix the tests:

      ./clay -vtap .
    
  • Make sure you actually build the tests by setting:

      BUILD_CLAY=ON
    
  • Test:

      ./build/libgit2_clay
    
  • Make sure everything is fine.

  • Send your pull request. That's it.