cmd to create a testing system handle. More...
#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_testing_ng_lib.h"
#include "gnunet_testing_plugin.h"
#include "gnunet_testing_netjail_lib.h"
#include "gnunet_testing_lib.h"
Go to the source code of this file.
Data Structures | |
struct | TestSystemState |
Struct to hold information for callbacks. More... | |
Functions | |
static void | system_create_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
The run method of this cmd will setup a test environment for a node. More... | |
static int | system_create_traits (void *cls, const void **ret, const char *trait, unsigned int index) |
This function prepares an array with traits. More... | |
static void | system_create_cleanup (void *cls) |
The cleanup function of this cmd frees resources the cmd allocated. More... | |
struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_system_create (const char *label, const char *testdir) |
Create command. More... | |
cmd to create a testing system handle.
Definition in file testing_api_cmd_system_create.c.
|
static |
The run method of this cmd will setup a test environment for a node.
Definition at line 50 of file testing_api_cmd_system_create.c.
References GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_TESTING_system_create(), TestSystemState::test_system, and TestSystemState::testdir.
|
static |
This function prepares an array with traits.
Definition at line 72 of file testing_api_cmd_system_create.c.
References GNUNET_TESTING_get_trait(), GNUNET_TESTING_make_trait_test_system(), GNUNET_TESTING_trait_end(), GNUNET_TESTING_Trait::index, ret, test_system, and TestSystemState::test_system.
|
static |
The cleanup function of this cmd frees resources the cmd allocated.
Definition at line 97 of file testing_api_cmd_system_create.c.
References GNUNET_free.
struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_system_create | ( | const char * | label, |
const char * | testdir | ||
) |
Create command.
This command is setting up a test environment for a peer to start.
label | name for command. |
label | name for the test environment directory. |
Definition at line 97 of file testing_api_cmd_system_create.c.