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... | |
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_Command * | commands |
Commands the interpreter will run. More... | |
struct GNUNET_CONTAINER_MultiShortmap * | barriers |
Map with barriers for this loop. More... | |
unsigned int | cmds_n |
Number of GNUNET_TESTING_Command in commands. 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... | |
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... | |
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_message_to_netjail().
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().
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().
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().
struct GNUNET_TESTING_Command* GNUNET_TESTING_Interpreter::commands |
Commands the interpreter will run.
Definition at line 66 of file testing_api_loop.c.
Referenced by finish_test(), get_command(), GNUNET_TESTING_cmd_end(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_get_current_command(), GNUNET_TESTING_interpreter_get_current_label(), interpreter_next(), and interpreter_run().
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().
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().
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().
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().
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().
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().
enum GNUNET_GenericReturnValue GNUNET_TESTING_Interpreter::result |
Result of the testcases, GNUNET_OK on success.
Definition at line 98 of file testing_api_loop.c.
Referenced by gnunet_testing.StatisticsCondition::check(), gnunet_testing.EqualStatisticsCondition::check(), do_timeout(), gnunet_testing.StatisticsCondition::evaluate(), gnunet_testing.EqualStatisticsCondition::evaluate(), finish_test(), GNUNET_TESTING_interpreter_fail(), interpreter_next(), and interpreter_run().
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().