diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-24 15:21:32 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-24 15:21:32 +0200 |
commit | 5bb46d9a3ab568145f594c5a3cfa31ead3df38eb (patch) | |
tree | 021dd56b9a4fd7d349139a844635bb1675b80167 /src/testing | |
parent | 5ddaa3f8eb5e01882540f21ddf237f3a41311e8a (diff) |
-remove dead ats-tests, fix strange Debian build issues
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/Makefile.am | 3 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_netjail_start_testsystem.c | 11 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_netjail_stop_testsystem.c | 5 |
3 files changed, 11 insertions, 8 deletions
diff --git a/src/testing/Makefile.am b/src/testing/Makefile.am index c01e9bdbd..6e0f29c4e 100644 --- a/src/testing/Makefile.am +++ b/src/testing/Makefile.am @@ -62,9 +62,6 @@ libgnunettesting_la_LIBADD = \ $(top_builddir)/src/arm/libgnunetarm.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(LTLIBINTL) -libgnunettesting_la_DEPENDENCIES = \ - $(top_builddir)/src/arm/libgnunetarm.la \ - $(top_builddir)/src/util/libgnunetutil.la libgnunettesting_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) \ -version-info 2:0:1 diff --git a/src/testing/testing_api_cmd_netjail_start_testsystem.c b/src/testing/testing_api_cmd_netjail_start_testsystem.c index 01bac9b05..0fe0541b0 100644 --- a/src/testing/testing_api_cmd_netjail_start_testsystem.c +++ b/src/testing/testing_api_cmd_netjail_start_testsystem.c @@ -191,7 +191,7 @@ struct TestingSystemCount }; /** -* Code to clean up ressource this cmd used. +* Code to clean up resource this cmd used. * * @param cls closure * @param cmd current CMD being cleaned up. @@ -276,6 +276,7 @@ GNUNET_TESTING_get_trait_helper_handles (const struct (unsigned int) 0); } + /** * Offer messages received via testing cmd helper from trait * @@ -362,6 +363,7 @@ helper_mst (void *cls, const struct GNUNET_MessageHeader *message) return GNUNET_OK; } + /** * Callback called if there was an exception during execution of the helper. * @@ -374,6 +376,7 @@ exp_cb (void *cls) *ns->rv = 1; } + /** * Function to initialize a init message for the helper. * @@ -506,7 +509,8 @@ netjail_exec_run (void *cls, struct GNUNET_CONFIGURATION_Handle *config = GNUNET_CONFIGURATION_create (); - for (int i = 1; i <= atoi (ns->global_n); i++) { + for (int i = 1; i <= atoi (ns->global_n); i++) + { for (int j = 1; j <= atoi (ns->local_m); j++) { sprintf (str_n, "%d", i); @@ -554,7 +558,8 @@ netjail_start_finish (void *cls, if (ns->number_of_peers_started == total_number) { - for (int i = 1; i <= atoi (ns->global_n); i++) { + for (int i = 1; i <= atoi (ns->global_n); i++) + { for (int j = 1; j <= atoi (ns->local_m); j++) { tbc = GNUNET_new (struct TestingSystemCount); diff --git a/src/testing/testing_api_cmd_netjail_stop_testsystem.c b/src/testing/testing_api_cmd_netjail_stop_testsystem.c index d6e733e05..0ae82a26a 100644 --- a/src/testing/testing_api_cmd_netjail_stop_testsystem.c +++ b/src/testing/testing_api_cmd_netjail_stop_testsystem.c @@ -49,7 +49,7 @@ struct StopHelperState /** -* Code to clean up ressource this cmd used. +* Code to clean up resource this cmd used. * * @param cls closure * @param cmd current CMD being cleaned up. @@ -97,7 +97,8 @@ stop_testing_system_run (void *cls, GNUNET_TESTING_get_trait_helper_handles (start_helper_cmd, &helper); - for (int i = 1; i <= atoi (shs->global_n); i++) { + for (int i = 1; i <= atoi (shs->global_n); i++) + { for (int j = 1; j <= atoi (shs->local_m); j++) { GNUNET_HELPER_stop (helper[(i - 1) * atoi (shs->local_m) + j - 1], |