t/helper: merge test-pkt-line into test-tool

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy
2018-09-09 19:36:28 +02:00
committed by Junio C Hamano
parent cd780f0b69
commit 8ea40cc55d
7 changed files with 31 additions and 28 deletions

View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "test-tool.h"
#include "pkt-line.h"
static void pack_line(const char *line)
@ -79,7 +80,7 @@ static void unpack_sideband(void)
}
}
int cmd_main(int argc, const char **argv)
int cmd__pkt_line(int argc, const char **argv)
{
if (argc < 2)
die("too few arguments");

View File

@ -27,6 +27,7 @@ static struct test_cmd cmds[] = {
{ "mktemp", cmd__mktemp },
{ "online-cpus", cmd__online_cpus },
{ "path-utils", cmd__path_utils },
{ "pkt-line", cmd__pkt_line },
{ "prio-queue", cmd__prio_queue },
{ "read-cache", cmd__read_cache },
{ "ref-store", cmd__ref_store },

View File

@ -23,6 +23,7 @@ int cmd__mergesort(int argc, const char **argv);
int cmd__mktemp(int argc, const char **argv);
int cmd__online_cpus(int argc, const char **argv);
int cmd__path_utils(int argc, const char **argv);
int cmd__pkt_line(int argc, const char **argv);
int cmd__prio_queue(int argc, const char **argv);
int cmd__read_cache(int argc, const char **argv);
int cmd__ref_store(int argc, const char **argv);