#include <limits.h>
#include <stdio.h>
#include "runner-unix.h"
Go to the source code of this file.
|
| #define | BENCHMARK_DECLARE(name) int run_benchmark_##name(void); |
| |
| #define | BENCHMARK_ENTRY(name) { #name, #name, &run_benchmark_##name, 0, 0, 60000 }, |
| |
| #define | BENCHMARK_HELPER HELPER_ENTRY |
| |
| #define | HELPER_DECLARE(name) int run_helper_##name(void); |
| |
| #define | HELPER_ENTRY(task_name, name) { #task_name, #name, &run_helper_##name, 1, 0, 0 }, |
| |
| #define | MAX_PROCESSES 8 |
| |
| #define | TASK_LIST_END |
| |
| #define | TASK_LIST_START task_entry_t TASKS[] = { |
| |
| #define | TEST_DECLARE(name) int run_test_##name(void); |
| |
| #define | TEST_ENTRY(name) { #name, #name, &run_test_##name, 0, 0, 5000 }, |
| |
| #define | TEST_ENTRY_CUSTOM(name, is_helper, show_output, timeout) { #name, #name, &run_test_##name, is_helper, show_output, timeout }, |
| |
| #define | TEST_HELPER HELPER_ENTRY |
| |
|
| void | platform_init (int argc, char **argv) |
| |
| void | print_lines (const char *buffer, size_t size, FILE *stream) |
| |
| void | print_tests (FILE *stream) |
| |
| void | process_cleanup (process_info_t *p) |
| |
| int | process_copy_output (process_info_t *p, FILE *stream) |
| |
| char * | process_get_name (process_info_t *p) |
| |
| long int | process_output_size (process_info_t *p) |
| |
| int | process_read_last_line (process_info_t *p, char *buffer, size_t buffer_len) |
| |
| int | process_reap (process_info_t *p) |
| |
| int | process_start (char *name, char *part, process_info_t *p, int is_helper) |
| |
| int | process_terminate (process_info_t *p) |
| |
| int | process_wait (process_info_t *vec, int n, int timeout) |
| |
| void | rewind_cursor (void) |
| |
| int | run_test (const char *test, int benchmark_output, int test_count) |
| |
| int | run_test_part (const char *test, const char *part) |
| |
| int | run_tests (int benchmark_output) |
| |
◆ BENCHMARK_DECLARE
| #define BENCHMARK_DECLARE |
( |
|
name | ) |
int run_benchmark_##name(void); |
◆ BENCHMARK_ENTRY
| #define BENCHMARK_ENTRY |
( |
|
name | ) |
{ #name, #name, &run_benchmark_##name, 0, 0, 60000 }, |
◆ BENCHMARK_HELPER
◆ HELPER_DECLARE
| #define HELPER_DECLARE |
( |
|
name | ) |
int run_helper_##name(void); |
◆ HELPER_ENTRY
| #define HELPER_ENTRY |
( |
|
task_name, |
|
|
|
name |
|
) |
| { #task_name, #name, &run_helper_##name, 1, 0, 0 }, |
◆ MAX_PROCESSES
◆ TASK_LIST_END
Value: { 0, 0, 0, 0, 0, 0 } \
};
Definition at line 59 of file runner.h.
◆ TASK_LIST_START
◆ TEST_DECLARE
| #define TEST_DECLARE |
( |
|
name | ) |
int run_test_##name(void); |
◆ TEST_ENTRY
◆ TEST_ENTRY_CUSTOM
◆ TEST_HELPER
◆ bench_entry_t
◆ platform_init()
| void platform_init |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ print_lines()
| void print_lines |
( |
const char * |
buffer, |
|
|
size_t |
size, |
|
|
FILE * |
stream |
|
) |
| |
◆ print_tests()
| void print_tests |
( |
FILE * |
stream | ) |
|
◆ process_cleanup()
◆ process_copy_output()
◆ process_get_name()
◆ process_output_size()
◆ process_read_last_line()
◆ process_reap()
◆ process_start()
◆ process_terminate()
◆ process_wait()
◆ rewind_cursor()
| void rewind_cursor |
( |
void |
| ) |
|
◆ run_test()
| int run_test |
( |
const char * |
test, |
|
|
int |
benchmark_output, |
|
|
int |
test_count |
|
) |
| |
◆ run_test_part()
◆ run_tests()
| int run_tests |
( |
int |
benchmark_output | ) |
|
◆ executable_path
| char executable_path[4096] |
◆ TASKS