libgit2/tests
Edward Thomson e8ddd8d76c repo::reservedname: test a submodule update
Test an initial submodule update, where we are trying to checkout
the submodule for the first time, and placing a file within the
submodule working directory with the same name as the submodule
(and consequently, the same name as the repository itself).
2015-09-18 12:17:49 -04:00
..
attr attr tests: make explicit our dir/file match tests 2015-05-13 10:56:55 -04:00
blame Fix #3094 - improve use of portable size_t/ssize_t format specifiers. 2015-07-12 19:55:19 +02:00
buf
checkout checkout: overwrite files with differing modes 2015-09-16 10:33:59 -04:00
cherrypick
clar clar: test chdir 2015-06-29 22:13:40 +00:00
clone clone::nonetwork: don't use fixed size buffer 2015-09-14 13:58:38 -04:00
commit commit: allow retrieving an arbitrary header field 2015-06-22 15:56:31 +02:00
config Don't free config in git_transaction_commit. 2015-09-13 16:32:24 +02:00
core diriter: test we can iterate root 2015-09-13 13:52:23 -04:00
date
describe
diff diff::workdir: ensure ignored files are not returned 2015-09-12 13:46:22 -04:00
fetchhead index, iterator, fetchhead: plug leaks 2015-06-26 19:00:33 +02:00
filter wildcard filters: move CHANGELOG message to 0.23+1 2015-07-10 09:53:30 -05:00
graph
index Merge pull request #3353 from ethomson/wrongcase_add 2015-09-08 18:34:51 +02:00
merge iterator: use an options struct instead of args 2015-08-28 18:39:47 -04:00
network remote: add failing test for a mirror refspec 2015-08-11 20:44:19 +02:00
notes
object conflict tests: use GIT_IDXENTRY_STAGE_SET 2015-05-28 09:44:22 -04:00
odb path: error out if the callback returns an error 2015-06-06 03:55:28 +02:00
online push: put the git_oid inline in the test structure 2015-09-13 05:38:29 +02:00
pack
path
perf
rebase Fixed unused warning in tests/rebase/merge.c 2015-04-30 14:17:05 +02:00
refs refdb: delete a ref's reflog upon deletion 2015-07-12 19:08:06 +02:00
remote remote: test insteadOf for anonymous remotes 2015-05-31 13:26:05 +02:00
repo repo::reservedname: test a submodule update 2015-09-18 12:17:49 -04:00
reset conflict tests: use GIT_IDXENTRY_STAGE_SET 2015-05-28 09:44:22 -04:00
resources repo::reservedname: test a submodule update 2015-09-18 12:17:49 -04:00
revert revert: correct test that added trailing newline 2015-07-07 17:01:49 -05:00
revwalk revwalk: add failing test for hiding and then pushing a commit 2015-04-08 23:42:36 +02:00
stash stash: const up conflict params 2015-06-29 21:23:09 +00:00
status Merge branch 'cmn/ignore-dir-check' 2015-09-13 06:21:18 +02:00
stress diff: introduce binary diff callbacks 2015-06-12 09:39:20 -04:00
submodule repo::reservedname: test a submodule update 2015-09-18 12:17:49 -04:00
threads iterator: use an options struct instead of args 2015-08-28 18:39:47 -04:00
trace Include stacktrace summary in memory leak output. 2015-06-29 16:39:11 -04:00
transport
clar_libgit2_timer.c
clar_libgit2_timer.h
clar_libgit2_trace.c Include stacktrace summary in memory leak output. 2015-06-29 16:39:11 -04:00
clar_libgit2_trace.h
clar_libgit2.c cl_git_path_url: assert sane static buffer size 2015-09-14 14:05:01 -04:00
clar_libgit2.h git__getenv: utf-8 aware env reader 2015-07-02 16:35:43 +00:00
clar.c
clar.h
generate_crlf.sh crlf: script to generate expected crlf data 2015-06-22 11:59:58 -04:00
generate.py
main.c Include stacktrace summary in memory leak output. 2015-06-29 16:39:11 -04:00
README.md
valgrind-supp-mac.txt

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.