test_transport_api_reliability_tcp_nat \
test_transport_api_reliability_udp \
$(HTTP_REL_TEST) \
- $(HTTPS_REL_TEST)
+ $(HTTPS_REL_TEST) \
+ test_quota_compliance
# TODO: add tests for nat, etc.
if !DISABLE_TEST_RUN
test_transport_api_reliability_tcp \
test_transport_api_reliability_tcp_nat \
$(HTTP_REL_TEST) \
- $(HTTPS_REL_TEST)
+ $(HTTPS_REL_TEST) \
+ test_quota_compliance
endif
test_transport_api_tcp_SOURCES = \
$(top_builddir)/src/transport/libgnunettransport.la \
$(top_builddir)/src/util/libgnunetutil.la
+test_quota_compliance_SOURCES = \
+ test_quota_compliance.c
+test_quota_compliance_LDADD = \
+ $(top_builddir)/src/transport/libgnunettransport.la \
+ $(top_builddir)/src/util/libgnunetutil.la
+
endif
EXTRA_DIST = \
test_transport_api_rel_http_peer2.conf \
test_transport_api_rel_https_peer1.conf \
test_transport_api_rel_https_peer2.conf \
- test_plugin_transport_data_http.conf
+ test_plugin_transport_data_http.conf \
+ test_plugin_transport_data.conf \
+ test_quota_compliance_data.conf \
+ test_quota_compliance_peer1.conf \
+ test_quota_compliance_peer2.conf
\ No newline at end of file
measurement_counter_task = GNUNET_SCHEDULER_NO_TASK;
}
GNUNET_SCHEDULER_shutdown (sched);
-#if VERBOSE
+#if DEBUG_CONNECTIONS
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from transports!\n");
#endif
GNUNET_TRANSPORT_disconnect (p1.th);
GNUNET_TRANSPORT_disconnect (p2.th);
-#if VERBOSE
+#if DEBUG_CONNECTIONS
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Transports disconnected, returning success!\n");
#endif
current_quota_p2 = quota_p2;
#if VERBOSE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Starting measurement: Duration: %u Quota: %u\n", MEASUREMENT_INTERVALL, current_quota_p1);
+ "Starting transport level measurement: Duration: %u Quota: %u\n", MEASUREMENT_INTERVALL, current_quota_p1);
#endif
GNUNET_TRANSPORT_set_quota (p1.th,
&p2.id,