Merge branch 'sk/reftable-clarify-tests'
authorJunio C Hamano <gitster@pobox.com>
Fri, 1 Aug 2025 18:27:14 +0000 (1 11:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Aug 2025 18:27:14 +0000 (1 11:27 -0700)
The reftable unit tests are now ported to the "clar" unit testing
framework.

* sk/reftable-clarify-tests:
  t/unit-tests: finalize migration of reftable-related tests
  t/unit-tests: convert reftable stack test to use clar
  t/unit-tests: convert reftable record test to use clar
  t/unit-tests: convert reftable readwrite test to use clar
  t/unit-tests: convert reftable table test to use clar
  t/unit-tests: convert reftable pq test to use clar
  t/unit-tests: convert reftable merged test to use clar
  t/unit-tests: convert reftable block test to use clar
  t/unit-tests: convert reftable basics test to use clar test framework
  t/unit-tests: implement clar specific reftable test helper functions

1  2 
Makefile
t/meson.build

diff --cc Makefile
Simple merge
diff --cc t/meson.build
@@@ -52,35 -60,8 +61,8 @@@ clar_unit_tests = executable('unit-test
    sources: clar_sources + clar_test_suites,
    dependencies: [libgit_commonmain],
  )
 -test('unit-tests', clar_unit_tests)
 +test('unit-tests', clar_unit_tests, kwargs: test_kwargs)
  
- unit_test_programs = [
-   'unit-tests/t-reftable-basics.c',
-   'unit-tests/t-reftable-block.c',
-   'unit-tests/t-reftable-merged.c',
-   'unit-tests/t-reftable-pq.c',
-   'unit-tests/t-reftable-readwrite.c',
-   'unit-tests/t-reftable-record.c',
-   'unit-tests/t-reftable-stack.c',
-   'unit-tests/t-reftable-table.c',
- ]
- foreach unit_test_program : unit_test_programs
-   unit_test_name = fs.stem(unit_test_program)
-   unit_test = executable(unit_test_name,
-     sources: [
-       'unit-tests/test-lib.c',
-       'unit-tests/lib-reftable.c',
-       unit_test_program,
-     ],
-     dependencies: [libgit_commonmain],
-   )
-   test(unit_test_name, unit_test,
-     workdir: meson.current_source_dir(),
-     kwargs: test_kwargs,
-   )
- endforeach
  subdir('helper')
  
  integration_tests = [