libgit2/tests-clar
Russell Belfer 0d64bef941 Add complex checkout test and then fix checkout
This started as a complex new test for checkout going through the
"typechanges" test repository, but that revealed numerous issues
with checkout, including:

* complete failure with submodules
* failure to create blobs with exec bits
* problems when replacing a tree with a blob because the tree
  "example/" sorts after the blob "example" so the delete was
  being processed after the single file blob was created

This fixes most of those problems and includes a number of other
minor changes that made it easier to do that, including improving
the TYPECHANGE support in diff/status, etc.
2012-10-09 11:59:34 -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 Add complex checkout test and then fix checkout 2012-10-09 11:59:34 -07:00
clone clone: fix cloning of empty repository 2012-10-08 00:44:21 +02: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 complex checkout test and then fix checkout 2012-10-09 11:59:34 -07:00
date Omit failing test on 32-bit machines. 2012-06-06 12:39:29 -07:00
diff Add complex checkout test and then fix checkout 2012-10-09 11:59:34 -07:00
index filemode: deploy enum usage 2012-08-21 23:15:10 +02:00
network refspec: add git_refspec__free, remove git_refspec_parse 2012-09-30 11:56:37 +02:00
notes Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
object Add complex checkout test and then fix checkout 2012-10-09 11:59:34 -07:00
odb revwalk: fix off-by-one error 2012-09-27 19:12:01 +02:00
refs branch: introduce git_branch_is_head() 2012-10-07 21:03:51 +02:00
repo Add complex checkout test and then fix checkout 2012-10-09 11:59:34 -07:00
reset reset: add support for GIT_RESET_HARD mode 2012-09-17 10:48:28 +02:00
resources Add complex checkout test and then fix checkout 2012-10-09 11:59:34 -07:00
revwalk revwalk: fix off-by-one error 2012-09-27 19:12:01 +02:00
status Add complex checkout test and then fix checkout 2012-10-09 11:59:34 -07:00
submodule Add complex checkout test and then fix checkout 2012-10-09 11:59:34 -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 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.