libgit2/tests-clar
Russell Belfer ca1b6e5409 Add template dir and set gid to repo init
This extends git_repository_init_ext further with support for
initializing the repository from an external template directory
and with support for the "create shared" type flags that make a
set GID repository directory.

This also adds tests for much of the new functionality to the
existing `repo/init.c` test suite.

Also, this adds a bunch of new utility functions including a
very general purpose `git_futils_mkdir` (with the ability to
make paths and to chmod the paths post-creation) and a file
tree copying function `git_futils_cp_r`.  Also, this includes
some new path functions that were useful to keep the code
simple.
2012-08-22 16:07:19 -07:00
..
attr Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
buf Update test suite 2012-05-02 16:14:30 -07:00
checkout Win32: test core.autocrlf 2012-08-21 10:55:39 -07:00
clone Turn off network-dependent test for CI. 2012-07-27 11:14:30 -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 template dir and set gid to repo init 2012-08-22 16:07:19 -07:00
date Omit failing test on 32-bit machines. 2012-06-06 12:39:29 -07:00
diff Minor bug fixes in diff code 2012-08-22 13:57:57 -07:00
index filemode: deploy enum usage 2012-08-21 23:15:10 +02:00
network Test trailing space after ref oid 2012-08-09 14:39:43 -05:00
notes Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
object tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode() 2012-08-21 23:15:13 +02:00
odb test: Open ODB on each test suite 2012-08-06 12:53:09 +02:00
refs Merge pull request #778 from ben/clone 2012-08-19 01:26:06 -07:00
repo Add template dir and set gid to repo init 2012-08-22 16:07:19 -07:00
reset Add git_reset() 2012-06-07 21:27:30 +02:00
resources Add template dir and set gid to repo init 2012-08-22 16:07:19 -07:00
revwalk revwalk: relax the parsing of the commit time 2012-07-11 20:40:12 +02:00
status Wrap up ignore API and add tests 2012-08-22 11:42:00 -07:00
threads t13-threads.c ported. 2012-03-30 13:05:54 -07:00
clar Fixed mode on clar 2012-05-10 11:15:37 -07:00
clar_helpers.c Make index add/append support core.filemode flag 2012-06-19 14:27:02 -07:00
clar_libgit2.h Make index add/append support core.filemode flag 2012-06-19 14:27:02 -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.