GNUnet 0.22.1
GNUNET_TESTING_PluginFunctions Struct Reference

The plugin API every test case plugin has to implement. More...

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/lib/testing/testing_api_loop.h>

Collaboration diagram for GNUNET_TESTING_PluginFunctions:
[legend]

Data Fields

void * cls
 Closure to pass to start_testcase. More...
 
struct GNUNET_TESTING_Interpreter *(* start_testcase )(void *cls, const char *topology_data, uint32_t barrier_count, const struct GNUNET_ShortHashCode *barriers, GNUNET_TESTING_cmd_helper_write_cb write_message, GNUNET_TESTING_ResultCallback finish_cb, void *finish_cb_cls)
 Function to be implemented for each test case plugin which starts the test case on a netjail node. More...
 

Detailed Description

The plugin API every test case plugin has to implement.

Definition at line 45 of file testing_api_loop.h.

Field Documentation

◆ cls

void* GNUNET_TESTING_PluginFunctions::cls

Closure to pass to start_testcase.

Definition at line 51 of file testing_api_loop.h.

Referenced by add_addr(), core_connect_cb(), create_source(), create_target(), database_setup(), DHTU_gnunet_done(), DHTU_ip_done(), execute_get(), GNUNET_BLOCK_check_block(), GNUNET_BLOCK_check_query(), GNUNET_BLOCK_check_reply(), GNUNET_BLOCK_get_key(), GNUNET_BLOCK_group_create(), GNUNET_GNSRECORD_is_critical(), GNUNET_GNSRECORD_number_to_typename(), GNUNET_GNSRECORD_string_to_value(), GNUNET_GNSRECORD_typename_to_number(), GNUNET_GNSRECORD_value_to_string(), GNUNET_RECLAIM_attribute_number_to_typename(), GNUNET_RECLAIM_attribute_string_to_value(), GNUNET_RECLAIM_attribute_typename_to_number(), GNUNET_RECLAIM_attribute_value_to_string(), GNUNET_RECLAIM_credential_get_attributes(), GNUNET_RECLAIM_credential_get_expiration(), GNUNET_RECLAIM_credential_get_issuer(), GNUNET_RECLAIM_credential_get_presentation(), GNUNET_RECLAIM_credential_number_to_typename(), GNUNET_RECLAIM_credential_string_to_value(), GNUNET_RECLAIM_credential_typename_to_number(), GNUNET_RECLAIM_credential_value_to_string(), GNUNET_RECLAIM_presentation_get_attributes(), GNUNET_RECLAIM_presentation_get_expiration(), GNUNET_RECLAIM_presentation_get_issuer(), GNUNET_RECLAIM_presentation_number_to_typename(), GNUNET_RECLAIM_presentation_string_to_value(), GNUNET_RECLAIM_presentation_typename_to_number(), GNUNET_RECLAIM_presentation_value_to_string(), GNUNET_TESTING_make_plugin(), handle_core_message(), handle_helper_init(), heap_plugin_del(), nse_cb(), postgres_plugin_del(), postgres_plugin_put(), postgres_plugin_remove_key(), process_result(), read_cb(), run(), sqlite_plugin_del(), sqlite_plugin_put(), and sqlite_plugin_remove_key().

◆ start_testcase

struct GNUNET_TESTING_Interpreter *(* GNUNET_TESTING_PluginFunctions::start_testcase) (void *cls, const char *topology_data, uint32_t barrier_count, const struct GNUNET_ShortHashCode *barriers, GNUNET_TESTING_cmd_helper_write_cb write_message, GNUNET_TESTING_ResultCallback finish_cb, void *finish_cb_cls)

Function to be implemented for each test case plugin which starts the test case on a netjail node.

Parameters
topology_dataA file name for the file containing the topology configuration, or a string containing the topology configuration.
barrier_countlength of the barriers array
barriersinherited barriers
write_messageCallback function to write messages from the helper process running on a netjail node to the master process.
finish_cbCallback function which writes a message from the helper process running on a netjail node to the master process * signaling that the test case running on the netjail node finished.
Returns
Returns The struct GNUNET_TESTING_Interpreter of the command loop running on this netjail node.

Definition at line 51 of file testing_api_loop.h.

Referenced by GNUNET_TESTING_make_plugin(), and handle_helper_init().


The documentation for this struct was generated from the following file: