aboutsummaryrefslogtreecommitdiffstats
path: root/t/unit-tests
AgeCommit message (Expand)AuthorFilesLines
2024-09-30Merge branch 'ps/reftable-concurrent-writes'Junio C Hamano1-2/+65
2024-09-25Merge branch 'ps/reftable-exclude'Junio C Hamano6-179/+348
2024-09-24reftable/stack: allow locking of outdated stacksPatrick Steinhardt1-2/+65
2024-09-18Merge branch 'ps/clar-unit-test'Junio C Hamano25-221/+3357
2024-09-16Merge branch 'cp/unit-test-reftable-stack'Junio C Hamano1-0/+1324
2024-09-16reftable/reader: make table iterator reseekablePatrick Steinhardt2-0/+172
2024-09-16t/unit-tests: introduce reftable libraryPatrick Steinhardt5-179/+176
2024-09-12Merge branch 'gt/unit-test-oid-array'Junio C Hamano3-1/+135
2024-09-09Merge branch 'cp/unit-test-reftable-stack' into ps/reftable-excludeJunio C Hamano1-0/+1324
2024-09-09t-reftable-stack: add test for stack iteratorsChandra Pratap1-0/+83
2024-09-09t-reftable-stack: add test for non-default compaction factorChandra Pratap1-4/+37
2024-09-09t-reftable-stack: use reftable_ref_record_equal() to compare ref recordsChandra Pratap1-2/+2
2024-09-08t-reftable-stack: use Git's tempfile API instead of mkstemp()Chandra Pratap1-1/+3
2024-09-08t: harmonize t-reftable-stack.c with coding guidelinesChandra Pratap1-57/+53
2024-09-08t: move reftable/stack_test.c to the unit testing frameworkChandra Pratap1-0/+1210
2024-09-06Merge branch 'jk/unused-parameters'Junio C Hamano1-1/+1
2024-09-04t/unit-tests: convert ctype tests to use clarPatrick Steinhardt2-10/+68
2024-09-04t/unit-tests: convert strvec tests to use clarPatrick Steinhardt2-211/+241
2024-09-04t/unit-tests: implement test driverPatrick Steinhardt1-2/+43
2024-09-04Makefile: wire up the clar unit testing frameworkPatrick Steinhardt4-0/+61
2024-09-04clar: stop including `shellapi.h` unnecessarilyJohannes Schindelin1-1/+1
2024-09-04clar(win32): avoid compile error due to unused `fs_copy()`Johannes Schindelin1-0/+2
2024-09-04clar: avoid compile error with mingw-w64Johannes Schindelin1-1/+1
2024-09-04t/clar: fix compatibility with NonStopPatrick Steinhardt1-0/+6
2024-09-04t: import the clar unit testing frameworkPatrick Steinhardt18-0/+2938
2024-09-03Merge branch 'ps/reftable-concurrent-compaction'Junio C Hamano3-51/+54
2024-09-01t: port helper/test-oid-array.c to unit-tests/t-oid-array.cGhanshyam Thakkar3-1/+135
2024-08-29Merge branch 'cp/unit-test-reftable-block'Junio C Hamano1-0/+370
2024-08-29Merge branch 'ps/reftable-drop-generic'Junio C Hamano1-13/+4
2024-08-28Merge branch 'gt/unit-test-urlmatch-normalization'Junio C Hamano1-0/+271
2024-08-28t-reftable-block: mark unused argv/argcJeff King1-1/+1
2024-08-28t-reftable-readwrite: mark unused parameter in callback functionJeff King1-1/+1
2024-08-26Merge branch 'jk/mark-unused-parameters'Junio C Hamano15-17/+17
2024-08-23Merge branch 'cp/unit-test-reftable-readwrite'Junio C Hamano1-0/+974
2024-08-23reftable/reader: introduce refcountingPatrick Steinhardt1-2/+2
2024-08-23reftable/reader: rename `reftable_new_reader()`Patrick Steinhardt1-3/+3
2024-08-22reftable/generic: drop interfacePatrick Steinhardt1-1/+0
2024-08-22reftable/merged: stop using generic tables in the merged tablePatrick Steinhardt1-12/+4
2024-08-22reftable/merged: rename `reftable_new_merged_table()`Patrick Steinhardt1-4/+4
2024-08-21t-reftable-block: add tests for index blocksChandra Pratap1-0/+88
2024-08-21t-reftable-block: add tests for obj blocksChandra Pratap1-0/+82
2024-08-21t-reftable-block: add tests for log blocksChandra Pratap1-2/+91
2024-08-21t-reftable-block: remove unnecessary variable 'j'Chandra Pratap1-4/+2
2024-08-21t-reftable-block: use xstrfmt() instead of xstrdup()Chandra Pratap1-4/+1
2024-08-21t-reftable-block: use block_iter_reset() instead of block_iter_close()Chandra Pratap1-6/+2
2024-08-21t-reftable-block: use reftable_record_key() instead of strbuf_addstr()Chandra Pratap1-2/+1
2024-08-21t-reftable-block: use reftable_record_equal() instead of check_str()Chandra Pratap1-9/+9
2024-08-21t-reftable-block: release used block readerChandra Pratap1-0/+1
2024-08-21t: harmonize t-reftable-block.c with coding guidelinesChandra Pratap1-26/+26
2024-08-21t: move reftable/block_test.c to the unit testing frameworkChandra Pratap1-0/+120
2024-08-20t: migrate t0110-urlmatch-normalization to the new frameworkGhanshyam Thakkar1-0/+271
2024-08-20t-hashmap: stop calling setup() for t_intern() testJeff King1-3/+2
2024-08-19Merge branch 'rs/unit-tests-test-run'Junio C Hamano5-356/+348
2024-08-17t-hashmap: mark unused parameters in callback functionJeff King1-1/+2
2024-08-17reftable: mark unused parameters in virtual functionsJeff King1-1/+1
2024-08-17unit-tests: ignore unused argc/argvJeff King13-13/+13
2024-08-15Merge branch 'gt/unit-test-hashmap'Junio C Hamano1-0/+361
2024-08-15Merge branch 'rs/t-example-simplify'Junio C Hamano1-16/+8
2024-08-14Merge branch 'cp/unit-test-reftable-tree'Junio C Hamano1-0/+84
2024-08-14Merge branch 'cp/unit-test-reftable-pq'Junio C Hamano1-0/+152
2024-08-13t-reftable-readwrite: add test for known errorChandra Pratap1-0/+5
2024-08-13t-reftable-readwrite: use 'for' in place of infinite 'while' loopsChandra Pratap1-9/+3
2024-08-13t-reftable-readwrite: use free_names() instead of a for loopChandra Pratap1-7/+3
2024-08-13t: move reftable/readwrite_test.c to the unit testing frameworkChandra Pratap1-0/+979
2024-08-08Merge branch 'ks/unit-test-comment-typofix'Junio C Hamano1-2/+3
2024-08-06t: port helper/test-hashmap.c to unit-tests/t-hashmap.cGhanshyam Thakkar1-0/+361
2024-08-04t-reftable-tree: improve the test for infix_walk()Chandra Pratap1-7/+15
2024-08-04t-reftable-tree: add test for non-existent keyChandra Pratap1-0/+1
2024-08-04t-reftable-tree: split test_tree() into two sub-test functionsChandra Pratap1-4/+19
2024-08-04t: move reftable/tree_test.c to the unit testing frameworkChandra Pratap1-0/+60
2024-08-01t-reftable-pq: add tests for merged_iter_pqueue_top()Chandra Pratap1-0/+49
2024-08-01t-reftable-pq: add test for index based comparisonChandra Pratap1-6/+42
2024-08-01t-reftable-pq: make merged_iter_pqueue_check() callable by referenceChandra Pratap1-5/+5
2024-08-01t-reftable-pq: make merged_iter_pqueue_check() staticChandra Pratap1-1/+1
2024-08-01t: move reftable/pq_test.c to the unit testing frameworkChandra Pratap1-0/+67
2024-07-31Merge branch 'cp/unit-test-reftable-merged'Junio C Hamano1-0/+463
2024-07-31Merge branch 'rs/t-strvec-use-test-msg'Junio C Hamano1-32/+15
2024-07-30t-strvec: use if_testRené Scharfe1-200/+156
2024-07-30t-reftable-basics: use if_testRené Scharfe1-122/+106
2024-07-30t-ctype: use if_testRené Scharfe1-3/+1
2024-07-30unit-tests: add if_testRené Scharfe2-0/+49
2024-07-30unit-tests: show location of checks outside of testsRené Scharfe1-1/+6
2024-07-30t-example-decorate: remove test messagesRené Scharfe1-16/+8
2024-07-29unit-tests/test-lib: fix typo in check_pointer_eq() descriptionKousik Sanagavarapu1-2/+3
2024-07-16t-strvec: fix type mismatch in check_strvecRené Scharfe1-1/+2
2024-07-15Merge branch 'cp/unit-test-reftable-record'Junio C Hamano1-0/+551
2024-07-15Merge branch 'gt/unit-test-oidmap'Junio C Hamano1-0/+181
2024-07-15t-strvec: improve check_strvec() outputRené Scharfe1-32/+14
2024-07-12t-reftable-merged: add test for REFTABLE_FORMAT_ERRORChandra Pratap1-0/+3
2024-07-12t-reftable-merged: use reftable_ref_record_equal to compare ref recordsChandra Pratap1-1/+1
2024-07-12t-reftable-merged: add tests for reftable_merged_table_max_update_indexChandra Pratap1-0/+2
2024-07-12t-reftable-merged: improve the const-correctness of helper functionsChandra Pratap1-10/+9
2024-07-12t-reftable-merged: improve the test t_merged_single_record()Chandra Pratap1-5/+10
2024-07-12t: harmonize t-reftable-merged.c with coding guidelinesChandra Pratap1-40/+28
2024-07-12t: move reftable/merged_test.c to the unit testing frameworkChandra Pratap1-0/+466
2024-07-06t-strvec: use test_msg()René Scharfe1-6/+6
2024-07-03t: migrate helper/test-oidmap.c to unit-tests/t-oidmap.cGhanshyam Thakkar1-0/+181
2024-07-02Merge branch 'ps/use-the-repository'Junio C Hamano2-1/+3
2024-07-02t-reftable-record: add tests for reftable_log_record_compare_key()Chandra Pratap1-0/+30
2024-07-02t-reftable-record: add tests for reftable_ref_record_compare_name()Chandra Pratap1-0/+20
2024-07-02t-reftable-record: add index tests for reftable_record_is_deletion()Chandra Pratap1-0/+1
2024-07-02t-reftable-record: add obj tests for reftable_record_is_deletion()Chandra Pratap1-0/+1
2024-07-02t-reftable-record: add log tests for reftable_record_is_deletion()Chandra Pratap1-0/+4
2024-07-02t-reftable-record: add ref tests for reftable_record_is_deletion()Chandra Pratap1-0/+2
2024-07-02t-reftable-record: add comparison tests for obj recordsChandra Pratap1-0/+39
2024-07-02t-reftable-record: add comparison tests for index recordsChandra Pratap1-0/+38
2024-07-02t-reftable-record: add comparison tests for ref recordsChandra Pratap1-0/+33
2024-07-02t-reftable-record: add reftable_record_cmp() tests for log recordsChandra Pratap1-13/+25
2024-07-02t: move reftable/record_test.c to the unit testing frameworkChandra Pratap1-0/+371
2024-06-20Merge branch 'gt/unit-test-oidtree'Junio C Hamano3-0/+191
2024-06-17Merge branch 'ps/no-writable-strings'Junio C Hamano2-8/+10
2024-06-14hash-ll: merge with "hash.h"Patrick Steinhardt1-1/+1
2024-06-14global: introduce `USE_THE_REPOSITORY_VARIABLE` macroPatrick Steinhardt1-0/+2
2024-06-13Merge branch 'gt/unit-test-oidtree' into ps/use-the-repositoryJunio C Hamano3-0/+191
2024-06-12Merge branch 'gt/decorate-unit-test'Junio C Hamano1-0/+80
2024-06-12Merge branch 'gt/t-hash-unit-test'Junio C Hamano1-0/+84
2024-06-12Merge branch 'cp/reftable-unit-test'Junio C Hamano1-0/+160
2024-06-12t/: migrate helper/test-oidtree.c to unit-tests/t-oidtree.cGhanshyam Thakkar3-0/+191
2024-06-10Merge branch 'jk/leakfixes'Junio C Hamano1-0/+3
2024-06-07global: improve const correctness when assigning string constantsPatrick Steinhardt1-4/+6
2024-06-06Merge branch 'ps/leakfixes'Junio C Hamano3-0/+295
2024-05-30Merge branch 'gt/unit-test-strcmp-offset'Junio C Hamano1-0/+35
2024-05-30t-strvec: mark variable-arg helper with LAST_ARG_MUST_BE_NULLJeff King1-0/+1
2024-05-30t-strvec: use va_end() to match va_start()Jeff King1-0/+2
2024-05-30Merge branch 'ps/leakfixes' into jk/leakfixesJunio C Hamano3-0/+295
2024-05-30t: improve the test-case for parse_names()Chandra Pratap1-2/+4
2024-05-30t: add test for put_be16()Chandra Pratap1-0/+11
2024-05-30t: move tests from reftable/record_test.c to the new unit testChandra Pratap1-7/+33
2024-05-30t: move tests from reftable/stack_test.c to the new unit testChandra Pratap1-3/+22
2024-05-30t: move reftable/basics_test.c to the unit testing frameworkChandra Pratap1-0/+102
2024-05-29Merge branch 'ps/leakfixes' into ps/no-writable-stringsJunio C Hamano3-0/+295
2024-05-29t/: migrate helper/test-{sha1, sha256} to unit-tests/t-hashGhanshyam Thakkar1-0/+84
2024-05-28t/: migrate helper/test-example-decorate to the unit testing frameworkGhanshyam Thakkar1-0/+80
2024-05-27strvec: add functions to replace and remove stringsPatrick Steinhardt3-0/+295
2024-05-23Merge branch 'la/hide-trailer-info'Junio C Hamano1-0/+315
2024-05-20t/: port helper/test-strcmp-offset.c to unit-tests/t-strcmp-offset.cGhanshyam Thakkar1-0/+35
2024-05-15Merge branch 'js/unit-test-suite-runner'Junio C Hamano1-95/+0
2024-05-06t0080: turn t-basic unit test into a helperJosh Steadmon1-95/+0
2024-05-02trailer unit tests: inspect iterator contentsLinus Arver1-13/+148
2024-05-02trailer: teach iterator about non-trailer linesLinus Arver1-5/+11
2024-05-02trailer: add unit tests for trailer iteratorLinus Arver1-0/+174
2024-04-02t-prio-queue: simplify using compound literalsRené Scharfe1-34/+17
2024-03-18t-prio-queue: check result array boundsRené Scharfe1-3/+11
2024-03-18t-prio-queue: shorten array index messageRené Scharfe1-4/+6
2024-03-03t-ctype: avoid duplicating class namesRené Scharfe1-40/+24
2024-03-03t-ctype: align output of iRené Scharfe1-1/+1
2024-03-03t-ctype: simplify EOF checkRené Scharfe1-2/+1
2024-03-03t-ctype: allow NUL anywhere in the specification stringRené Scharfe1-14/+4
2024-02-13Merge branch 'jc/unit-tests-make-relative-fix'Junio C Hamano1-14/+47
2024-02-12unit-tests: do show relative file paths on non-Windows, tooJunio C Hamano1-14/+47
2024-02-08Merge branch 'cp/unit-test-prio-queue'Junio C Hamano1-0/+98
2024-01-26Merge branch 'al/unit-test-ctype'Junio C Hamano1-0/+80
2024-01-22tests: move t0009-prio-queue.sh to the new unit testing frameworkChandra Pratap1-0/+98
2024-01-16unit-tests: rewrite t/helper/test-ctype.c as a unit testAchu Luma1-0/+80
2023-12-28mem-pool: fix big allocationsRené Scharfe1-0/+31
2023-11-10unit-tests: do show relative file pathsJohannes Schindelin1-4/+48
2023-11-10unit tests: add TAP unit test frameworkPhillip Wood5-0/+695