Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t/helper: merge test-example-decorate into test-tool
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sat, 24 Mar 2018 07:44:41 +0000
(08:44 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 27 Mar 2018 15:45:47 +0000
(08:45 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
patch
|
blob
|
history
t/helper/test-example-decorate.c
patch
|
blob
|
history
t/helper/test-tool.c
patch
|
blob
|
history
t/helper/test-tool.h
patch
|
blob
|
history
t/t9004-example.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8133061
)
diff --git
a/Makefile
b/Makefile
index 8993cec27433a0ee2e681972ca7ad38dc7ed612a..895b170fe3247c78f58155ac94e0131d27693da5 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-660,12
+660,12
@@
TEST_BUILTINS_OBJS += test-delta.o
TEST_BUILTINS_OBJS += test-drop-caches.o
TEST_BUILTINS_OBJS += test-dump-cache-tree.o
TEST_BUILTINS_OBJS += test-dump-split-index.o
TEST_BUILTINS_OBJS += test-drop-caches.o
TEST_BUILTINS_OBJS += test-dump-cache-tree.o
TEST_BUILTINS_OBJS += test-dump-split-index.o
+TEST_BUILTINS_OBJS += test-example-decorate.o
TEST_BUILTINS_OBJS += test-lazy-init-name-hash.o
TEST_BUILTINS_OBJS += test-sha1.o
TEST_PROGRAMS_NEED_X += test-dump-fsmonitor
TEST_PROGRAMS_NEED_X += test-dump-untracked-cache
TEST_BUILTINS_OBJS += test-lazy-init-name-hash.o
TEST_BUILTINS_OBJS += test-sha1.o
TEST_PROGRAMS_NEED_X += test-dump-fsmonitor
TEST_PROGRAMS_NEED_X += test-dump-untracked-cache
-TEST_PROGRAMS_NEED_X += test-example-decorate
TEST_PROGRAMS_NEED_X += test-fake-ssh
TEST_PROGRAMS_NEED_X += test-genrandom
TEST_PROGRAMS_NEED_X += test-hashmap
TEST_PROGRAMS_NEED_X += test-fake-ssh
TEST_PROGRAMS_NEED_X += test-genrandom
TEST_PROGRAMS_NEED_X += test-hashmap
diff --git
a/t/helper/test-example-decorate.c
b/t/helper/test-example-decorate.c
index 90dc97a9d0444bc2dd8beaa1bfdd970f4280efb7..081115bf8eb7cb2e27c39f632af0e40001b5b6e9 100644
(file)
--- a/
t/helper/test-example-decorate.c
+++ b/
t/helper/test-example-decorate.c
@@
-1,8
+1,9
@@
+#include "test-tool.h"
#include "cache.h"
#include "object.h"
#include "decorate.h"
#include "cache.h"
#include "object.h"
#include "decorate.h"
-int cmd_
main
(int argc, const char **argv)
+int cmd_
_example_decorate
(int argc, const char **argv)
{
struct decoration n;
struct object_id one_oid = { {1} };
{
struct decoration n;
struct object_id one_oid = { {1} };
diff --git
a/t/helper/test-tool.c
b/t/helper/test-tool.c
index 872a948cc34bfd99bfe35ea363e02a8cb654ee65..55799069cc12d0a4ec8c69219a1279d23b52a4ef 100644
(file)
--- a/
t/helper/test-tool.c
+++ b/
t/helper/test-tool.c
@@
-15,6
+15,7
@@
static struct test_cmd cmds[] = {
{ "drop-caches", cmd__drop_caches },
{ "dump-cache-tree", cmd__dump_cache_tree },
{ "dump-split-index", cmd__dump_split_index },
{ "drop-caches", cmd__drop_caches },
{ "dump-cache-tree", cmd__dump_cache_tree },
{ "dump-split-index", cmd__dump_split_index },
+ { "example-decorate", cmd__example_decorate },
{ "lazy-init-name-hash", cmd__lazy_init_name_hash },
{ "sha1", cmd__sha1 },
};
{ "lazy-init-name-hash", cmd__lazy_init_name_hash },
{ "sha1", cmd__sha1 },
};
diff --git
a/t/helper/test-tool.h
b/t/helper/test-tool.h
index e8363e851f75b9ae911501d0c19009ad31226424..721a1e1b09e37cdd4b57823a924d812b91aff75d 100644
(file)
--- a/
t/helper/test-tool.h
+++ b/
t/helper/test-tool.h
@@
-9,6
+9,7
@@
int cmd__delta(int argc, const char **argv);
int cmd__drop_caches(int argc, const char **argv);
int cmd__dump_cache_tree(int argc, const char **argv);
int cmd__dump_split_index(int argc, const char **argv);
int cmd__drop_caches(int argc, const char **argv);
int cmd__dump_cache_tree(int argc, const char **argv);
int cmd__dump_split_index(int argc, const char **argv);
+int cmd__example_decorate(int argc, const char **argv);
int cmd__lazy_init_name_hash(int argc, const char **argv);
int cmd__sha1(int argc, const char **argv);
int cmd__lazy_init_name_hash(int argc, const char **argv);
int cmd__sha1(int argc, const char **argv);
diff --git
a/t/t9004-example.sh
b/t/t9004-example.sh
index b28a028f5503508a4a09c6a07950027d253a1846..7e8894a4a70648fd12d3ab4425f1beac2c3e4641 100755
(executable)
--- a/
t/t9004-example.sh
+++ b/
t/t9004-example.sh
@@
-4,7
+4,7
@@
test_description='check that example code compiles and runs'
. ./test-lib.sh
test_expect_success 'decorate' '
. ./test-lib.sh
test_expect_success 'decorate' '
- test-example-decorate
+ test-
tool
example-decorate
'
test_done
'
test_done