Skip to content

Commit 599fbd8

Browse files
pcloudsgitster
authored andcommitted
t/helper: merge test-urlmatch-normalization into test-tool
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 112edd6 commit 599fbd8

File tree

5 files changed

+139
-136
lines changed

5 files changed

+139
-136
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ TEST_BUILTINS_OBJS += test-strcmp-offset.o
684684
TEST_BUILTINS_OBJS += test-string-list.o
685685
TEST_BUILTINS_OBJS += test-submodule-config.o
686686
TEST_BUILTINS_OBJS += test-subprocess.o
687+
TEST_BUILTINS_OBJS += test-urlmatch-normalization.o
687688

688689
TEST_PROGRAMS_NEED_X += test-dump-fsmonitor
689690
TEST_PROGRAMS_NEED_X += test-dump-untracked-cache
@@ -693,7 +694,6 @@ TEST_PROGRAMS_NEED_X += test-parse-options
693694
TEST_PROGRAMS_NEED_X += test-write-cache
694695
TEST_PROGRAMS_NEED_X += test-svn-fe
695696
TEST_PROGRAMS_NEED_X += test-tool
696-
TEST_PROGRAMS_NEED_X += test-urlmatch-normalization
697697
TEST_PROGRAMS_NEED_X += test-wildmatch
698698

699699
TEST_PROGRAMS = $(patsubst %,t/helper/%$X,$(TEST_PROGRAMS_NEED_X))

t/helper/test-tool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ static struct test_cmd cmds[] = {
3939
{ "string-list", cmd__string_list },
4040
{ "submodule-config", cmd__submodule_config },
4141
{ "subprocess", cmd__subprocess },
42+
{ "urlmatch-normalization", cmd__urlmatch_normalization },
4243
};
4344

4445
int cmd_main(int argc, const char **argv)

t/helper/test-tool.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ int cmd__strcmp_offset(int argc, const char **argv);
3333
int cmd__string_list(int argc, const char **argv);
3434
int cmd__submodule_config(int argc, const char **argv);
3535
int cmd__subprocess(int argc, const char **argv);
36+
int cmd__urlmatch_normalization(int argc, const char **argv);
3637

3738
#endif

t/helper/test-urlmatch-normalization.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
#include "test-tool.h"
12
#include "git-compat-util.h"
23
#include "urlmatch.h"
34

4-
int cmd_main(int argc, const char **argv)
5+
int cmd__urlmatch_normalization(int argc, const char **argv)
56
{
6-
const char usage[] = "test-urlmatch-normalization [-p | -l] <url1> | <url1> <url2>";
7+
const char usage[] = "test-tool urlmatch-normalization [-p | -l] <url1> | <url1> <url2>";
78
char *url1, *url2;
89
int opt_p = 0, opt_l = 0;
910

0 commit comments

Comments
 (0)