aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_ng_lib.h
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-08-17 19:57:12 +0200
committert3sserakt <t3ss@posteo.de>2021-08-17 19:57:12 +0200
commit32a8c505c1fa27bb43c4e7c8d288566d51417f56 (patch)
tree0328fe50b6a099b5020fe6d1e01cbd6b96ecd18a /src/include/gnunet_testing_ng_lib.h
parent1e063cd73452396778cf00127346b9b08a922317 (diff)
downloadgnunet-32a8c505c1fa27bb43c4e7c8d288566d51417f56.tar.gz
gnunet-32a8c505c1fa27bb43c4e7c8d288566d51417f56.zip
- moved test code from testbed to testing
Diffstat (limited to 'src/include/gnunet_testing_ng_lib.h')
-rw-r--r--src/include/gnunet_testing_ng_lib.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h
index aad7ddec2..035d1bcad 100644
--- a/src/include/gnunet_testing_ng_lib.h
+++ b/src/include/gnunet_testing_ng_lib.h
@@ -842,4 +842,72 @@ struct GNUNET_TESTING_Command
842GNUNET_TESTING_cmd_system_create (const char *label, 842GNUNET_TESTING_cmd_system_create (const char *label,
843 const char *testdir); 843 const char *testdir);
844 844
845
846/**
847 * Create command.
848 *
849 * @param label name for command.
850 * @param binaryname to start.
851 * @return command.
852 */
853struct GNUNET_TESTING_Command
854GNUNET_TESTING_cmd_netjail_start (const char *label,
855 char *local_m,
856 char *global_n);
857
858
859/**
860 * Create command.
861 *
862 * @param label name for command.
863 * @param binaryname to exec.
864 * @return command.
865 */
866struct GNUNET_TESTING_Command
867GNUNET_TESTING_cmd_netjail_start_testing_system (const char *label,
868 char *local_m,
869 char *global_n,
870 char *plugin_name,
871 unsigned int *rv);
872
873
874/**
875 * Create command.
876 *
877 * @param label name for command.
878 * @param binaryname to stop.
879 * @return command.
880 */
881struct GNUNET_TESTING_Command
882GNUNET_TESTING_cmd_netjail_stop (const char *label,
883 char *local_m,
884 char *global_n);
885
886
887struct GNUNET_TESTING_Command
888GNUNET_TESTING_cmd_stop_testing_system (const char *label,
889 const char *helper_start_label,
890 char *local_m,
891 char *global_n);
892
893
894int
895GNUNET_TESTING_get_trait_helper_handles (const struct
896 GNUNET_TESTING_Command *cmd,
897 struct GNUNET_HELPER_Handle ***helper);
898
899
900struct GNUNET_TESTING_Command
901GNUNET_TESTING_cmd_block_until_all_peers_started (const char *label,
902 unsigned int *
903 all_peers_started);
904
905struct GNUNET_TESTING_Command
906GNUNET_TESTING_cmd_send_peer_ready (const char *label,
907 TESTING_CMD_HELPER_write_cb write_message);
908
909struct GNUNET_TESTING_Command
910GNUNET_TESTING_cmd_local_test_finished (const char *label,
911 TESTING_CMD_HELPER_write_cb
912 write_message);
845#endif 913#endif