(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 17 Oct 2011 14:14:22 +0000 (14:14 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 17 Oct 2011 14:14:22 +0000 (14:14 +0000)
17 files changed:
src/transport/Makefile.am
src/transport/test_quota_compliance.c
src/transport/test_quota_compliance_http_peer1.conf
src/transport/test_quota_compliance_http_peer2.conf
src/transport/test_quota_compliance_https_peer1.conf
src/transport/test_quota_compliance_https_peer2.conf
src/transport/test_quota_compliance_tcp_asymmetric_peer1.conf
src/transport/test_quota_compliance_tcp_asymmetric_peer2.conf
src/transport/test_quota_compliance_tcp_peer1.conf
src/transport/test_quota_compliance_tcp_peer2.conf
src/transport/test_quota_compliance_udp_asymmetric_peer1.conf [deleted file]
src/transport/test_quota_compliance_udp_asymmetric_peer2.conf [deleted file]
src/transport/test_quota_compliance_udp_peer1.conf
src/transport/test_quota_compliance_udp_peer2.conf
src/transport/test_quota_compliance_unix_asymmetric_peer2.conf
src/transport/test_quota_compliance_unix_peer1.conf
src/transport/test_quota_compliance_unix_peer2.conf

index c156d483f16ae5a1a01818532fbc8dde322d4553..142d4de25beb432580b1b2ea625dc55d49b03c95 100644 (file)
@@ -281,7 +281,6 @@ check_PROGRAMS = \
  test_quota_compliance_tcp \
  test_quota_compliance_tcp_asymmetric \
  test_quota_compliance_udp \
- test_quota_compliance_udp_asymmetric \
  $(UNIX_QUOTA_TEST) \
  $(HTTP_QUOTA_TEST) \
  $(HTTPS_QUOTA_TEST) \
@@ -320,7 +319,6 @@ TESTS = \
  test_quota_compliance_tcp \
  test_quota_compliance_tcp_asymmetric \
  test_quota_compliance_udp \
- test_quota_compliance_udp_asymmetric \
  $(UNIX_QUOTA_TEST) \
  $(HTTP_QUOTA_TEST) \
  $(HTTPS_QUOTA_TEST) \
@@ -646,14 +644,6 @@ test_quota_compliance_udp_LDADD = \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(top_builddir)/src/transport/libgnunettransporttesting.la
 
-test_quota_compliance_udp_asymmetric_SOURCES = \
- test_quota_compliance.c
-test_quota_compliance_udp_asymmetric_LDADD = \
- $(top_builddir)/src/transport/libgnunettransport.la \
- $(top_builddir)/src/hello/libgnunethello.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(top_builddir)/src/transport/libgnunettransporttesting.la
-
 test_quota_compliance_unix_SOURCES = \
  test_quota_compliance.c
 test_quota_compliance_unix_LDADD = \
index 2eacbd7650b867c669f5485623ccd53560d00a4a..ec4b9a8db064bb7d3abe62e0d4d1077b4bd10805 100644 (file)
@@ -36,7 +36,7 @@
 #include "transport.h"
 #include "transport-testing.h"
 
-#define VERBOSE GNUNET_YES
+#define VERBOSE GNUNET_NO
 
 #define VERBOSE_ARM GNUNET_EXTRA_LOGGING
 
@@ -52,7 +52,7 @@
  */
 #define TIMEOUT_TRANSMIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2)
 
-#define DURATION GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
+#define DURATION GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5)
 
 static char *test_source;
 
@@ -90,6 +90,7 @@ struct GNUNET_TRANSPORT_TESTING_handle * tth;
 
 static GNUNET_TRANSPORT_TESTING_ConnectRequest cc;
 
+
 /*
  * Testcase specific declarations
  */
@@ -497,13 +498,13 @@ run_measurement (unsigned long long p1_quota_in, unsigned long long p1_quota_out
       "Generated config file `%s'\n",
       gen_cfg_p2);
 
-  p1 = GNUNET_TRANSPORT_TESTING_start_peer (tth, gen_cfg_p1, 1,
+  p1 = GNUNET_TRANSPORT_TESTING_start_peer (tth, cfg_file_p1, 1,
                                             &notify_receive,
                                             &notify_connect, &notify_disconnect,
                                             &start_cb,
                                             NULL);
 
-  p2 = GNUNET_TRANSPORT_TESTING_start_peer (tth, gen_cfg_p2, 2,
+  p2 = GNUNET_TRANSPORT_TESTING_start_peer (tth, cfg_file_p2, 2,
                                             &notify_receive,
                                             &notify_connect, &notify_disconnect,
                                             &start_cb,
@@ -632,7 +633,7 @@ main (int argc, char *argv[])
 
   GNUNET_TRANSPORT_TESTING_done (tth);
 
-  return ret;
+  return test_failed;
 }
 
 
index 872a7536517a23837c0537f797a97687a71af94a..06d0e275db9f89e4d9f53db1424d7c35edc5b9fe 100644 (file)
@@ -3,6 +3,10 @@
 SERVICEHOME = /tmp/test_quota_compliance_peer1
 DEFAULTCONFIG = test_quota_compliance_http_peer1.conf
 
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
+
 [transport-http]
 PORT = 4010
 DEBUG = NO
index 256dc61eb5ba4c9b681e8bc9f3586983ccbfb045..d3a039cfa0f692179ae87f08ac69673f6ebbac1d 100644 (file)
@@ -3,6 +3,10 @@
 SERVICEHOME = /tmp/test_quota_compliance_peer2
 DEFAULTCONFIG = test_quota_compliance_http_peer2.conf
 
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
+
 [transport-http]
 PORT = 3010
 DEBUG = NO
index 47f93096c7045b582659d15f2530ba136316bb02..8859304bba35ecb6a2c843266ec543c015505f34 100644 (file)
@@ -3,6 +3,10 @@
 SERVICEHOME = /tmp/test_quota_compliance_peer1/
 DEFAULTCONFIG = test_quota_compliance_https_peer1.conf
 
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
+
 [transport-https]
 PORT = 4001
 CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+SHA1:+RSA:+COMP-NULL
index 79bf0331ff331aff59301d03f56484b848d6a43b..afe4824bdb0ac7115c879e7ed8965658a0aaaea9 100644 (file)
@@ -3,6 +3,10 @@
 SERVICEHOME = /tmp/test_quota_compliance_peer2
 DEFAULTCONFIG = test_quota_compliance_https_peer2.conf
 
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
+
 [transport-https]
 PORT = 3001
 CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+SHA1:+RSA:+COMP-NULL
index ff63514b10a628549919084d00754da902efb40a..47f6a639cc9cb504eeaa1747a8a8c9dbc05bd50c 100644 (file)
@@ -1,7 +1,11 @@
 @INLINE@ template_cfg_peer1.conf
 [PATHS]
 SERVICEHOME = /tmp/test-transport/quota-tcp-p1/
-DEFAULTCONFIG = test_quota_compliance_tcp_peer1.conf
+DEFAULTCONFIG = test_quota_compliance_tcp_asymmetric_peer1.conf
+
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
 
 [transport-tcp]
 PORT = 4094
index 608c49a074b0b18d4bb13ab30d9bd8c3217db5f5..d9c182be52a5cb3cad6f058cec1c8387351afaf4 100644 (file)
@@ -1,32 +1,34 @@
 @INLINE@ template_cfg_peer2.conf
 [PATHS]
-SERVICEHOME = /tmp/test_quota_compliance_peer2
-DEFAULTCONFIG = test_quota_compliance_tcp_peer2.conf
+SERVICEHOME = /tmp/test-transport/quota-tcp-p2/
+DEFAULTCONFIG = test_quota_compliance_tcp_asymmetric_peer2.conf
 
-[transport-tcp]
-PORT = 3094
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
 
-[transport-udp]
-PORT = 3094
+[transport-tcp]
+PORT = 12015
+TIMEOUT = 5000
 
 [arm]
-PORT = 3087
-UNIXPATH = /tmp/test_quota_compliance_tcp_arm_peer2.sock
+PORT = 12014
+DEFAULTSERVICES = transport
+UNIXPATH = /tmp/gnunet-p2-service-arm.sock
 
 [statistics]
-PORT = 3088
-UNIXPATH = /tmp/test_quota_compliance_tcp_statistics_peer2.sock
+PORT = 12013
+UNIXPATH = /tmp/gnunet-p2-service-statistics.sock
 
 [resolver]
-PORT = 3089
-UNIXPATH = /tmp/test_quota_compliance_tcp_resolver_peer2.sock
+PORT = 12012
+UNIXPATH = /tmp/gnunet-p2-service-resolver.sock
 
 [peerinfo]
-PORT = 3090
-UNIXPATH = /tmp/test_quota_compliance_tcp_peerinfo_peer2.sock
+PORT = 12011
+UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock
 
 [transport]
-PORT = 3091
-UNIXPATH = /tmp/test_quota_compliance_tcp_transport_peer2.sock
-
+PORT = 12010
+UNIXPATH = /tmp/gnunet-p2-service-transport.sock
 
index ff63514b10a628549919084d00754da902efb40a..f92d9cd98f00d04ec4db42021fcab597db9bde0c 100644 (file)
@@ -3,6 +3,10 @@
 SERVICEHOME = /tmp/test-transport/quota-tcp-p1/
 DEFAULTCONFIG = test_quota_compliance_tcp_peer1.conf
 
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
+
 [transport-tcp]
 PORT = 4094
 
index 608c49a074b0b18d4bb13ab30d9bd8c3217db5f5..5fe5d070e8ad18d7f18e1fc7a4ab005ccc63aea5 100644 (file)
@@ -1,32 +1,34 @@
 @INLINE@ template_cfg_peer2.conf
 [PATHS]
-SERVICEHOME = /tmp/test_quota_compliance_peer2
+SERVICEHOME = /tmp/test-transport/api-tcp-p2/
 DEFAULTCONFIG = test_quota_compliance_tcp_peer2.conf
 
-[transport-tcp]
-PORT = 3094
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
 
-[transport-udp]
-PORT = 3094
+[transport-tcp]
+PORT = 12015
+TIMEOUT = 5000
 
 [arm]
-PORT = 3087
-UNIXPATH = /tmp/test_quota_compliance_tcp_arm_peer2.sock
+PORT = 12014
+DEFAULTSERVICES = transport
+UNIXPATH = /tmp/gnunet-p2-service-arm.sock
 
 [statistics]
-PORT = 3088
-UNIXPATH = /tmp/test_quota_compliance_tcp_statistics_peer2.sock
+PORT = 12013
+UNIXPATH = /tmp/gnunet-p2-service-statistics.sock
 
 [resolver]
-PORT = 3089
-UNIXPATH = /tmp/test_quota_compliance_tcp_resolver_peer2.sock
+PORT = 12012
+UNIXPATH = /tmp/gnunet-p2-service-resolver.sock
 
 [peerinfo]
-PORT = 3090
-UNIXPATH = /tmp/test_quota_compliance_tcp_peerinfo_peer2.sock
+PORT = 12011
+UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock
 
 [transport]
-PORT = 3091
-UNIXPATH = /tmp/test_quota_compliance_tcp_transport_peer2.sock
-
+PORT = 12010
+UNIXPATH = /tmp/gnunet-p2-service-transport.sock
 
diff --git a/src/transport/test_quota_compliance_udp_asymmetric_peer1.conf b/src/transport/test_quota_compliance_udp_asymmetric_peer1.conf
deleted file mode 100644 (file)
index 4848b06..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-@INLINE@ template_cfg_peer2.conf
-[PATHS]
-SERVICEHOME = /tmp/test_quota_compliance_peer1/
-DEFAULTCONFIG = test_quota_compliance_udp_peer1.conf
-
-[transport-udp]
-PORT = 4368
-MAX_BPS = 50000000
-
-[arm]
-PORT = 4087
-UNIXPATH = /tmp/test_quota_compliance_udp_arm_peer1.sock
-
-[statistics]
-PORT = 4088
-UNIXPATH = /tmp/test_quota_compliance_udp_statistics_peer1.sock
-
-[resolver]
-PORT = 4089
-UNIXPATH = /tmp/test_quota_compliance_udp_resolver_peer1.sock
-
-[peerinfo]
-PORT = 4090
-UNIXPATH = /tmp/test_quota_compliance_udp_peerinfo_peer1.sock
-
-[transport]
-PORT = 4091
-PLUGINS = udp
-UNIXPATH = /tmp/test_quota_compliance_udp_transport_peer1.sock
-
diff --git a/src/transport/test_quota_compliance_udp_asymmetric_peer2.conf b/src/transport/test_quota_compliance_udp_asymmetric_peer2.conf
deleted file mode 100644 (file)
index 4b58c93..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-@INLINE@ template_cfg_peer2.conf
-[PATHS]
-SERVICEHOME = /tmp/test_quota_compliance_peer2
-DEFAULTCONFIG = test_quota_compliance_udp_peer2.conf
-
-[transport-udp]
-PORT = 3368
-MAX_BPS = 50000000
-
-[arm]
-PORT = 3087
-UNIXPATH = /tmp/test_quota_compliance_udp_arm_peer2.sock
-
-[statistics]
-PORT = 3088
-UNIXPATH = /tmp/test_quota_compliance_udp_statistics_peer2.sock
-
-[resolver]
-PORT = 3089
-UNIXPATH = /tmp/test_quota_compliance_udp_resolver_peer2.sock
-
-[peerinfo]
-PORT = 3090
-UNIXPATH = /tmp/test_quota_compliance_udp_peerinfo_peer2.sock
-
-[transport]
-PORT = 3091
-PLUGINS = udp
-UNIXPATH = /tmp/test_quota_compliance_udp_transport_peer2.sock
-
-
index 4848b065eea8780bb81d6fc2405667b65657b60a..3e52c21670fb90f7a6c474f91f4c4b2e6027ad07 100644 (file)
@@ -1,8 +1,12 @@
-@INLINE@ template_cfg_peer2.conf
+@INLINE@ template_cfg_peer1.conf
 [PATHS]
 SERVICEHOME = /tmp/test_quota_compliance_peer1/
 DEFAULTCONFIG = test_quota_compliance_udp_peer1.conf
 
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
+
 [transport-udp]
 PORT = 4368
 MAX_BPS = 50000000
index 4b58c934f2945edfb1c72a08f6223240a353f58e..d6d928f7ca56b617267a7fb8a3e5317dee401f66 100644 (file)
@@ -1,8 +1,14 @@
 @INLINE@ template_cfg_peer2.conf
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
 [PATHS]
 SERVICEHOME = /tmp/test_quota_compliance_peer2
 DEFAULTCONFIG = test_quota_compliance_udp_peer2.conf
 
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
+
 [transport-udp]
 PORT = 3368
 MAX_BPS = 50000000
index fa24517ee446069b916e4cb410845d1fc53d1be0..a2d1bdd187b68516451f3f54982e91158ddc6fba 100644 (file)
@@ -1,4 +1,4 @@
-@INLINE@ template_cfg_peer1.conf
+@INLINE@ template_cfg_peer2.conf
 [PATHS]
 SERVICEHOME = /tmp/test_quota_compliance_peer2
 DEFAULTCONFIG = test_quota_compliance_unix_asymmetric_peer2.conf
index 60e656bad43474dc294f745eec987ae258fce853..20844227aa6a71930bc3bf1f07e2b5ee68c9a284 100644 (file)
@@ -3,6 +3,10 @@
 SERVICEHOME = /tmp/test_quota_compliance_peer1/
 DEFAULTCONFIG = test_quota_compliance_unix_peer1.conf
 
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
+
 [transport-unix]
 PORT = 12120
 
index 42db979a2641fff776ca28e2897f030288451e87..332226a84c25b518e04437ae8d90923477aad080 100644 (file)
@@ -1,8 +1,12 @@
-@INLINE@ template_cfg_peer1.conf
+@INLINE@ template_cfg_peer2.conf
 [PATHS]
 SERVICEHOME = /tmp/test_quota_compliance_peer2
 DEFAULTCONFIG = test_quota_compliance_unix_peer2.conf
 
+[core]
+TOTAL_QUOTA_IN = 10000
+TOTAL_QUOTA_OUT = 10000
+
 [transport-unix]
 PORT = 12136