GNUnet 0.21.2
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

struct GNUNET_HELPER_Handle ** helpers
 Array with handles of helper processes for communication with netjails. 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...
 
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...
 
struct GNUNET_CONTAINER_MultiHashMapvars
 Hash map mapping variable names to commands. More...
 
struct SendContextsender_head
 
struct SendContextsender_tail
 
GNUNET_TESTING_cmd_helper_write_cb parent_writer
 Function to call to send messages to our parent. More...
 
unsigned int cmds_n
 Number of GNUNET_TESTING_Command in commands. More...
 
unsigned int n_helpers
 Size of the array helpers. More...
 
int ip
 Instruction pointer. More...
 
enum GNUNET_GenericReturnValue result
 Result of the testcases, GNUNET_OK on success, GNUNET_SYSERR on failure, GNUNET_NO if undecided. More...
 
bool finishing
 Is the interpreter finishing? More...
 
bool skip
 Is the real result to "skip" because we could not get the environment working? More...
 

Detailed Description

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

Definition at line 54 of file testing_api_loop.c.

Field Documentation

◆ helpers

struct GNUNET_HELPER_Handle** GNUNET_TESTING_Interpreter::helpers

Array with handles of helper processes for communication with netjails.

Definition at line 59 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_add_netjail_helper_(), and GNUNET_TESTING_loop_notify_children_().

◆ rc

GNUNET_TESTING_ResultCallback GNUNET_TESTING_Interpreter::rc

Function to call with the test result.

Definition at line 64 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_run(), and start_testcase().

◆ rc_cls

void* GNUNET_TESTING_Interpreter::rc_cls

Closure for rc.

Definition at line 69 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_run(), and start_testcase().

◆ commands

◆ barriers

◆ task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::task

Interpreter task (if one is scheduled).

Definition at line 84 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_interpreter_next_(), interpreter_run(), and setup_is().

◆ final_task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::final_task

Final task that returns the result.

Definition at line 89 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 94 of file testing_api_loop.c.

Referenced by do_timeout(), finish_test(), GNUNET_TESTING_interpreter_fail(), and GNUNET_TESTING_run().

◆ vars

struct GNUNET_CONTAINER_MultiHashMap* GNUNET_TESTING_Interpreter::vars

Hash map mapping variable names to commands.

Definition at line 99 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_interpreter_get_command(), GNUNET_TESTING_interpreter_run_cmd_(), and setup_is().

◆ sender_head

struct SendContext* GNUNET_TESTING_Interpreter::sender_head

◆ sender_tail

struct SendContext* GNUNET_TESTING_Interpreter::sender_tail

◆ parent_writer

GNUNET_TESTING_cmd_helper_write_cb GNUNET_TESTING_Interpreter::parent_writer

Function to call to send messages to our parent.

Definition at line 107 of file testing_api_loop.c.

Referenced by GNUNET_TESTING_loop_notify_parent_(), and start_testcase().

◆ cmds_n

unsigned int GNUNET_TESTING_Interpreter::cmds_n

Number of GNUNET_TESTING_Command in commands.

Definition at line 112 of file testing_api_loop.c.

Referenced by setup_is().

◆ n_helpers

unsigned int GNUNET_TESTING_Interpreter::n_helpers

Size of the array helpers.

Definition at line 117 of file testing_api_loop.c.

Referenced by GNUNET_TESTING_add_netjail_helper_(), and GNUNET_TESTING_loop_notify_children_().

◆ ip

◆ result

enum GNUNET_GenericReturnValue GNUNET_TESTING_Interpreter::result

Result of the testcases, GNUNET_OK on success, GNUNET_SYSERR on failure, GNUNET_NO if undecided.

Definition at line 130 of file testing_api_loop.c.

Referenced by do_timeout(), finish_test(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_next_(), and interpreter_run().

◆ finishing

bool GNUNET_TESTING_Interpreter::finishing

Is the interpreter finishing?

Definition at line 135 of file testing_api_loop.c.

Referenced by finish_test().

◆ skip

bool GNUNET_TESTING_Interpreter::skip

Is the real result to "skip" because we could not get the environment working?

Definition at line 141 of file testing_api_loop.c.

Referenced by finish_test(), and GNUNET_TESTING_interpreter_skip().


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