Go to the documentation of this file.
33 #define MAX_PROCESSES 8
56 #define TASK_LIST_START \
57 task_entry_t TASKS[] = {
59 #define TASK_LIST_END \
60 { 0, 0, 0, 0, 0, 0 } \
63 #define TEST_DECLARE(name) \
64 int run_test_##name(void);
66 #define TEST_ENTRY(name) \
67 { #name, #name, &run_test_##name, 0, 0, 5000 },
69 #define TEST_ENTRY_CUSTOM(name, is_helper, show_output, timeout) \
70 { #name, #name, &run_test_##name, is_helper, show_output, timeout },
72 #define BENCHMARK_DECLARE(name) \
73 int run_benchmark_##name(void);
75 #define BENCHMARK_ENTRY(name) \
76 { #name, #name, &run_benchmark_##name, 0, 0, 60000 },
78 #define HELPER_DECLARE(name) \
79 int run_helper_##name(void);
81 #define HELPER_ENTRY(task_name, name) \
82 { #task_name, #name, &run_helper_##name, 1, 0, 0 },
84 #define TEST_HELPER HELPER_ENTRY
85 #define BENCHMARK_HELPER HELPER_ENTRY
111 int benchmark_output,
void print_lines(const char *buffer, size_t size, FILE *stream)
void print_tests(FILE *stream)
int process_wait(process_info_t *vec, int n, int timeout)
void process_cleanup(process_info_t *p)
int process_start(char *name, char *part, process_info_t *p, int is_helper)
char executable_path[4096]
int run_test(const char *test, int benchmark_output, int test_count)
int run_tests(int benchmark_output)
int process_terminate(process_info_t *p)
int process_reap(process_info_t *p)
int process_read_last_line(process_info_t *p, char *buffer, size_t buffer_len)
char * process_get_name(process_info_t *p)
struct task_entry_t bench_entry_t
int process_copy_output(process_info_t *p, FILE *stream)
long int process_output_size(process_info_t *p)
void platform_init(int argc, char **argv)
int run_test_part(const char *test, const char *part)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:14