From 6aac05fa79f97bb8826849a6784c11c0d76d1eba Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 29 Oct 2010 08:56:09 +0000 Subject: [PATCH] Adding support for other plugins --- src/transport/test_quota_compliance.c | 28 ++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index 194222183..88e47d7d3 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c @@ -47,7 +47,7 @@ #define MEASUREMENT_MSG_SIZE_BIG 32768 #define MEASUREMENT_MAX_QUOTA 1024 * 1024 * 1024 #define MEASUREMENT_MIN_QUOTA 1024 * 10 -#define SEND_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) +#define SEND_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 35) /** * Testcase timeout */ @@ -132,6 +132,12 @@ static unsigned long long total_bytes; static unsigned long long current_quota_p1; static unsigned long long current_quota_p2; +static int is_tcp; +static int is_tcp_nat; +static int is_http; +static int is_https; +static int is_udp; + static struct GNUNET_TIME_Absolute start_time; static GNUNET_SCHEDULER_TaskIdentifier die_task; @@ -587,6 +593,26 @@ main (int argc, char *argv[]) #ifdef MINGW return GNUNET_SYSERR; #endif + if (strstr(argv[0], "tcp_nat") != NULL) + { + is_tcp_nat = GNUNET_YES; + } + else if (strstr(argv[0], "tcp") != NULL) + { + is_tcp = GNUNET_YES; + } + else if (strstr(argv[0], "https") != NULL) + { + is_https = GNUNET_YES; + } + else if (strstr(argv[0], "http") != NULL) + { + is_http = GNUNET_YES; + } + else if (strstr(argv[0], "udp") != NULL) + { + is_udp = GNUNET_YES; + } GNUNET_log_setup ("test-quota-compliance", #if VERBOSE "DEBUG", -- 2.25.1