aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-11-28 02:01:35 +0000
committerBart Polot <bart@net.in.tum.de>2013-11-28 02:01:35 +0000
commit49616100333d2bf143fa855ab96e6e73eb62c543 (patch)
treebb4176f6ba4aa3d77e8ef1d5b5000393e5b71bee
parent459c0bdc8e2e240baf53f3006954b8a6d71c60a8 (diff)
downloadgnunet-49616100333d2bf143fa855ab96e6e73eb62c543.tar.gz
gnunet-49616100333d2bf143fa855ab96e6e73eb62c543.zip
- remove deprecated tests
-rw-r--r--src/mesh/Makefile.am2
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c2
-rw-r--r--src/mesh/test_mesh_small.c18
3 files changed, 2 insertions, 20 deletions
diff --git a/src/mesh/Makefile.am b/src/mesh/Makefile.am
index bc6d6e692..a81ac4589 100644
--- a/src/mesh/Makefile.am
+++ b/src/mesh/Makefile.am
@@ -111,9 +111,7 @@ check_PROGRAMS = \
111 test_mesh_small_signal \ 111 test_mesh_small_signal \
112 test_mesh_small_speed \ 112 test_mesh_small_speed \
113 test_mesh_small_speed_ack \ 113 test_mesh_small_speed_ack \
114 test_mesh_small_speed_nobuf \
115 test_mesh_small_speed_backwards \ 114 test_mesh_small_speed_backwards \
116 test_mesh_small_speed_nobuf_backwards \
117 test_mesh_small_speed_reliable \ 115 test_mesh_small_speed_reliable \
118 test_mesh_small_speed_reliable_backwards 116 test_mesh_small_speed_reliable_backwards
119endif 117endif
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index 48c3fe80e..67ac070ab 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -747,8 +747,6 @@ send_broken (struct MeshConnection *c,
747 * 747 *
748 * @param c Connection to keep alive.. 748 * @param c Connection to keep alive..
749 * @param fwd Is this a FWD keepalive? (owner -> dest). 749 * @param fwd Is this a FWD keepalive? (owner -> dest).
750 *
751 * FIXME register in GMC_send_prebuilt_message()
752 */ 750 */
753static void 751static void
754connection_keepalive (struct MeshConnection *c, int fwd) 752connection_keepalive (struct MeshConnection *c, int fwd)
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index cfebcaac8..855156bd9 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -51,7 +51,6 @@
51#define FORWARD 1 51#define FORWARD 1
52#define SPEED 3 52#define SPEED 3
53#define SPEED_ACK 4 53#define SPEED_ACK 4
54#define SPEED_NOBUF 6
55#define SPEED_REL 8 54#define SPEED_REL 8
56#define P2P_SIGNAL 10 55#define P2P_SIGNAL 10
57 56
@@ -625,7 +624,6 @@ channel_cleaner (void *cls, const struct GNUNET_MESH_Channel *channel,
625static void 624static void
626do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 625do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
627{ 626{
628 int nobuf;
629 int rel; 627 int rel;
630 628
631 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test_task\n"); 629 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test_task\n");
@@ -637,13 +635,6 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
637 { 635 {
638 GNUNET_SCHEDULER_cancel (disconnect_task); 636 GNUNET_SCHEDULER_cancel (disconnect_task);
639 } 637 }
640 if (SPEED_NOBUF == test)
641 {
642 test = SPEED;
643 nobuf = GNUNET_YES;
644 }
645 else
646 nobuf = GNUNET_NO;
647 638
648 if (SPEED_REL == test) 639 if (SPEED_REL == test)
649 { 640 {
@@ -652,7 +643,7 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
652 } 643 }
653 else 644 else
654 rel = GNUNET_NO; 645 rel = GNUNET_NO;
655 ch = GNUNET_MESH_channel_create (h1, NULL, p_id[1], 1, nobuf, rel); 646 ch = GNUNET_MESH_channel_create (h1, NULL, p_id[1], 1, GNUNET_NO, rel);
656 647
657 disconnect_task = GNUNET_SCHEDULER_add_delayed (SHORT_TIME, 648 disconnect_task = GNUNET_SCHEDULER_add_delayed (SHORT_TIME,
658 &disconnect_mesh_peers, 649 &disconnect_mesh_peers,
@@ -794,12 +785,7 @@ main (int argc, char *argv[])
794 */ 785 */
795 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "SPEED\n"); 786 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "SPEED\n");
796 ok_goal = TOTAL_PACKETS + 4; 787 ok_goal = TOTAL_PACKETS + 4;
797 if (strstr (argv[0], "_nobuf") != NULL) 788 if (strstr (argv[0], "_reliable") != NULL)
798 {
799 test = SPEED_NOBUF;
800 test_name = "speed nobuf";
801 }
802 else if (strstr (argv[0], "_reliable") != NULL)
803 { 789 {
804 test = SPEED_REL; 790 test = SPEED_REL;
805 test_name = "speed reliable"; 791 test_name = "speed reliable";