25 #ifndef DHT_TEST_LIB_H
26 #define DHT_TEST_LIB_H
void(* GNUNET_DHT_TEST_AppMain)(void *cls, struct GNUNET_DHT_TEST_Context *ctx, unsigned int num_peers, struct GNUNET_TESTBED_Peer **peers, struct GNUNET_DHT_Handle **dhts)
Main function of a DHT test.
void GNUNET_DHT_TEST_cleanup(struct GNUNET_DHT_TEST_Context *ctx)
Clean up the testbed.
void GNUNET_DHT_TEST_run(const char *testname, const char *cfgname, unsigned int num_peers, GNUNET_DHT_TEST_AppMain tmain, void *tmain_cls)
Run a test using the given name, configuration file and number of peers.
static void tmain(void *cls, struct GNUNET_CADET_TEST_Context *ctx, unsigned int num_peers, struct GNUNET_TESTBED_Peer **testbed_peers, struct GNUNET_CADET_Handle **cadetes)
test main: start test when all peers are connected
static struct CadetPeer * peers
Operation to get peer ids.
static unsigned int num_peers
static struct GNUNET_DNSSTUB_Context * ctx
Context for DNS resolution.
API for writing tests and creating large-scale emulation testbeds for GNUnet.
Connection to the DHT service.
Test context for a DHT Test.
A peer controlled by the testing framework.