aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-08-25 09:10:11 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-08-25 09:10:11 +0000
commite0d1527b589a41c03887754ae8e9abedf1716d45 (patch)
tree533d2470e301bd57c9ff45de8312d7448cef5957 /src/transport
parent9f4aca7e4626ae62a46b19ac7b44b1bc6884f5be (diff)
minor changes
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/test_transport_startonly.c9
-rw-r--r--src/transport/test_transport_startonly.conf15
2 files changed, 21 insertions, 3 deletions
diff --git a/src/transport/test_transport_startonly.c b/src/transport/test_transport_startonly.c
index 029227fa0b..35c9e546b4 100644
--- a/src/transport/test_transport_startonly.c
+++ b/src/transport/test_transport_startonly.c
@@ -120,14 +120,14 @@ run (void *cls, char *const *args, const char *cfgfile,
const struct GNUNET_CONFIGURATION_Handle *cfg)
{
timeout_task =
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, &end_badly, NULL);
+ GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL);
i = 1;
fprintf(stderr,"%i",i);
while (i <= ITERATIONS)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting peer\n");
- p1 = GNUNET_TRANSPORT_TESTING_start_peer ("test_transport_api_tcp_peer1.conf",
+ p1 = GNUNET_TRANSPORT_TESTING_start_peer ("test_transport_startonly.conf",
&notify_receive, &notify_connect,
&notify_disconnect, p1);
@@ -140,10 +140,13 @@ run (void *cls, char *const *args, const char *cfgfile,
GNUNET_assert (p1 != NULL);
GNUNET_assert (p1->th != NULL);
+ //sleep (5);
+
GNUNET_TRANSPORT_TESTING_stop_peer(p1);
i++;
- fprintf(stderr,"..%i",i);
+ if (i <= ITERATIONS)
+ fprintf(stderr,"..%i",i);
}
fprintf(stderr,"\n");
end();
diff --git a/src/transport/test_transport_startonly.conf b/src/transport/test_transport_startonly.conf
new file mode 100644
index 0000000000..255df4c44d
--- /dev/null
+++ b/src/transport/test_transport_startonly.conf
@@ -0,0 +1,15 @@
+@INLINE@ test_transport_defaults.conf
+[PATHS]
+DEFAULTCONFIG = test_transport_api_data.conf
+
+[arm]
+DEFAULTSERVICES = transport
+
+[transport-tcp]
+PORT = 2094
+
+[transport-udp]
+PORT = 2094
+
+
+