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) \
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) \
$(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 = \
#include "transport.h"
#include "transport-testing.h"
-#define VERBOSE GNUNET_YES
+#define VERBOSE GNUNET_NO
#define VERBOSE_ARM GNUNET_EXTRA_LOGGING
*/
#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;
static GNUNET_TRANSPORT_TESTING_ConnectRequest cc;
+
/*
* Testcase specific declarations
*/
"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,
¬ify_receive,
¬ify_connect, ¬ify_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,
¬ify_receive,
¬ify_connect, ¬ify_disconnect,
&start_cb,
GNUNET_TRANSPORT_TESTING_done (tth);
- return ret;
+ return test_failed;
}
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
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
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
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
@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
@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
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
@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
+++ /dev/null
-@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
-
+++ /dev/null
-@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
-
-
-@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
@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
-@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
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
-@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