test_testing_connect \
test_testing_group \
test_testing_topology_clique
-
+# test_testing_topology_ring \
+# test_testing_topology_2d_torus \
+# test_testing_topology_small_world_ring \
+# test_testing_topology_small_world_torus \
+# test_testing_topology_erdos_renyi \
+# test_testing_topology_internat
+
TESTS = \
test_testing \
test_testing_connect \
test_testing_group \
- test_testing_topology_clique
+ test_testing_topology_clique
+# test_testing_topology_ring \
+# test_testing_topology_2d_torus \
+# test_testing_topology_small_world_ring \
+# test_testing_topology_small_world_torus \
+# test_testing_topology_erdos_renyi \
+# test_testing_topology_internat
#$(check_PROGRAMS)
test_testing_SOURCES = \
$(top_builddir)/src/util/libgnunetutil.la
test_testing_topology_clique_SOURCES = \
- test_testing_topology_clique.c
+ test_testing_topology.c
test_testing_topology_clique_LDADD = \
$(top_builddir)/src/testing/libgnunettesting.la \
$(top_builddir)/src/util/libgnunetutil.la
+#test_testing_topology_ring_SOURCES = \
+# test_testing_topology.c
+#test_testing_topology_ring_LDADD = \
+# $(top_builddir)/src/testing/libgnunettesting.la \
+# $(top_builddir)/src/util/libgnunetutil.la
+
+#test_testing_topology_2d_torus_SOURCES = \
+# test_testing_topology.c
+#test_testing_topology_2d_torus_LDADD = \
+# $(top_builddir)/src/testing/libgnunettesting.la \
+# $(top_builddir)/src/util/libgnunetutil.la
+
+#test_testing_topology_small_world_ring_SOURCES = \
+# test_testing_topology.c
+#test_testing_topology_small_world_ring_LDADD = \
+# $(top_builddir)/src/testing/libgnunettesting.la \
+# $(top_builddir)/src/util/libgnunetutil.la
+
+#test_testing_topology_small_world_torus_SOURCES = \
+# test_testing_topology.c
+#test_testing_topology_small_world_torus_LDADD = \
+# $(top_builddir)/src/testing/libgnunettesting.la \
+# $(top_builddir)/src/util/libgnunetutil.la
+
+#test_testing_topology_internat_SOURCES = \
+# test_testing_topology.c
+#test_testing_topology_internat_LDADD = \
+# $(top_builddir)/src/testing/libgnunettesting.la \
+# $(top_builddir)/src/util/libgnunetutil.la
+
+#test_testing_topology_erdos_renyi_SOURCES = \
+# test_testing_topology.c
+#test_testing_topology_erdos_renyi_LDADD = \
+# $(top_builddir)/src/testing/libgnunettesting.la \
+# $(top_builddir)/src/util/libgnunetutil.la
+
+
EXTRA_DIST = \
test_testing_data.conf \
test_testing_connect_peer1.conf \
test_testing_connect_peer2.conf \
- test_testing_data_topology_clique.conf
+ test_testing_data_topology_clique.conf \
+ test_testing_data_topology_ring.conf \
+ test_testing_data_topology_2d_torus.conf \
+ test_testing_data_topology_small_world_ring.conf \
+ test_testing_data_topology_small_world_torus.conf \
+ test_testing_data_topology_erdos_renyi.conf \
+ test_testing_data_topology_internat.conf
+
#include "gnunet_testing_lib.h"
#include "gnunet_core_service.h"
-#define VERBOSE GNUNET_YES
+#define VERBOSE GNUNET_NO
/**
* How long until we give up on connecting the peers?
transmit_ready (void *cls, size_t size, void *buf)
{
struct GNUNET_MessageHeader *m;
+#if VERBOSE
struct GNUNET_PeerIdentity *peer = cls;
+#endif
GNUNET_assert (buf != NULL);
m = (struct GNUNET_MessageHeader *) buf;
m->type = htons (MTYPE);
transmit_ready_called++;
#if VERBOSE
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "transmit ready for peer %s\ntransmit_ready's scheduled %d, transmit_ready's called %d\n", GNUNET_i2s(peer), transmit_ready_scheduled, transmit_ready_called);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "transmit ready for peer %s\ntransmit_ready's scheduled %d, transmit_ready's called %d\n", GNUNET_i2s(peer), transmit_ready_scheduled, transmit_ready_called);
#endif
GNUNET_SCHEDULER_add_now(sched, &schedule_transmission, NULL);
return sizeof (struct GNUNET_MessageHeader);