diff options
Diffstat (limited to 'src/testing/testing_group.c')
-rw-r--r-- | src/testing/testing_group.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index 30c4fc886..96d2831d7 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "gnunet_arm_service.h" | 27 | #include "gnunet_arm_service.h" |
28 | #include "gnunet_testing_lib.h" | 28 | #include "gnunet_testing_lib.h" |
29 | 29 | ||
30 | #define VERBOSE_TESTING GNUNET_YES | 30 | #define VERBOSE_TESTING GNUNET_NO |
31 | 31 | ||
32 | /** | 32 | /** |
33 | * Lowest port used for GNUnet testing. Should be high enough to not | 33 | * Lowest port used for GNUnet testing. Should be high enough to not |
@@ -213,8 +213,8 @@ update_config (void *cls, | |||
213 | * Create a new configuration using the given configuration | 213 | * Create a new configuration using the given configuration |
214 | * as a template; however, each PORT in the existing cfg | 214 | * as a template; however, each PORT in the existing cfg |
215 | * must be renumbered by incrementing "*port". If we run | 215 | * must be renumbered by incrementing "*port". If we run |
216 | * out of "*port" numbers, return NULL. | 216 | * out of "*port" numbers, return NULL. |
217 | * | 217 | * |
218 | * @param cfg template configuration | 218 | * @param cfg template configuration |
219 | * @param port port numbers to use, update to reflect | 219 | * @param port port numbers to use, update to reflect |
220 | * port numbers that were used | 220 | * port numbers that were used |
@@ -330,9 +330,9 @@ create_small_world_ring(struct GNUNET_TESTING_PeerGroup *pg) | |||
330 | int connect_attempts; | 330 | int connect_attempts; |
331 | 331 | ||
332 | logNModifier = 0.5; /* FIXME: default value? */ | 332 | logNModifier = 0.5; /* FIXME: default value? */ |
333 | if (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string(pg->cfg, | 333 | if (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string(pg->cfg, |
334 | "TESTING", | 334 | "TESTING", |
335 | "LOGNMODIFIER", | 335 | "LOGNMODIFIER", |
336 | &p_string)) | 336 | &p_string)) |
337 | { | 337 | { |
338 | if (sscanf(p_string, "%lf", &logNModifier) != 1) | 338 | if (sscanf(p_string, "%lf", &logNModifier) != 1) |
@@ -500,7 +500,7 @@ create_small_world (struct GNUNET_TESTING_PeerGroup *pg) | |||
500 | square = floor (sqrt (pg->total)); | 500 | square = floor (sqrt (pg->total)); |
501 | rows = square; | 501 | rows = square; |
502 | cols = square; | 502 | cols = square; |
503 | 503 | ||
504 | percentage = 0.5; /* FIXME: default percentage? */ | 504 | percentage = 0.5; /* FIXME: default percentage? */ |
505 | if (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string(pg->cfg, | 505 | if (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string(pg->cfg, |
506 | "TESTING", | 506 | "TESTING", |
@@ -842,7 +842,7 @@ create_and_copy_friend_files (struct GNUNET_TESTING_PeerGroup *pg) | |||
842 | 842 | ||
843 | if (GNUNET_OK != | 843 | if (GNUNET_OK != |
844 | GNUNET_CONFIGURATION_get_value_string(pg->peers[pg_iter].daemon->cfg, "PATHS", "SERVICEHOME", &temp_service_path)) | 844 | GNUNET_CONFIGURATION_get_value_string(pg->peers[pg_iter].daemon->cfg, "PATHS", "SERVICEHOME", &temp_service_path)) |
845 | { | 845 | { |
846 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 846 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
847 | _("No `%s' specified in peer configuration in section `%s', cannot copy friends file!\n"), | 847 | _("No `%s' specified in peer configuration in section `%s', cannot copy friends file!\n"), |
848 | "SERVICEHOME", | 848 | "SERVICEHOME", |
@@ -1134,7 +1134,7 @@ GNUNET_TESTING_create_topology (struct GNUNET_TESTING_PeerGroup *pg) | |||
1134 | * adjusted to ensure that no two peers running on the same system | 1134 | * adjusted to ensure that no two peers running on the same system |
1135 | * have the same port(s) in their respective configurations. | 1135 | * have the same port(s) in their respective configurations. |
1136 | * | 1136 | * |
1137 | * @param sched scheduler to use | 1137 | * @param sched scheduler to use |
1138 | * @param cfg configuration template to use | 1138 | * @param cfg configuration template to use |
1139 | * @param total number of daemons to start | 1139 | * @param total number of daemons to start |
1140 | * @param cb function to call on each daemon that was started | 1140 | * @param cb function to call on each daemon that was started |
@@ -1301,7 +1301,7 @@ GNUNET_TESTING_daemon_get (struct GNUNET_TESTING_PeerGroup *pg, unsigned int pos | |||
1301 | 1301 | ||
1302 | /** | 1302 | /** |
1303 | * Shutdown all peers started in the given group. | 1303 | * Shutdown all peers started in the given group. |
1304 | * | 1304 | * |
1305 | * @param pg handle to the peer group | 1305 | * @param pg handle to the peer group |
1306 | */ | 1306 | */ |
1307 | void | 1307 | void |