Global state of the interpreter, used by a command to access information about other commands. More...
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_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... | |
struct GNUNET_CONTAINER_MultiHashMap * | vars |
Hash map mapping variable names to commands. More... | |
struct SendContext * | sender_head |
struct SendContext * | sender_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... | |
Global state of the interpreter, used by a command to access information about other commands.
Definition at line 52 of file testing_api_loop.c.
struct GNUNET_HELPER_Handle** GNUNET_TESTING_Interpreter::helpers |
Array with handles of helper processes for communication with netjails.
Definition at line 57 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_add_netjail_helper_(), and GNUNET_TESTING_loop_notify_children_().
GNUNET_TESTING_ResultCallback GNUNET_TESTING_Interpreter::rc |
Function to call with the test result.
Definition at line 62 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_run(), and start_testcase().
void* GNUNET_TESTING_Interpreter::rc_cls |
Closure for rc.
Definition at line 67 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_run(), and start_testcase().
struct GNUNET_TESTING_Command* GNUNET_TESTING_Interpreter::commands |
Commands the interpreter will run.
Definition at line 72 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_interpreter_commands_iterate(), GNUNET_TESTING_interpreter_current_cmd_get_label(), GNUNET_TESTING_interpreter_current_cmd_inc_tries(), GNUNET_TESTING_interpreter_current_cmd_touch(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_lookup_command(), GNUNET_TESTING_interpreter_next_(), interpreter_run(), rewind_ip_run(), and setup_is().
struct GNUNET_CONTAINER_MultiShortmap* GNUNET_TESTING_Interpreter::barriers |
Map with barriers for this loop.
Definition at line 77 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_add_barrier_(), GNUNET_TESTING_barrier_count_(), GNUNET_TESTING_barrier_iterate_(), GNUNET_TESTING_get_barrier2_(), GNUNET_TESTING_get_barrier_(), and start_testcase().
struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::task |
Interpreter task (if one is scheduled).
Definition at line 82 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_interpreter_next_(), interpreter_run(), and setup_is().
struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::final_task |
Final task that returns the result.
Definition at line 87 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 92 of file testing_api_loop.c.
Referenced by do_timeout(), finish_test(), GNUNET_TESTING_interpreter_fail(), and GNUNET_TESTING_run().
struct GNUNET_CONTAINER_MultiHashMap* GNUNET_TESTING_Interpreter::vars |
Hash map mapping variable names to commands.
Definition at line 97 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_interpreter_get_command(), GNUNET_TESTING_interpreter_run_cmd_(), and setup_is().
struct SendContext* GNUNET_TESTING_Interpreter::sender_head |
Definition at line 99 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_loop_notify_children_(), and send_finished().
struct SendContext* GNUNET_TESTING_Interpreter::sender_tail |
Definition at line 100 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_loop_notify_children_(), and send_finished().
GNUNET_TESTING_cmd_helper_write_cb GNUNET_TESTING_Interpreter::parent_writer |
Function to call to send messages to our parent.
Definition at line 105 of file testing_api_loop.c.
Referenced by GNUNET_TESTING_loop_notify_parent_(), and start_testcase().
unsigned int GNUNET_TESTING_Interpreter::cmds_n |
Number of GNUNET_TESTING_Command in commands.
Definition at line 110 of file testing_api_loop.c.
Referenced by setup_is().
unsigned int GNUNET_TESTING_Interpreter::n_helpers |
Size of the array helpers.
Definition at line 115 of file testing_api_loop.c.
Referenced by GNUNET_TESTING_add_netjail_helper_(), and GNUNET_TESTING_loop_notify_children_().
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 122 of file testing_api_loop.c.
Referenced by finish_test(), GNUNET_TESTING_interpreter_commands_iterate(), GNUNET_TESTING_interpreter_current_cmd_get_label(), GNUNET_TESTING_interpreter_current_cmd_inc_tries(), GNUNET_TESTING_interpreter_current_cmd_touch(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_lookup_command(), GNUNET_TESTING_interpreter_next_(), interpreter_run(), and rewind_ip_run().
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 128 of file testing_api_loop.c.
Referenced by do_timeout(), finish_test(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_next_(), and interpreter_run().
bool GNUNET_TESTING_Interpreter::finishing |
Is the interpreter finishing?
Definition at line 133 of file testing_api_loop.c.
Referenced by finish_test().
bool GNUNET_TESTING_Interpreter::skip |
Is the real result to "skip" because we could not get the environment working?
Definition at line 139 of file testing_api_loop.c.
Referenced by finish_test(), and GNUNET_TESTING_interpreter_skip().