]> git.ipfire.org Git - thirdparty/git.git/commit
t/unit-tests: introduce reftable library
authorPatrick Steinhardt <ps@pks.im>
Mon, 16 Sep 2024 08:50:11 +0000 (10:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Sep 2024 20:57:18 +0000 (13:57 -0700)
commita4f50bb1e9b6840bb4583ac4bc6d93bea9704879
tree30f8484a3c1efdde38898d0d7631f62229713a47
parent428672a3b16f65c01f0bb78d266b9fc168a94eb3
t/unit-tests: introduce reftable library

We have recently migrated all of the reftable unit tests that were part
of the reftable library into our own unit testing framework. As part of
that migration we have duplicated some of the functionality that was
part of the reftable test framework into each of the migrated test
suites. This was a sensible decision to not have all of the migrations
dependent on each other, but now that the migration is done it makes
sense to deduplicate the functionality again.

Introduce a new reftable test library that hosts some shared code and
adapt tests to use it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/unit-tests/lib-reftable.c [new file with mode: 0644]
t/unit-tests/lib-reftable.h [new file with mode: 0644]
t/unit-tests/t-reftable-merged.c
t/unit-tests/t-reftable-readwrite.c
t/unit-tests/t-reftable-stack.c