diff options
author | t3sserakt <t3ss@posteo.de> | 2021-08-17 19:57:12 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-08-17 19:57:12 +0200 |
commit | 32a8c505c1fa27bb43c4e7c8d288566d51417f56 (patch) | |
tree | 0328fe50b6a099b5020fe6d1e01cbd6b96ecd18a /src/include/gnunet_testing_ng_lib.h | |
parent | 1e063cd73452396778cf00127346b9b08a922317 (diff) | |
download | gnunet-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.h | 68 |
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 | |||
842 | GNUNET_TESTING_cmd_system_create (const char *label, | 842 | GNUNET_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 | */ | ||
853 | struct GNUNET_TESTING_Command | ||
854 | GNUNET_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 | */ | ||
866 | struct GNUNET_TESTING_Command | ||
867 | GNUNET_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 | */ | ||
881 | struct GNUNET_TESTING_Command | ||
882 | GNUNET_TESTING_cmd_netjail_stop (const char *label, | ||
883 | char *local_m, | ||
884 | char *global_n); | ||
885 | |||
886 | |||
887 | struct GNUNET_TESTING_Command | ||
888 | GNUNET_TESTING_cmd_stop_testing_system (const char *label, | ||
889 | const char *helper_start_label, | ||
890 | char *local_m, | ||
891 | char *global_n); | ||
892 | |||
893 | |||
894 | int | ||
895 | GNUNET_TESTING_get_trait_helper_handles (const struct | ||
896 | GNUNET_TESTING_Command *cmd, | ||
897 | struct GNUNET_HELPER_Handle ***helper); | ||
898 | |||
899 | |||
900 | struct GNUNET_TESTING_Command | ||
901 | GNUNET_TESTING_cmd_block_until_all_peers_started (const char *label, | ||
902 | unsigned int * | ||
903 | all_peers_started); | ||
904 | |||
905 | struct GNUNET_TESTING_Command | ||
906 | GNUNET_TESTING_cmd_send_peer_ready (const char *label, | ||
907 | TESTING_CMD_HELPER_write_cb write_message); | ||
908 | |||
909 | struct GNUNET_TESTING_Command | ||
910 | GNUNET_TESTING_cmd_local_test_finished (const char *label, | ||
911 | TESTING_CMD_HELPER_write_cb | ||
912 | write_message); | ||
845 | #endif | 913 | #endif |