aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-tool.h
diff options
context:
space:
mode:
authorJosh Steadmon <steadmon@google.com>2024-05-06 12:57:31 -0700
committerJunio C Hamano <gitster@pobox.com>2024-05-06 14:06:34 -0700
commit80bb227e41f462bb04f07991cb2bb531453820a5 (patch)
tree3f66354a98b56095f744c34131ebbf8537656fdb /t/helper/test-tool.h
parentMerge branch 'jk/unit-tests-buildfix' into js/unit-test-suite-runner (diff)
downloadgit-80bb227e41f462bb04f07991cb2bb531453820a5.tar.gz
git-80bb227e41f462bb04f07991cb2bb531453820a5.zip
t0080: turn t-basic unit test into a helper
While t/unit-tests/t-basic.c uses the unit-test framework added in e137fe3b29 (unit tests: add TAP unit test framework, 2023-11-09), it is not a true unit test in that it intentionally fails in order to exercise various codepaths in the unit-test framework. Thus, we intentionally exclude it when running unit tests through the various t/Makefile targets. Instead, it is executed by t0080-unit-test-output.sh, which verifies its output follows the TAP format expected for the various pass, skip, or fail cases. As such, it makes more sense for t-basic to be a helper item for t0080-unit-test-output.sh, so let's move it to t/helper/test-example-tap.c and adjust Makefiles as necessary. Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-tool.h')
-rw-r--r--t/helper/test-tool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h
index b72f07ded9..38001bd1c6 100644
--- a/t/helper/test-tool.h
+++ b/t/helper/test-tool.h
@@ -23,6 +23,7 @@ int cmd__dump_untracked_cache(int argc, const char **argv);
int cmd__dump_reftable(int argc, const char **argv);
int cmd__env_helper(int argc, const char **argv);
int cmd__example_decorate(int argc, const char **argv);
+int cmd__example_tap(int argc, const char **argv);
int cmd__find_pack(int argc, const char **argv);
int cmd__fsmonitor_client(int argc, const char **argv);
int cmd__genrandom(int argc, const char **argv);