GNUnet  0.19.5
GNUNET_TESTING_Interpreter Struct Reference

Global state of the interpreter, used by a command to access information about other commands. More...

Collaboration diagram for GNUNET_TESTING_Interpreter:
[legend]

Data Fields

const struct GNUNET_HELPER_Handle ** helper
 Array with handles of helper processes for communication with netjails. More...
 
unsigned int n_helper
 Size of the array helper. More...
 
GNUNET_TESTING_ResultCallback rc
 Function to call with the test result. More...
 
void * rc_cls
 Closure for rc. More...
 
struct GNUNET_TESTING_Commandcommands
 Commands the interpreter will run. More...
 
struct GNUNET_CONTAINER_MultiShortmapbarriers
 Map with barriers for this loop. More...
 
unsigned int cmds_n
 Number of GNUNET_TESTING_Command in commands. More...
 
struct GNUNET_SCHEDULER_Tasktask
 Interpreter task (if one is scheduled). More...
 
struct GNUNET_SCHEDULER_Taskfinal_task
 Final task that returns the result. More...
 
struct GNUNET_SCHEDULER_Tasktimeout_task
 Task run on timeout. More...
 
int ip
 Instruction pointer. More...
 
enum GNUNET_GenericReturnValue result
 Result of the testcases, GNUNET_OK on success. More...
 
unsigned int finishing
 Is the interpreter finishing? More...
 

Detailed Description

Global state of the interpreter, used by a command to access information about other commands.

Definition at line 40 of file testing_api_loop.c.

Field Documentation

◆ helper

const struct GNUNET_HELPER_Handle** GNUNET_TESTING_Interpreter::helper

Array with handles of helper processes for communication with netjails.

Definition at line 45 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_add_netjail_helper(), and send_message_to_netjail().

◆ n_helper

unsigned int GNUNET_TESTING_Interpreter::n_helper

Size of the array helper.

Definition at line 51 of file testing_api_loop.c.

Referenced by GNUNET_TESTING_add_netjail_helper().

◆ rc

GNUNET_TESTING_ResultCallback GNUNET_TESTING_Interpreter::rc

Function to call with the test result.

Definition at line 56 of file testing_api_loop.c.

Referenced by finish_test(), and GNUNET_TESTING_cmd_end().

◆ rc_cls

void* GNUNET_TESTING_Interpreter::rc_cls

Closure for rc.

Definition at line 61 of file testing_api_loop.c.

Referenced by finish_test(), and GNUNET_TESTING_cmd_end().

◆ commands

◆ barriers

struct GNUNET_CONTAINER_MultiShortmap* GNUNET_TESTING_Interpreter::barriers

Map with barriers for this loop.

Definition at line 71 of file testing_api_loop.c.

Referenced by GNUNET_TESTING_cmd_end(), interpreter_delete_barriers(), TST_interpreter_add_barrier(), and TST_interpreter_get_barrier().

◆ cmds_n

unsigned int GNUNET_TESTING_Interpreter::cmds_n

Number of GNUNET_TESTING_Command in commands.

Definition at line 76 of file testing_api_loop.c.

Referenced by get_command(), and GNUNET_TESTING_cmd_end().

◆ task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::task

Interpreter task (if one is scheduled).

Definition at line 81 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_cmd_end(), interpreter_next(), and interpreter_run().

◆ final_task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::final_task

Final task that returns the result.

Definition at line 86 of file testing_api_loop.c.

Referenced by finish_test(), and GNUNET_TESTING_interpreter_fail().

◆ timeout_task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::timeout_task

Task run on timeout.

Definition at line 91 of file testing_api_loop.c.

Referenced by do_timeout(), finish_test(), and GNUNET_TESTING_cmd_end().

◆ ip

int GNUNET_TESTING_Interpreter::ip

Instruction pointer.

Tells interpreter_run() which instruction to run next. Need (signed) int because it gets -1 when rewinding the interpreter to the first CMD.

Definition at line 98 of file testing_api_loop.c.

Referenced by finish_test(), get_command(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_get_current_command(), GNUNET_TESTING_interpreter_get_current_label(), interpreter_next(), and interpreter_run().

◆ result

◆ finishing

unsigned int GNUNET_TESTING_Interpreter::finishing

Is the interpreter finishing?

Definition at line 108 of file testing_api_loop.c.

Referenced by finish_test(), and free_barrier_node_cb().


The documentation for this struct was generated from the following file: