diff options
author | t3sserakt <t3ss@posteo.de> | 2021-07-22 17:03:02 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-07-22 17:03:02 +0200 |
commit | 6b2c5a92fbc3a57c42fc9fb38c4705ecb7afb328 (patch) | |
tree | 7e63539ec546952490bb9f8711ea431d2ae52ac7 /src/include | |
parent | f6f5f6367599cff9ec014c2950359dffa052404d (diff) | |
download | gnunet-6b2c5a92fbc3a57c42fc9fb38c4705ecb7afb328.tar.gz gnunet-6b2c5a92fbc3a57c42fc9fb38c4705ecb7afb328.zip |
- added first testcase cmd code for sending a simple testmessage
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_testbed_ng_service.h | 3 | ||||
-rw-r--r-- | src/include/gnunet_testing_ng_lib.h | 37 | ||||
-rw-r--r-- | src/include/gnunet_testing_plugin.h | 4 |
3 files changed, 42 insertions, 2 deletions
diff --git a/src/include/gnunet_testbed_ng_service.h b/src/include/gnunet_testbed_ng_service.h index caaee26b6..49e9f56bc 100644 --- a/src/include/gnunet_testbed_ng_service.h +++ b/src/include/gnunet_testbed_ng_service.h | |||
@@ -232,7 +232,8 @@ GNUNET_TESTBED_cmd_netjail_start (const char *label, | |||
232 | struct GNUNET_TESTING_Command | 232 | struct GNUNET_TESTING_Command |
233 | GNUNET_TESTBED_cmd_netjail_start_testbed (const char *label, | 233 | GNUNET_TESTBED_cmd_netjail_start_testbed (const char *label, |
234 | char *local_m, | 234 | char *local_m, |
235 | char *global_n); | 235 | char *global_n, |
236 | char *plugin_name); | ||
236 | 237 | ||
237 | 238 | ||
238 | /** | 239 | /** |
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h index 8927fd4f1..994ce31f1 100644 --- a/src/include/gnunet_testing_ng_lib.h +++ b/src/include/gnunet_testing_ng_lib.h | |||
@@ -29,6 +29,8 @@ | |||
29 | 29 | ||
30 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_testing_plugin.h" | 31 | #include "gnunet_testing_plugin.h" |
32 | #include "gnunet_transport_application_service.h" | ||
33 | #include "gnunet_testing_lib.h" | ||
32 | 34 | ||
33 | 35 | ||
34 | /* ********************* Helper functions ********************* */ | 36 | /* ********************* Helper functions ********************* */ |
@@ -831,4 +833,39 @@ int | |||
831 | GNUNET_TESTING_get_trait_what_am_i (const struct GNUNET_TESTING_Command *cmd, | 833 | GNUNET_TESTING_get_trait_what_am_i (const struct GNUNET_TESTING_Command *cmd, |
832 | char **what_am_i); | 834 | char **what_am_i); |
833 | 835 | ||
836 | int | ||
837 | GNUNET_TESTING_get_trait_application_handle (const struct | ||
838 | GNUNET_TESTING_Command *cmd, | ||
839 | struct | ||
840 | GNUNET_TRANSPORT_ApplicationHandle | ||
841 | **ah); | ||
842 | |||
843 | int | ||
844 | GNUNET_TESTING_get_trait_peer_id (const struct | ||
845 | GNUNET_TESTING_Command *cmd, | ||
846 | struct GNUNET_PeerIdentity **id); | ||
847 | |||
848 | int | ||
849 | GNUNET_TESTING_get_trait_connected_peers_map (const struct | ||
850 | GNUNET_TESTING_Command | ||
851 | *cmd, | ||
852 | struct | ||
853 | GNUNET_CONTAINER_MultiPeerMap ** | ||
854 | connected_peers_map); | ||
855 | int | ||
856 | GNUNET_TESTING_get_trait_hello_size (const struct | ||
857 | GNUNET_TESTING_Command | ||
858 | *cmd, | ||
859 | size_t **hello_size); | ||
860 | |||
861 | int | ||
862 | GNUNET_TESTING_get_trait_hello (const struct | ||
863 | GNUNET_TESTING_Command | ||
864 | *cmd, | ||
865 | char **hello); | ||
866 | |||
867 | int | ||
868 | GNUNET_TESTING_get_trait_test_system (const struct | ||
869 | GNUNET_TESTING_Command *cmd, | ||
870 | struct GNUNET_TESTING_System **test_system); | ||
834 | #endif | 871 | #endif |
diff --git a/src/include/gnunet_testing_plugin.h b/src/include/gnunet_testing_plugin.h index 6a54cacd2..8395e2a49 100644 --- a/src/include/gnunet_testing_plugin.h +++ b/src/include/gnunet_testing_plugin.h | |||
@@ -43,7 +43,9 @@ typedef void | |||
43 | typedef void | 43 | typedef void |
44 | (*GNUNET_TESTING_PLUGIN_StartTestCase) (TESTBED_CMD_HELPER_write_cb | 44 | (*GNUNET_TESTING_PLUGIN_StartTestCase) (TESTBED_CMD_HELPER_write_cb |
45 | write_message, char *router_ip, | 45 | write_message, char *router_ip, |
46 | char *node_ip); | 46 | char *node_ip, |
47 | char *n, | ||
48 | char *m); | ||
47 | 49 | ||
48 | typedef void | 50 | typedef void |
49 | (*GNUNET_TESTING_PLUGIN_ALL_PEERS_STARTED) (); | 51 | (*GNUNET_TESTING_PLUGIN_ALL_PEERS_STARTED) (); |