libgit2/tests
Carlos Martín Nieto 23aa7c9037 remote: insert refspecs with no rhs in FETCH_HEAD
When a refspec contains no rhs and thus won't cause an explicit update,
we skip all the logic, but that means that we don't update FETCH_HEAD
with it, which is what the implicit rhs is.

Add another bit of logic which puts those remote heads in the list of
updates so we put them into FETCH_HEAD.
2015-06-25 13:40:38 +02:00
..
attr attr tests: make explicit our dir/file match tests 2015-05-13 10:56:55 -04:00
blame Factor 40 and 41 constants from source. 2014-09-16 13:07:04 +02:00
buf buf test: cleanup memory leak 2015-02-13 09:28:12 -05:00
checkout crlf tests: ensure that Unix obeys autocrlf=true 2015-06-22 12:00:26 -04:00
cherrypick Renamed git_merge_options 'flags' to 'tree_flags' 2015-03-16 09:53:27 +02:00
clar clar: support hierarchical test resource data 2015-06-22 12:00:15 -04:00
clone Merge pull request #3115 from libgit2/cmn/clone-submodule 2015-05-13 09:07:15 -04:00
commit commit: allow retrieving an arbitrary header field 2015-06-22 15:56:31 +02:00
config config: test all multivars are updated 2015-05-04 07:41:41 -05:00
core git_buf_text_lf_to_crlf: allow mixed line endings 2015-06-22 12:00:23 -04:00
date Added RFC2822 date format test cases 2014-04-11 21:55:36 +02:00
describe describe: only abort without tags if fallback is not allowed. 2015-04-07 17:32:56 +02:00
diff Explicitly handle GIT_DELTA_CONFLICTED in git_diff_merge() 2015-06-22 21:37:41 -07:00
fetchhead remote: insert refspecs with no rhs in FETCH_HEAD 2015-06-25 13:40:38 +02:00
filter crlf tests: ensure that Unix obeys autocrlf=true 2015-06-22 12:00:26 -04:00
graph Added a no path test for git_graph_descendant_of 2014-04-08 16:32:06 +02:00
index index: user a better assertion when comparing sizes 2015-06-19 21:56:42 +02:00
merge merge::workdir::dirty: tick idx to defeat racy-git 2015-06-16 16:39:13 -04:00
network Fix memory leak in tests/network/refspecs.c 2015-06-17 08:52:28 -04:00
notes note: use a git_buf to return the default namespace 2015-03-17 20:50:02 +01:00
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 clone: set the credentials callback during testing 2015-06-12 12:45:49 +02:00
pack Silence unused return value warning 2014-09-26 12:12:09 +02:00
path win32: further cleanups for 8.3 disabling 2015-02-03 20:01:24 -05:00
perf repository: remove log message override for switching the active branch 2015-03-03 14:40:50 +01:00
rebase Fixed unused warning in tests/rebase/merge.c 2015-04-30 14:17:05 +02:00
refs branch: error out if we cannot find the remote 2015-05-22 12:31:39 +02:00
remote remote: test insteadOf for anonymous remotes 2015-05-31 13:26:05 +02:00
repo Merge remote-tracking branch 'ethomson/submodule_8dot3' 2015-03-18 04:59:16 +01:00
reset conflict tests: use GIT_IDXENTRY_STAGE_SET 2015-05-28 09:44:22 -04:00
resources crlf tests: posix known-good data 2015-06-22 12:00:11 -04:00
revert Renamed git_merge_options 'flags' to 'tree_flags' 2015-03-16 09:53:27 +02:00
revwalk revwalk: add failing test for hiding and then pushing a commit 2015-04-08 23:42:36 +02:00
stash Fixed index being double-freed in stash tests 2015-06-20 10:57:03 -07:00
status status: test that symlinks don't lose their mode 2015-06-20 15:37:32 -04:00
stress diff: introduce binary diff callbacks 2015-06-12 09:39:20 -04:00
submodule Fix a few leaks 2015-05-13 16:40:18 +02:00
threads Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
trace Provide mechanism to let CLAR globally setup git_trace() 2015-03-02 08:20:27 -05:00
transport Clean up some leaks in the test suite 2014-09-17 03:19:40 +02:00
clar_libgit2_timer.c Converted cl_perf_timer to use git__timer internally. 2015-03-03 09:57:50 -05:00
clar_libgit2_timer.h Converted cl_perf_timer to use git__timer internally. 2015-03-03 09:57:50 -05:00
clar_libgit2_trace.c Added cl_perf_timer. Updated global trace to include timers. 2015-03-02 09:21:55 -05:00
clar_libgit2_trace.h Provide mechanism to let CLAR globally setup git_trace() 2015-03-02 08:20:27 -05:00
clar_libgit2.c Introduce cl_git_sandbox_init_new() 2015-05-28 09:47:39 -04:00
clar_libgit2.h Introduce cl_git_sandbox_init_new() 2015-05-28 09:47:39 -04:00
clar.c clar: update to 08f434d 2015-03-17 19:04:48 -04:00
clar.h Update to clar 2b73f5e 2015-02-27 00:30:50 -05:00
generate_crlf.sh crlf: script to generate expected crlf data 2015-06-22 11:59:58 -04:00
generate.py Update clar to e3985dd 2014-12-07 22:09:00 +08:00
main.c Add MSVC CRTDBG memory leak reporting. 2015-04-15 10:25:09 -04:00
README.md Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
valgrind-supp-mac.txt Test cancel from indexer progress callback 2013-12-11 15:02:20 -08: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.