diff options
author | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-20 15:01:02 +0000 |
---|---|---|
committer | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-20 15:01:02 +0000 |
commit | b4d126f946c6b98a073f662c81f8b08d50b3b86c (patch) | |
tree | 222cdfbe30aeb2d7a6182d7d7c9e2864bfc40b04 /src/mesh | |
parent | 6e8c4cafc2a816230f6e97e00aba217455c50b9e (diff) |
- add new test type, fix disconnect
git-svn-id: https://gnunet.org/svn/gnunet@25584 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/test_mesh_small.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c index 0e3df5ca85..12b49082f5 100644 --- a/src/mesh/test_mesh_small.c +++ b/src/mesh/test_mesh_small.c @@ -54,6 +54,7 @@ #define SPEED_ACK 4 #define SPEED_MIN 5 #define SPEED_NOBUF 6 +#define P2P_SIGNAL 10 /** * Which test are we running? @@ -759,10 +760,10 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) if (GNUNET_SCHEDULER_NO_TASK != disconnect_task) { GNUNET_SCHEDULER_cancel (disconnect_task); - disconnect_task = - GNUNET_SCHEDULER_add_delayed (TIMEOUT, &disconnect_mesh_peers, - (void *) __LINE__); } + disconnect_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, + &disconnect_mesh_peers, + (void *) __LINE__); } /** @@ -884,6 +885,13 @@ main (int argc, char *argv[]) test_name = "multicast"; ok_goal = 10; } + else if (strstr (argv[0], "test_mesh_small_signal") != NULL) + { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "SIGNAL\n"); + test = P2P_SIGNAL; + test_name = "signal"; + ok_goal = 5; + } else if (strstr (argv[0], "test_mesh_small_speed_ack") != NULL) { /* Each peer is supposed to generate the following callbacks: |