GNUnet 0.21.1
testing_cmds.h File Reference

Message formats for communication between testing cmds helper and testcase plugins. More...

#include "gnunet_common.h"
Include dependency graph for testing_cmds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GNUNET_TESTING_CommandHelperInit
 Initialization message for gnunet-cmds-testbed to start cmd binary. More...
 
struct  GNUNET_TESTING_CommandHelperReply
 Reply message from cmds helper process. More...
 
struct  GNUNET_TESTING_CommandPeerStarted
 
struct  GNUNET_TESTING_CommandAllPeersStarted
 
struct  GNUNET_TESTING_CommandLocalFinished
 
struct  GNUNET_TESTING_CommandLocalTestPrepared
 
struct  GNUNET_TESTING_CommandAllLocalTestsPrepared
 

Macros

#define HELPER_CMDS_BINARY   "gnunet-cmds-helper"
 

Functions

struct GNUNET_TESTING_CommandGNUNET_TESTING_interpreter_get_current_command (struct GNUNET_TESTING_Interpreter *is)
 Returns the actual running command. More...
 
void GNUNET_TESTING_add_netjail_helper_ (struct GNUNET_TESTING_Interpreter *is, const struct GNUNET_HELPER_Handle *helper)
 Adding a helper handle to the interpreter. More...
 

Detailed Description

Message formats for communication between testing cmds helper and testcase plugins.

Author
t3sserakt

Definition in file testing_cmds.h.

Macro Definition Documentation

◆ HELPER_CMDS_BINARY

#define HELPER_CMDS_BINARY   "gnunet-cmds-helper"

Definition at line 30 of file testing_cmds.h.

Function Documentation

◆ GNUNET_TESTING_interpreter_get_current_command()

struct GNUNET_TESTING_Command * GNUNET_TESTING_interpreter_get_current_command ( struct GNUNET_TESTING_Interpreter is)

Returns the actual running command.

Parameters
isGlobal state of the interpreter, used by a command to access information about other commands.
Returns
The actual running command.

Definition at line 548 of file testing_api_loop.c.

550{
551 return &is->commands[is->ip];
552}
struct GNUNET_TESTING_Interpreter * is
int ip
Instruction pointer.
struct GNUNET_TESTING_Command * commands
Commands the interpreter will run.

References GNUNET_TESTING_Interpreter::commands, GNUNET_TESTING_Interpreter::ip, and is.

Referenced by barrier_reached_run(), block_until_all_peers_started_run(), and do_timeout().

Here is the caller graph for this function:

◆ GNUNET_TESTING_add_netjail_helper_()

void GNUNET_TESTING_add_netjail_helper_ ( struct GNUNET_TESTING_Interpreter is,
const struct GNUNET_HELPER_Handle helper 
)

Adding a helper handle to the interpreter.

Parameters
isThe interpreter.
helperThe helper handle.

Definition at line 794 of file testing_api_loop.c.

796{
798 is->n_helper,
799 helper);
800}
#define GNUNET_array_append(arr, len, element)
Append an element to an array (growing the array by one).
unsigned int n_helper
Size of the array helper.
const struct GNUNET_HELPER_Handle ** helper
Array with handles of helper processes for communication with netjails.

References GNUNET_array_append, GNUNET_TESTING_Interpreter::helper, is, and GNUNET_TESTING_Interpreter::n_helper.

Referenced by start_helper().

Here is the caller graph for this function: