aboutsummaryrefslogtreecommitdiffstats
path: root/t/meson.build
diff options
context:
space:
mode:
authorshejialuo <shejialuo@gmail.com>2025-06-29 12:28:14 +0800
committerJunio C Hamano <gitster@pobox.com>2025-07-07 08:07:46 -0700
commit07d90fda58c79af661016137cbbafab169eeb329 (patch)
treeb2ebd12674587f9a88b04f939176a95a6572bd0b /t/meson.build
parent67cfd2924d099b3316ddf579ba7c11fdc29ad2b6 (diff)
downloadgit-07d90fda58c79af661016137cbbafab169eeb329.tar.gz
u-string-list: move "test_split" into "u-string-list.c"
We rely on "test-tool string-list" command to test the functionality of the "string-list". However, as we have introduced clar test framework, we'd better move the shell script into C program to improve speed and readability. Create a new file "u-string-list.c" under "t/unit-tests", then update the Makefile and "meson.build" to build the file. And let's first move "test_split" into unit test and gradually convert the shell script into C program. In order to create `string_list` easily by simply specifying strings in the function call, create "t_vcreate_string_list_dup" function to do this. Then port the shell script tests to C program and remove unused "test-tool" code and tests. Signed-off-by: shejialuo <shejialuo@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/meson.build')
-rw-r--r--t/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/meson.build b/t/meson.build
index d052fc3e23..ae65445f71 100644
--- a/t/meson.build
+++ b/t/meson.build
@@ -11,6 +11,7 @@ clar_test_suites = [
'unit-tests/u-reftable-tree.c',
'unit-tests/u-strbuf.c',
'unit-tests/u-strcmp-offset.c',
+ 'unit-tests/u-string-list.c',
'unit-tests/u-strvec.c',
'unit-tests/u-trailer.c',
'unit-tests/u-urlmatch-normalization.c',