#include "test-tool.h"
#include "run-command.h"
#include "strvec.h"
#include "strbuf.h"
#include "parse-options.h"
#include "string-list.h"
#include "thread-utils.h"
#include "wildmatch.h"
static int number_callbacks;
static int parallel_next(struct child_process *cp,
struct strbuf *err,
void *cb,
void **task_cb UNUSED)
{ … }
static int no_job(struct child_process *cp UNUSED,
struct strbuf *err,
void *cb UNUSED,
void **task_cb UNUSED)
{ … }
static int task_finished(int result UNUSED,
struct strbuf *err,
void *pp_cb UNUSED,
void *pp_task_cb UNUSED)
{ … }
struct testsuite { … };
#define TESTSUITE_INIT …
static int next_test(struct child_process *cp, struct strbuf *err, void *cb,
void **task_cb)
{ … }
static int test_finished(int result, struct strbuf *err, void *cb,
void *task_cb)
{ … }
static int test_failed(struct strbuf *out, void *cb, void *task_cb)
{ … }
static const char * const testsuite_usage[] = …;
static int testsuite(int argc, const char **argv)
{ … }
static uint64_t my_random_next = …;
static uint64_t my_random(void)
{ … }
static int quote_stress_test(int argc, const char **argv)
{ … }
static int quote_echo(int argc, const char **argv)
{ … }
static int inherit_handle(const char *argv0)
{ … }
static int inherit_handle_child(void)
{ … }
int cmd__run_command(int argc, const char **argv)
{ … }