Global state of the interpreter, used by a command to access information about other commands. More...
Data Fields | |
const struct GNUNET_HELPER_Handle ** | helper |
Array with handles of helper processes for communication with netjails. More... | |
struct GNUNET_HELPER_SendHandle * | send_handle |
Handle to a send op. More... | |
GNUNET_TESTING_ResultCallback | rc |
Function to call with the test result. More... | |
void * | rc_cls |
Closure for rc. More... | |
struct GNUNET_TESTING_Command * | commands |
Commands the interpreter will run. More... | |
struct GNUNET_CONTAINER_MultiShortmap * | barriers |
Map with barriers for this loop. More... | |
struct GNUNET_SCHEDULER_Task * | task |
Interpreter task (if one is scheduled). More... | |
struct GNUNET_SCHEDULER_Task * | final_task |
Final task that returns the result. More... | |
struct GNUNET_SCHEDULER_Task * | timeout_task |
Task run on timeout. More... | |
unsigned int | cmds_n |
Number of GNUNET_TESTING_Command in commands. More... | |
unsigned int | n_helper |
Size of the array helper. More... | |
int | ip |
Instruction pointer. More... | |
enum GNUNET_GenericReturnValue | result |
Result of the testcases, GNUNET_OK on success. More... | |
bool | finishing |
Is the interpreter finishing? More... | |
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.
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_barrier_crossable().
struct GNUNET_HELPER_SendHandle* GNUNET_TESTING_Interpreter::send_handle |
Handle to a send op.
Definition at line 50 of file testing_api_loop.c.
Referenced by finish_test(), and send_barrier_crossable().
GNUNET_TESTING_ResultCallback GNUNET_TESTING_Interpreter::rc |
Function to call with the test result.
Definition at line 55 of file testing_api_loop.c.
Referenced by finish_test(), and GNUNET_TESTING_run().
void* GNUNET_TESTING_Interpreter::rc_cls |
Closure for rc.
Definition at line 60 of file testing_api_loop.c.
Referenced by finish_test(), and GNUNET_TESTING_run().
struct GNUNET_TESTING_Command* GNUNET_TESTING_Interpreter::commands |
Commands the interpreter will run.
Definition at line 65 of file testing_api_loop.c.
Referenced by finish_test(), get_command(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_get_current_command(), GNUNET_TESTING_run(), interpreter_next(), and interpreter_run().
struct GNUNET_CONTAINER_MultiShortmap* GNUNET_TESTING_Interpreter::barriers |
Map with barriers for this loop.
Definition at line 70 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_add_barrier_(), GNUNET_TESTING_get_barrier_(), and GNUNET_TESTING_run().
struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::task |
Interpreter task (if one is scheduled).
Definition at line 75 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_run(), interpreter_next(), and interpreter_run().
struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::final_task |
Final task that returns the result.
Definition at line 80 of file testing_api_loop.c.
Referenced by finish_test(), and GNUNET_TESTING_interpreter_fail().
struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::timeout_task |
Task run on timeout.
Definition at line 85 of file testing_api_loop.c.
Referenced by do_timeout(), finish_test(), and GNUNET_TESTING_run().
unsigned int GNUNET_TESTING_Interpreter::cmds_n |
Number of GNUNET_TESTING_Command in commands.
Definition at line 90 of file testing_api_loop.c.
Referenced by get_command(), and GNUNET_TESTING_run().
unsigned int GNUNET_TESTING_Interpreter::n_helper |
Size of the array helper.
Definition at line 95 of file testing_api_loop.c.
Referenced by GNUNET_TESTING_add_netjail_helper_().
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 102 of file testing_api_loop.c.
Referenced by finish_test(), get_command(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_get_current_command(), interpreter_next(), and interpreter_run().
enum GNUNET_GenericReturnValue GNUNET_TESTING_Interpreter::result |
Result of the testcases, GNUNET_OK on success.
Definition at line 107 of file testing_api_loop.c.
Referenced by do_timeout(), finish_test(), GNUNET_TESTING_interpreter_fail(), interpreter_next(), and interpreter_run().
bool GNUNET_TESTING_Interpreter::finishing |
Is the interpreter finishing?
Definition at line 112 of file testing_api_loop.c.
Referenced by finish_test(), and free_barrier_node_cb().