2 This file is part of GNUnet.
3 (C) 2011 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
21 * @file mesh/test_mesh_small.c
23 * @brief Test for the mesh service: retransmission of traffic.
27 #include "mesh_test_lib.h"
28 #include "gnunet_mesh_service.h"
33 * How namy messages to send
35 #define TOTAL_PACKETS 1000
38 * How long until we give up on connecting the peers?
40 #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 120)
43 * Time to wait for stuff that should be rather fast
45 #define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 20)
48 * DIFFERENT TESTS TO RUN
60 * Which test are we running?
65 * String with test name
70 * Flag to send traffic leaf->root in speed tests to test BCK_ACK logic.
72 static int test_backwards = GNUNET_NO;
75 * How many events have happened
80 * Each peer is supposed to generate the following callbacks:
81 * 1 incoming tunnel (@dest)
82 * 1 connected peer (@orig)
83 * 1 received data packet (@dest)
84 * 1 received data packet (@orig)
85 * 1 received tunnel destroy (@dest)
86 * _________________________________
87 * 5 x ok expected per peer
93 * Size of each test packet
95 size_t size_payload = sizeof (struct GNUNET_MessageHeader) + sizeof (uint32_t);
98 * Operation to get peer ids.
100 struct GNUNET_TESTBED_Operation *t_op[3];
105 struct GNUNET_PeerIdentity *p_id[3];
113 * Is the setup initialized?
115 static int initialized;
118 * Peers that have been connected
120 static int peers_in_tunnel;
123 * Peers that have responded
125 static int peers_responded;
128 * Number of payload packes sent
130 static int data_sent;
133 * Number of payload packets received
135 static int data_received;
138 * Number of payload packed explicitly (app level) acknowledged
143 * Total number of currently running peers.
145 static unsigned long long peers_running;
148 * Test context (to shut down).
150 struct GNUNET_MESH_TEST_Context *test_ctx;
153 * Task called to disconnect peers.
155 static GNUNET_SCHEDULER_TaskIdentifier disconnect_task;
158 * Task To perform tests
160 static GNUNET_SCHEDULER_TaskIdentifier test_task;
163 * Task called to shutdown test.
165 static GNUNET_SCHEDULER_TaskIdentifier shutdown_handle;
168 * Mesh handle for the root peer
170 static struct GNUNET_MESH_Handle *h1;
173 * Mesh handle for the first leaf peer
175 static struct GNUNET_MESH_Handle *h2;
178 * Mesh handle for the second leaf peer
180 static struct GNUNET_MESH_Handle *h3;
183 * Tunnel handle for the root peer
185 static struct GNUNET_MESH_Tunnel *t;
188 * Tunnel handle for the first leaf peer
190 static struct GNUNET_MESH_Tunnel *incoming_t;
193 * Tunnel handle for the second leaf peer
195 static struct GNUNET_MESH_Tunnel *incoming_t2;
198 * Time we started the data transmission (after tunnel has been established
201 static struct GNUNET_TIME_Absolute start_time;
205 * Show the results of the test (banwidth acheived) and log them to GAUGER
210 static struct GNUNET_TIME_Absolute end_time;
211 static struct GNUNET_TIME_Relative total_time;
213 end_time = GNUNET_TIME_absolute_get();
214 total_time = GNUNET_TIME_absolute_get_difference(start_time, end_time);
215 FPRINTF (stderr, "\nResults of test \"%s\"\n", test_name);
216 FPRINTF (stderr, "Test time %llu ms\n",
217 (unsigned long long) total_time.rel_value);
218 FPRINTF (stderr, "Test bandwidth: %f kb/s\n",
219 4 * TOTAL_PACKETS * 1.0 / total_time.rel_value); // 4bytes * ms
220 FPRINTF (stderr, "Test throughput: %f packets/s\n\n",
221 TOTAL_PACKETS * 1000.0 / total_time.rel_value); // packets * ms
222 GAUGER ("MESH", test_name,
223 TOTAL_PACKETS * 1000.0 / total_time.rel_value,
229 * Shut down peergroup, clean up.
231 * @param cls Closure (unused).
232 * @param tc Task Context.
235 shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
237 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Ending test.\n");
238 shutdown_handle = GNUNET_SCHEDULER_NO_TASK;
243 * Disconnect from mesh services af all peers, call shutdown.
245 * @param cls Closure (unused).
246 * @param tc Task Context.
249 disconnect_mesh_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
251 long line = (long) cls;
254 for (i = 0; i < 3; i++)
257 GNUNET_TESTBED_operation_done (t_op[i]);
260 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
261 "disconnecting mesh service of peers, called from line %ld\n",
263 disconnect_task = GNUNET_SCHEDULER_NO_TASK;
266 GNUNET_MESH_tunnel_destroy (t);
269 if (NULL != incoming_t)
271 GNUNET_MESH_tunnel_destroy (incoming_t);
274 if (NULL != incoming_t2)
276 GNUNET_MESH_tunnel_destroy (incoming_t2);
279 GNUNET_MESH_TEST_cleanup (test_ctx);
280 if (GNUNET_SCHEDULER_NO_TASK != shutdown_handle)
282 GNUNET_SCHEDULER_cancel (shutdown_handle);
284 shutdown_handle = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
289 abort_test (long line)
291 if (disconnect_task != GNUNET_SCHEDULER_NO_TASK)
293 GNUNET_SCHEDULER_cancel (disconnect_task);
295 disconnect_task = GNUNET_SCHEDULER_add_delayed (SHORT_TIME,
296 &disconnect_mesh_peers,
301 * Transmit ready callback.
303 * @param cls Closure (message type).
304 * @param size Size of the tranmist buffer.
305 * @param buf Pointer to the beginning of the buffer.
307 * @return Number of bytes written to buf.
310 tmt_rdy (void *cls, size_t size, void *buf);
314 * Task to schedule a new data transmission.
316 * @param cls Closure (peer #).
317 * @param tc Task Context.
320 data_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
322 struct GNUNET_MESH_TransmitHandle *th;
323 struct GNUNET_MESH_Tunnel *tunnel;
324 struct GNUNET_PeerIdentity *destination;
326 if ((GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason) != 0)
329 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Data task\n");
330 if (GNUNET_YES == test_backwards)
333 destination = p_id[0];
338 destination = p_id[2];
340 th = GNUNET_MESH_notify_transmit_ready (tunnel, GNUNET_NO,
341 GNUNET_TIME_UNIT_FOREVER_REL,
344 &tmt_rdy, (void *) 1L);
347 unsigned long i = (unsigned long) cls;
349 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Retransmission\n");
352 GNUNET_log (GNUNET_ERROR_TYPE_INFO, " in 1 ms\n");
353 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MILLISECONDS,
354 &data_task, (void *)1UL);
359 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "in %u ms\n", i);
360 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply(
361 GNUNET_TIME_UNIT_MILLISECONDS,
363 &data_task, (void *)i);
370 * Transmit ready callback
372 * @param cls Closure (message type).
373 * @param size Size of the buffer we have.
374 * @param buf Buffer to copy data to.
377 tmt_rdy (void *cls, size_t size, void *buf)
379 struct GNUNET_MessageHeader *msg = buf;
382 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
383 " tmt_rdy called\n");
384 if (size < size_payload || NULL == buf)
387 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
388 "size %u, buf %p, data_sent %u, data_received %u\n",
395 msg->size = htons (size);
396 msg->type = htons ((long) cls);
397 data = (uint32_t *) &msg[1];
398 *data = htonl (data_sent);
399 if (SPEED == test && GNUNET_YES == initialized)
402 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
403 " Sent packet %d\n", data_sent);
404 if (data_sent < TOTAL_PACKETS)
406 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
407 " Scheduling packet %d\n", data_sent + 1);
408 GNUNET_SCHEDULER_add_now(&data_task, NULL);
416 * Function is called whenever a message is received.
418 * @param cls closure (set from GNUNET_MESH_connect)
419 * @param tunnel connection to the other end
420 * @param tunnel_ctx place to store local state associated with the tunnel
421 * @param sender who sent the message
422 * @param message the actual message
423 * @param atsi performance data for the connection
424 * @return GNUNET_OK to keep the connection open,
425 * GNUNET_SYSERR to close it (signal serious error)
428 data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
429 const struct GNUNET_PeerIdentity *sender,
430 const struct GNUNET_MessageHeader *message,
431 const struct GNUNET_ATS_Information *atsi)
433 long client = (long) cls;
434 long expected_target_client;
441 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
443 GNUNET_SCHEDULER_cancel (disconnect_task);
446 GNUNET_SCHEDULER_add_delayed (SHORT_TIME, &disconnect_mesh_peers,
453 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Root client got a message!\n");
455 if (test == MULTICAST && peers_responded < 2)
460 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
461 "Leaf client %li got a message.\n",
469 GNUNET_log (GNUNET_ERROR_TYPE_INFO, " ok: (%d/%d)\n", ok, ok_goal);
470 data = (uint32_t *) &message[1];
471 GNUNET_log (GNUNET_ERROR_TYPE_INFO, " payload: (%u)\n", ntohl (*data));
472 if (SPEED == test && GNUNET_YES == test_backwards)
474 expected_target_client = 0L;
478 expected_target_client = 4L;
481 if (GNUNET_NO == initialized)
483 initialized = GNUNET_YES;
484 start_time = GNUNET_TIME_absolute_get ();
487 GNUNET_assert (4L == client);
488 GNUNET_SCHEDULER_add_now (&data_task, NULL);
493 if (client == expected_target_client) // Normally 3 or 4
496 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
497 " received data %u\n", data_received);
498 if (SPEED != test || (ok_goal - 2) == ok)
500 GNUNET_MESH_notify_transmit_ready (tunnel, GNUNET_NO,
501 GNUNET_TIME_UNIT_FOREVER_REL, sender,
503 &tmt_rdy, (void *) 1L);
508 if (data_received < TOTAL_PACKETS)
514 if (test == SPEED_ACK || test == SPEED)
517 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
518 " received ack %u\n", data_ack);
519 GNUNET_MESH_notify_transmit_ready (tunnel, GNUNET_NO,
520 GNUNET_TIME_UNIT_FOREVER_REL, sender,
522 &tmt_rdy, (void *) 1L);
523 if (data_ack < TOTAL_PACKETS && SPEED != test)
525 if (ok == 2 && SPEED == test)
529 if (test == P2P_SIGNAL)
530 GNUNET_MESH_tunnel_destroy (incoming_t);
532 GNUNET_MESH_tunnel_destroy (t);
536 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
538 GNUNET_SCHEDULER_cancel (disconnect_task);
541 GNUNET_SCHEDULER_add_delayed (SHORT_TIME, &disconnect_mesh_peers,
549 * Handlers, for diverse services
551 static struct GNUNET_MESH_MessageHandler handlers[] = {
552 {&data_callback, 1, sizeof (struct GNUNET_MessageHeader)},
558 * Method called whenever another peer has added us to a tunnel
559 * the other peer initiated.
562 * @param tunnel new handle to the tunnel
563 * @param initiator peer that started the tunnel
564 * @param atsi performance information for the tunnel
565 * @return initial tunnel context for the tunnel
566 * (can be NULL -- that's not an error)
569 incoming_tunnel (void *cls, struct GNUNET_MESH_Tunnel *tunnel,
570 const struct GNUNET_PeerIdentity *initiator,
571 const struct GNUNET_ATS_Information *atsi)
573 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
574 "Incoming tunnel from %s to peer %d\n",
575 GNUNET_i2s (initiator), (long) cls);
577 GNUNET_log (GNUNET_ERROR_TYPE_INFO, " ok: %d\n", ok);
578 if ((long) cls == 4L)
580 else if ((long) cls == 3L)
581 incoming_t2 = tunnel;
584 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
585 "Incoming tunnel for unknown client %lu\n", (long) cls);
588 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
590 GNUNET_SCHEDULER_cancel (disconnect_task);
593 GNUNET_SCHEDULER_add_delayed (SHORT_TIME, &disconnect_mesh_peers,
600 * Function called whenever an inbound tunnel is destroyed. Should clean up
601 * any associated state.
603 * @param cls closure (set from GNUNET_MESH_connect)
604 * @param tunnel connection to the other end (henceforth invalid)
605 * @param tunnel_ctx place where local state associated
606 * with the tunnel is stored
609 tunnel_cleaner (void *cls, const struct GNUNET_MESH_Tunnel *tunnel,
614 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
615 "Incoming tunnel disconnected at peer %d\n",
628 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
629 "Unknown peer! %d\n", i);
630 GNUNET_log (GNUNET_ERROR_TYPE_INFO, " ok: %d\n", ok);
632 if (peers_in_tunnel > 0)
635 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
637 GNUNET_SCHEDULER_cancel (disconnect_task);
639 disconnect_task = GNUNET_SCHEDULER_add_now (&disconnect_mesh_peers,
647 * Method called whenever a tunnel falls apart.
650 * @param peer peer identity the tunnel stopped working with
653 dh (void *cls, const struct GNUNET_PeerIdentity *peer)
655 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
656 "peer %s disconnected\n",
663 * Method called whenever a peer connects to a tunnel.
666 * @param peer peer identity the tunnel was created to, NULL on timeout
667 * @param atsi performance data for the connection
670 ch (void *cls, const struct GNUNET_PeerIdentity *peer,
671 const struct GNUNET_ATS_Information *atsi)
675 struct GNUNET_PeerIdentity *dest;
677 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
678 "%ld peer %s connected\n", i, GNUNET_i2s (peer));
680 if (0 == memcmp (p_id[2], peer, sizeof (struct GNUNET_PeerIdentity)) &&
685 if (test == MULTICAST &&
686 0 == memcmp (p_id[1], peer, sizeof (struct GNUNET_PeerIdentity)) &&
691 GNUNET_log (GNUNET_ERROR_TYPE_INFO, " ok: %d\n", ok);
697 // incoming_t is NULL unless we send a relevant data packet
702 if (peers_in_tunnel < 2)
710 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
712 GNUNET_SCHEDULER_cancel (disconnect_task);
714 GNUNET_SCHEDULER_add_delayed (SHORT_TIME, &disconnect_mesh_peers,
716 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
717 "Sending data initializer...\n");
722 GNUNET_MESH_notify_transmit_ready (t, GNUNET_NO,
723 GNUNET_TIME_UNIT_FOREVER_REL, dest,
725 &tmt_rdy, (void *) 1L);
729 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
730 "Disconnect already run?\n");
731 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
739 * START THE TESTCASE ITSELF, AS WE ARE CONNECTED TO THE MESH SERVICES.
741 * Testcase continues when the root receives confirmation of connected peers,
742 * on callback funtion ch.
744 * @param cls Closure (unsued).
745 * @param tc Task Context.
748 do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
750 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test_task\n");
751 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "add peer 2\n");
752 GNUNET_MESH_peer_request_connect_add (t, p_id[2]);
754 if (test == MULTICAST)
756 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
758 GNUNET_MESH_peer_request_connect_add (t, p_id[1]);
761 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
762 "schedule timeout in TIMEOUT\n");
763 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
765 GNUNET_SCHEDULER_cancel (disconnect_task);
767 disconnect_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT,
768 &disconnect_mesh_peers,
773 * Callback to be called when the requested peer information is available
775 * @param cls the closure from GNUNET_TETSBED_peer_get_information()
776 * @param op the operation this callback corresponds to
777 * @param pinfo the result; will be NULL if the operation has failed
778 * @param emsg error message if the operation has failed;
779 * NULL if the operation is successfull
783 struct GNUNET_TESTBED_Operation *op,
784 const struct GNUNET_TESTBED_PeerInformation *pinfo,
789 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "id callback for %ld\n", i);
790 if (NULL == pinfo || NULL != emsg)
792 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "pi_cb: %s\n", emsg);
793 abort_test (__LINE__);
796 p_id[i] = pinfo->result.id;
797 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " id: %s\n", GNUNET_i2s (p_id[i]));
799 if ((MULTICAST == test && p_ids < 3) || p_ids < 2)
801 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got all IDs, starting test\n");
802 test_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
807 * test main: start test when all peers are connected
809 * @param cls Closure.
810 * @param ctx Argument to give to GNUNET_MESH_TEST_cleanup on test end.
811 * @param num_peers Number of peers that are running.
812 * @param peers Array of peers.
813 * @param meshes Handle to each of the MESHs of the peers.
817 struct GNUNET_MESH_TEST_Context *ctx,
818 unsigned int num_peers,
819 struct GNUNET_TESTBED_Peer **peers,
820 struct GNUNET_MESH_Handle **meshes)
822 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test main\n");
825 peers_running = num_peers;
827 h2 = meshes[num_peers - 1];
828 t = GNUNET_MESH_tunnel_create (h1, NULL, &ch, &dh, (void *) 0L);
829 if (SPEED_MIN == test)
831 GNUNET_MESH_tunnel_speed_min(t);
834 if (SPEED_NOBUF == test)
836 GNUNET_MESH_tunnel_buffer(t, GNUNET_NO);
840 disconnect_task = GNUNET_SCHEDULER_add_delayed (SHORT_TIME,
841 &disconnect_mesh_peers,
843 shutdown_handle = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
844 &shutdown_task, NULL);
845 t_op[0] = GNUNET_TESTBED_peer_get_information (peers[0],
846 GNUNET_TESTBED_PIT_IDENTITY,
847 &pi_cb, (void *) 0L);
848 t_op[2] = GNUNET_TESTBED_peer_get_information (peers[num_peers - 1],
849 GNUNET_TESTBED_PIT_IDENTITY,
850 &pi_cb, (void *) 2L);
851 if (MULTICAST == test)
853 h3 = meshes[num_peers - 2];
854 t_op[1] = GNUNET_TESTBED_peer_get_information (peers[num_peers - 2],
855 GNUNET_TESTBED_PIT_IDENTITY,
856 &pi_cb, (void *) 1L);
862 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "requested peer ids\n");
870 main (int argc, char *argv[])
872 initialized = GNUNET_NO;
874 GNUNET_log_setup ("test", "DEBUG", NULL);
876 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Start\n");
877 if (strstr (argv[0], "test_mesh_small_unicast") != NULL)
879 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "UNICAST\n");
881 test_name = "unicast";
884 else if (strstr (argv[0], "test_mesh_small_multicast") != NULL)
886 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MULTICAST\n");
888 test_name = "multicast";
891 else if (strstr (argv[0], "test_mesh_small_signal") != NULL)
893 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "SIGNAL\n");
895 test_name = "signal";
898 else if (strstr (argv[0], "test_mesh_small_speed_ack") != NULL)
900 /* Each peer is supposed to generate the following callbacks:
901 * 1 incoming tunnel (@dest)
902 * 1 connected peer (@orig)
903 * TOTAL_PACKETS received data packet (@dest)
904 * TOTAL_PACKETS received data packet (@orig)
905 * 1 received tunnel destroy (@dest)
906 * _________________________________
907 * 5 x ok expected per peer
909 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "SPEED_ACK\n");
911 test_name = "speed ack";
912 ok_goal = TOTAL_PACKETS * 2 + 3;
914 else if (strstr (argv[0], "test_mesh_small_speed") != NULL)
916 /* Each peer is supposed to generate the following callbacks:
917 * 1 incoming tunnel (@dest)
918 * 1 connected peer (@orig)
919 * 1 initial packet (@dest)
920 * TOTAL_PACKETS received data packet (@dest)
921 * 1 received data packet (@orig)
922 * 1 received tunnel destroy (@dest)
923 * _________________________________
925 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "SPEED\n");
926 ok_goal = TOTAL_PACKETS + 5;
927 if (strstr (argv[0], "_min") != NULL)
930 test_name = "speed min";
932 else if (strstr (argv[0], "_nobuf") != NULL)
935 test_name = "speed nobuf";
945 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "UNKNOWN\n");
950 if (strstr (argv[0], "backwards") != NULL)
954 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "BACKWARDS (LEAF TO ROOT)\n");
955 test_backwards = GNUNET_YES;
956 aux = GNUNET_malloc (32);
957 sprintf (aux, "backwards %s", test_name);
962 GNUNET_MESH_TEST_run ("test_mesh_small",
963 "test_mesh_small.conf",
974 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
975 "FAILED! (%d/%d)\n", ok, ok_goal);
978 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "success\n");
982 /* end of test_mesh_small.c */