git/t/unit-tests
Seyi Kuforiji aae2b431b0 t/unit-tests: handle dashes in test suite filenames
"generate-clar-decls.sh" script is designed to extract function
signatures that match a specific pattern derived from the unit test
file's name. The script does not know to massage file names with dashes,
which will make it search for functions that look like, for example,
`test_mem-pool_*`. Having dashes in function names is not allowed
though, so these patterns won't ever match a legal function name.

Adapt script to translate dashes (`-`) in test suite filenames to
underscores (`_`) to correctly extract the function signatures and run
the corresponding tests. This will be used by subsequent commits which
follows the same construct.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-01-17 14:35:11 -08:00
..
clar
.gitignore
generate-clar-decls.sh t/unit-tests: handle dashes in test suite filenames 2025-01-17 14:35:11 -08:00
generate-clar-suites.sh
lib-oid.c
lib-oid.h
lib-reftable.c Merge branch 'ps/build-sign-compare' 2024-12-23 09:32:11 -08:00
lib-reftable.h
t-example-decorate.c global: trivial conversions to fix `-Wsign-compare` warnings 2024-12-06 20:20:04 +09:00
t-hash.c
t-hashmap.c
t-mem-pool.c
t-oid-array.c
t-oidmap.c
t-oidtree.c
t-prio-queue.c global: trivial conversions to fix `-Wsign-compare` warnings 2024-12-06 20:20:04 +09:00
t-reftable-basics.c t-reftable-basics: allow for `malloc` to be `#define`d 2025-01-08 09:41:52 -08:00
t-reftable-block.c
t-reftable-merged.c t-reftable-merged: handle realloc errors 2024-12-28 08:00:45 -08:00
t-reftable-pq.c
t-reftable-reader.c
t-reftable-readwrite.c Merge branch 'ps/build-sign-compare' 2024-12-23 09:32:11 -08:00
t-reftable-record.c
t-reftable-stack.c Merge branch 'ps/build-sign-compare' 2024-12-23 09:32:11 -08:00
t-reftable-tree.c
t-strbuf.c
t-strcmp-offset.c
t-trailer.c global: mark code units that generate warnings with `-Wsign-compare` 2024-12-06 20:20:02 +09:00
t-urlmatch-normalization.c
test-lib.c global: mark code units that generate warnings with `-Wsign-compare` 2024-12-06 20:20:02 +09:00
test-lib.h
u-ctype.c t/unit-tests: rename clar-based unit tests to have a common prefix 2024-12-13 06:48:46 -08:00
u-strvec.c Merge branch 'ps/ci-meson' 2024-12-23 09:32:25 -08:00
unit-test.c t: introduce compatibility options to clar-based tests 2024-12-13 06:48:47 -08:00
unit-test.h