Classes | Macros | Typedefs | Functions | Variables
runner.h File Reference
#include <limits.h>
#include <stdio.h>
#include "runner-unix.h"
Include dependency graph for runner.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  task_entry_t
 

Macros

#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
 

Typedefs

typedef struct task_entry_t bench_entry_t
 

Functions

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)
 

Variables

char executable_path [4096]
 
task_entry_t TASKS []
 

Macro Definition Documentation

◆ BENCHMARK_DECLARE

#define BENCHMARK_DECLARE (   name)    int run_benchmark_##name(void);

Definition at line 72 of file runner.h.

◆ BENCHMARK_ENTRY

#define BENCHMARK_ENTRY (   name)    { #name, #name, &run_benchmark_##name, 0, 0, 60000 },

Definition at line 75 of file runner.h.

◆ BENCHMARK_HELPER

#define BENCHMARK_HELPER   HELPER_ENTRY

Definition at line 85 of file runner.h.

◆ HELPER_DECLARE

#define HELPER_DECLARE (   name)    int run_helper_##name(void);

Definition at line 78 of file runner.h.

◆ HELPER_ENTRY

#define HELPER_ENTRY (   task_name,
  name 
)    { #task_name, #name, &run_helper_##name, 1, 0, 0 },

Definition at line 81 of file runner.h.

◆ MAX_PROCESSES

#define MAX_PROCESSES   8

Definition at line 33 of file runner.h.

◆ TASK_LIST_END

#define TASK_LIST_END
Value:
{ 0, 0, 0, 0, 0, 0 } \
};

Definition at line 59 of file runner.h.

◆ TASK_LIST_START

#define TASK_LIST_START   task_entry_t TASKS[] = {

Definition at line 56 of file runner.h.

◆ TEST_DECLARE

#define TEST_DECLARE (   name)    int run_test_##name(void);

Definition at line 63 of file runner.h.

◆ TEST_ENTRY

#define TEST_ENTRY (   name)    { #name, #name, &run_test_##name, 0, 0, 5000 },

Definition at line 66 of file runner.h.

◆ TEST_ENTRY_CUSTOM

#define TEST_ENTRY_CUSTOM (   name,
  is_helper,
  show_output,
  timeout 
)    { #name, #name, &run_test_##name, is_helper, show_output, timeout },

Definition at line 69 of file runner.h.

◆ TEST_HELPER

#define TEST_HELPER   HELPER_ENTRY

Definition at line 84 of file runner.h.

Typedef Documentation

◆ bench_entry_t

typedef struct task_entry_t bench_entry_t

Function Documentation

◆ platform_init()

void platform_init ( int  argc,
char **  argv 
)

Definition at line 70 of file runner-unix.c.

◆ print_lines()

void print_lines ( const char *  buffer,
size_t  size,
FILE *  stream 
)

Definition at line 433 of file runner.c.

◆ print_tests()

void print_tests ( FILE *  stream)

Definition at line 404 of file runner.c.

◆ process_cleanup()

void process_cleanup ( process_info_t p)

Definition at line 432 of file runner-unix.c.

◆ process_copy_output()

int process_copy_output ( process_info_t p,
FILE *  stream 
)

Definition at line 357 of file runner-unix.c.

◆ process_get_name()

char* process_get_name ( process_info_t p)

Definition at line 410 of file runner-unix.c.

◆ process_output_size()

long int process_output_size ( process_info_t p)

Definition at line 343 of file runner-unix.c.

◆ process_read_last_line()

int process_read_last_line ( process_info_t p,
char *  buffer,
size_t  buffer_len 
)

Definition at line 381 of file runner-unix.c.

◆ process_reap()

int process_reap ( process_info_t p)

Definition at line 422 of file runner-unix.c.

◆ process_start()

int process_start ( char *  name,
char *  part,
process_info_t p,
int  is_helper 
)

Definition at line 81 of file runner-unix.c.

◆ process_terminate()

int process_terminate ( process_info_t p)

Definition at line 416 of file runner-unix.c.

◆ process_wait()

int process_wait ( process_info_t vec,
int  n,
int  timeout 
)

Definition at line 226 of file runner-unix.c.

◆ rewind_cursor()

void rewind_cursor ( void  )

Definition at line 439 of file runner-unix.c.

◆ run_test()

int run_test ( const char *  test,
int  benchmark_output,
int  test_count 
)

Definition at line 164 of file runner.c.

◆ run_test_part()

int run_test_part ( const char *  test,
const char *  part 
)

Definition at line 369 of file runner.c.

◆ run_tests()

int run_tests ( int  benchmark_output)

Definition at line 77 of file runner.c.

Variable Documentation

◆ executable_path

char executable_path[4096]

Definition at line 30 of file runner.c.

◆ TASKS

task_entry_t TASKS[]


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:30