libgit2/tests
Carlos Martín Nieto 3b6534b807 describe: split into gather and format steps
Instead of printing out to the buffer inside the information-gathering
phase, write the data to a intermediate result structure.

This allows us to split the options into gathering options and
formatting options, simplifying the gathering code.
2014-09-30 07:24:28 +02:00
..
attr attr: Add an extra test for files under a subfolder 2014-09-17 15:08:16 +02:00
blame Factor 40 and 41 constants from source. 2014-09-16 13:07:04 +02:00
buf Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
checkout Merge pull request #2567 from cirosantilli/factor-41 2014-09-17 17:13:25 +02:00
cherrypick Added test case to illustrate bogus conflicts detected if no files were merged, and untracked files exist in the workdir. 2014-09-12 22:01:22 +02:00
clar Clar: skip tests 2014-04-02 18:50:47 +02:00
clone Custom transport: minor cleanups 2014-08-14 08:52:20 -05:00
commit signature: don't allow empty emails 2014-09-10 18:14:46 +02:00
config config: a multiline var can start immediately 2014-08-09 11:06:49 +02:00
core path: Fix git_path_walk_up to work with non-rooted paths 2014-09-17 15:00:12 +02:00
date Added RFC2822 date format test cases 2014-04-11 21:55:36 +02:00
describe describe: split into gather and format steps 2014-09-30 07:24:28 +02:00
diff Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
fetchhead When auto follow tags, FETCH_HEAD should list only newly followed tags 2014-09-06 00:26:56 +08:00
filter Ignore core.safecrlf=warn until we have a warn infrastructure 2014-05-30 11:30:53 -05:00
graph Added a no path test for git_graph_descendant_of 2014-04-08 16:32:06 +02:00
index Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
merge Fixed merge REUC test for big-endian 64-bit 2014-09-26 12:12:08 +02:00
network Clean up some leaks in the test suite 2014-09-17 03:19:40 +02:00
notes Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
object Factor 40 and 41 constants from source. 2014-09-16 13:07:04 +02:00
odb Fixed odb foreach test failure for big-endian 64-bit 2014-09-26 12:12:08 +02:00
online ssh: skip the localhost cert check earlier 2014-09-16 17:13:58 +02:00
pack Silence unused return value warning 2014-09-26 12:12:09 +02:00
path path: Fix git_path_walk_up to work with non-rooted paths 2014-09-17 15:00:12 +02:00
refs Use p_snprintf also in tests 2014-08-05 20:51:59 +02:00
repo Clean up some leaks in the test suite 2014-09-17 03:19:40 +02:00
reset Reset tests: Use sandboxed index 2014-04-25 15:49:58 +02:00
resources Revert "test: Remove symlinks from the source tree" 2014-08-18 15:18:47 +02:00
revert Capture conflict information in MERGE_MSG for revert and merge 2014-04-14 16:16:22 +02:00
revwalk Factor 40 and 41 constants from source. 2014-09-16 13:07:04 +02:00
stash Added test for stashing files in ignored directories 2014-09-24 13:24:06 +02:00
status Merge pull request #2508 from libgit2/rb/fix-ignore-slash-star 2014-08-26 17:48:20 +02:00
stress Use p_snprintf also in tests 2014-08-05 20:51:59 +02:00
structinit Custom transport: minor cleanups 2014-08-14 08:52:20 -05:00
submodule Introduce option to use relative paths for repository work directory 2014-09-02 21:07:26 -04:00
threads global: free the error message when exiting a thread 2014-09-14 00:39:07 +02:00
trace Remove trace / add git_diff_perfdata struct + api 2014-05-02 09:21:33 -07:00
transport Clean up some leaks in the test suite 2014-09-17 03:19:40 +02:00
clar_libgit2.c Switch description and path reporting 2014-07-15 10:00:46 -04:00
clar_libgit2.h Use p_snprintf also in tests 2014-08-05 20:51:59 +02:00
clar.c Clar: skip tests 2014-04-02 18:50:47 +02:00
clar.h Clar: skip tests 2014-04-02 18:50:47 +02:00
generate.py Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
main.c Better search path sandboxing 2014-05-15 10:56:28 -07: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.