2018-10-18 06:13:26 +08:00
|
|
|
#ifndef TEST_TOOL_H
|
|
|
|
#define TEST_TOOL_H
|
2018-03-24 15:44:30 +08:00
|
|
|
|
2019-01-24 16:29:12 +08:00
|
|
|
#define USE_THE_INDEX_COMPATIBILITY_MACROS
|
2018-08-22 02:41:40 +08:00
|
|
|
#include "git-compat-util.h"
|
|
|
|
|
2018-03-24 15:44:31 +08:00
|
|
|
int cmd__chmtime(int argc, const char **argv);
|
2018-03-24 15:44:34 +08:00
|
|
|
int cmd__config(int argc, const char **argv);
|
2018-03-24 15:44:35 +08:00
|
|
|
int cmd__ctype(int argc, const char **argv);
|
2018-03-24 15:44:36 +08:00
|
|
|
int cmd__date(int argc, const char **argv);
|
2018-03-24 15:44:37 +08:00
|
|
|
int cmd__delta(int argc, const char **argv);
|
2018-03-24 15:44:38 +08:00
|
|
|
int cmd__drop_caches(int argc, const char **argv);
|
2018-03-24 15:44:39 +08:00
|
|
|
int cmd__dump_cache_tree(int argc, const char **argv);
|
2018-09-10 01:36:30 +08:00
|
|
|
int cmd__dump_fsmonitor(int argc, const char **argv);
|
2018-03-24 15:44:40 +08:00
|
|
|
int cmd__dump_split_index(int argc, const char **argv);
|
2018-09-10 01:36:27 +08:00
|
|
|
int cmd__dump_untracked_cache(int argc, const char **argv);
|
2018-03-24 15:44:41 +08:00
|
|
|
int cmd__example_decorate(int argc, const char **argv);
|
2018-03-24 15:44:42 +08:00
|
|
|
int cmd__genrandom(int argc, const char **argv);
|
tests: teach the test-tool to generate NUL bytes and use it
In cc95bc2025 (t5562: replace /dev/zero with a pipe from
generate_zero_bytes, 2019-02-09), we replaced usage of /dev/zero (which
is not available on NonStop, apparently) by a Perl script snippet to
generate NUL bytes.
Sadly, it does not seem to work on NonStop, as t5562 reportedly hangs.
Worse, this also hangs in the Ubuntu 16.04 agents of the CI builds on
Azure Pipelines: for some reason, the Perl script snippet that is run
via `generate_zero_bytes` in t5562's 'CONTENT_LENGTH overflow ssite_t'
test case tries to write out an infinite amount of NUL bytes unless a
broken pipe is encountered, that snippet never encounters the broken
pipe, and keeps going until the build times out.
Oddly enough, this does not reproduce on the Windows and macOS agents,
nor in a local Ubuntu 18.04.
This developer tried for a day to figure out the exact circumstances
under which this hang happens, to no avail, the details remain a
mystery.
In the end, though, what counts is that this here change incidentally
fixes that hang (maybe also on NonStop?). Even more positively, it gets
rid of yet another unnecessary Perl invocation.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-02-15 05:33:12 +08:00
|
|
|
int cmd__genzeros(int argc, const char **argv);
|
2018-03-24 15:44:43 +08:00
|
|
|
int cmd__hashmap(int argc, const char **argv);
|
2018-11-14 12:09:34 +08:00
|
|
|
int cmd__hash_speed(int argc, const char **argv);
|
2018-03-24 15:44:44 +08:00
|
|
|
int cmd__index_version(int argc, const char **argv);
|
2018-07-14 00:54:08 +08:00
|
|
|
int cmd__json_writer(int argc, const char **argv);
|
2018-03-24 15:44:33 +08:00
|
|
|
int cmd__lazy_init_name_hash(int argc, const char **argv);
|
2018-03-24 15:44:45 +08:00
|
|
|
int cmd__match_trees(int argc, const char **argv);
|
2018-03-24 15:44:46 +08:00
|
|
|
int cmd__mergesort(int argc, const char **argv);
|
2018-03-24 15:44:47 +08:00
|
|
|
int cmd__mktemp(int argc, const char **argv);
|
2018-03-24 15:44:48 +08:00
|
|
|
int cmd__online_cpus(int argc, const char **argv);
|
2018-09-10 01:36:29 +08:00
|
|
|
int cmd__parse_options(int argc, const char **argv);
|
2018-03-24 15:44:49 +08:00
|
|
|
int cmd__path_utils(int argc, const char **argv);
|
2018-09-10 01:36:28 +08:00
|
|
|
int cmd__pkt_line(int argc, const char **argv);
|
2018-03-24 15:44:50 +08:00
|
|
|
int cmd__prio_queue(int argc, const char **argv);
|
2018-07-21 00:33:15 +08:00
|
|
|
int cmd__reach(int argc, const char **argv);
|
2018-03-24 15:44:51 +08:00
|
|
|
int cmd__read_cache(int argc, const char **argv);
|
2018-07-13 03:39:23 +08:00
|
|
|
int cmd__read_midx(int argc, const char **argv);
|
2018-03-24 15:44:52 +08:00
|
|
|
int cmd__ref_store(int argc, const char **argv);
|
2018-03-24 15:44:53 +08:00
|
|
|
int cmd__regex(int argc, const char **argv);
|
2018-07-12 06:42:42 +08:00
|
|
|
int cmd__repository(int argc, const char **argv);
|
2018-03-24 15:44:54 +08:00
|
|
|
int cmd__revision_walking(int argc, const char **argv);
|
2018-03-24 15:44:55 +08:00
|
|
|
int cmd__run_command(int argc, const char **argv);
|
2018-03-24 15:44:56 +08:00
|
|
|
int cmd__scrap_cache_tree(int argc, const char **argv);
|
2019-04-18 21:16:51 +08:00
|
|
|
int cmd__serve_v2(int argc, const char **argv);
|
2018-03-24 15:44:32 +08:00
|
|
|
int cmd__sha1(int argc, const char **argv);
|
2018-09-10 01:36:26 +08:00
|
|
|
int cmd__sha1_array(int argc, const char **argv);
|
2018-11-14 12:09:36 +08:00
|
|
|
int cmd__sha256(int argc, const char **argv);
|
2018-03-24 15:44:58 +08:00
|
|
|
int cmd__sigchain(int argc, const char **argv);
|
2018-03-24 15:44:59 +08:00
|
|
|
int cmd__strcmp_offset(int argc, const char **argv);
|
2018-03-24 15:45:00 +08:00
|
|
|
int cmd__string_list(int argc, const char **argv);
|
2018-03-24 15:45:01 +08:00
|
|
|
int cmd__submodule_config(int argc, const char **argv);
|
2018-10-26 00:18:13 +08:00
|
|
|
int cmd__submodule_nested_repo_config(int argc, const char **argv);
|
2018-03-24 15:45:02 +08:00
|
|
|
int cmd__subprocess(int argc, const char **argv);
|
2019-02-23 06:25:10 +08:00
|
|
|
int cmd__trace2(int argc, const char **argv);
|
2018-03-24 15:45:03 +08:00
|
|
|
int cmd__urlmatch_normalization(int argc, const char **argv);
|
2019-01-29 22:19:27 +08:00
|
|
|
int cmd__xml_encode(int argc, const char **argv);
|
2018-03-24 15:45:04 +08:00
|
|
|
int cmd__wildmatch(int argc, const char **argv);
|
2018-09-12 04:06:01 +08:00
|
|
|
#ifdef GIT_WINDOWS_NATIVE
|
|
|
|
int cmd__windows_named_pipe(int argc, const char **argv);
|
|
|
|
#endif
|
2018-03-24 15:45:05 +08:00
|
|
|
int cmd__write_cache(int argc, const char **argv);
|
2018-03-24 15:44:31 +08:00
|
|
|
|
2018-11-14 12:09:32 +08:00
|
|
|
int cmd_hash_impl(int ac, const char **av, int algo);
|
|
|
|
|
2018-03-24 15:44:30 +08:00
|
|
|
#endif
|