cmd to destroy 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_destroy_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
The run method of this cmd will remove the test environment for a node. More... | |
static void | system_destroy_cleanup (void *cls) |
The cleanup function of this cmd frees resources the cmd allocated. More... | |
static enum GNUNET_GenericReturnValue | system_destroy_traits (void *cls, const void **ret, const char *trait, unsigned int index) |
Trait function of this cmd does nothing. More... | |
struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_system_destroy (const char *label, const char *create_label) |
Create command. More... | |
cmd to destroy a testing system handle.
Definition in file testing_api_cmd_system_destroy.c.
|
static |
The run method of this cmd will remove the test environment for a node.
Definition at line 50 of file testing_api_cmd_system_destroy.c.
References TestSystemState::create_label, GNUNET_TESTING_get_trait_test_system(), GNUNET_TESTING_interpreter_lookup_command(), GNUNET_TESTING_system_destroy(), GNUNET_YES, and is.
|
static |
The cleanup function of this cmd frees resources the cmd allocated.
Definition at line 71 of file testing_api_cmd_system_destroy.c.
References GNUNET_free.
|
static |
Trait function of this cmd does nothing.
Definition at line 71 of file testing_api_cmd_system_destroy.c.
struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_system_destroy | ( | const char * | label, |
const char * | create_label | ||
) |
Create command.
This command destroys the ressources allocated for the test system setup.
label | name for command. |
create_label | Label of the cmd which started the test system. |
Definition at line 71 of file testing_api_cmd_system_destroy.c.