]> git.ipfire.org Git - thirdparty/git.git/commit
t/unit-tests: finalize migration of reftable-related tests
authorSeyi Kuforiji <kuforiji98@gmail.com>
Thu, 24 Jul 2025 14:28:37 +0000 (15:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Jul 2025 18:46:04 +0000 (11:46 -0700)
commit9bbc981c6f27e00d050d4f70b0293f56e39b019a
treeab4b3c751450fa4c1480accae45f015faf264c81
parent1cfd187fc12b1c82e4e0d0c86c580ee1e2d7e0ba
t/unit-tests: finalize migration of reftable-related tests

The old `lib-reftable.{c,h}` implemented helper functions for our
homegrown unit-testing framework. As part of migrating reftable-related
tests to the Clar framework, Clar-specific versions of these functions
in `lib-reftable-clar.{c,h}` were introduced.

Now that all test files using these helpers have been converted to Clar,
we can safely remove the original `lib-reftable.{c,h}` and rename the
Clar- specific versions back to `lib-reftable.{c,h}`. This restores a
clean and consistent naming scheme for shared test utilities.

Finally, update our build system to reflect the changes made and remove
redundant code related to the reftable tests and our old homegrown
unit-testing setup. `test-lib.{c,h}` remains unchanged in our build
system as some files particularly `t/helper/test-example-tap.c` depends
on it in order to run, and removing that would be beyond the scope of
this patch.

Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 files changed:
Makefile
t/Makefile
t/meson.build
t/unit-tests/lib-reftable-clar.c [deleted file]
t/unit-tests/lib-reftable-clar.h [deleted file]
t/unit-tests/lib-reftable.c
t/unit-tests/lib-reftable.h
t/unit-tests/u-reftable-basics.c
t/unit-tests/u-reftable-block.c
t/unit-tests/u-reftable-merged.c
t/unit-tests/u-reftable-pq.c
t/unit-tests/u-reftable-readwrite.c
t/unit-tests/u-reftable-record.c
t/unit-tests/u-reftable-stack.c
t/unit-tests/u-reftable-table.c