]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'sk/reftable-clarify-tests' into jch
authorJunio C Hamano <gitster@pobox.com>
Tue, 24 Jun 2025 16:49:31 +0000 (09:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Jun 2025 16:49:31 +0000 (09:49 -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 
t/meson.build

diff --cc t/meson.build
index 6d7fe6b117ea4a81341acead4e16d6693452c9a4,be96a9639fc64d8c7fba4ed086bca18f9754c06d..07fa4682165e83ae6717535cdf3bf3b94278d199
@@@ -51,35 -60,8 +60,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 = [