diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-10-06 11:26:49 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-10-06 11:26:49 +0000 |
commit | f22fda6b2ff4be4ed54fe4fa903718eff9e18786 (patch) | |
tree | db2cc1b97aeb13c26fc9cfe6c8dd1e3681b7ec89 /src | |
parent | 84592357d1610fb2923798fb975b202d7260f971 (diff) | |
download | gnunet-f22fda6b2ff4be4ed54fe4fa903718eff9e18786.tar.gz gnunet-f22fda6b2ff4be4ed54fe4fa903718eff9e18786.zip |
reduce verbosity of testcases, minor fix
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/gnunet-service-dht.c | 5 | ||||
-rw-r--r-- | src/dht/test_dht_api.c | 2 | ||||
-rw-r--r-- | src/dht/test_dht_api_data.conf | 5 | ||||
-rw-r--r-- | src/dht/test_dht_api_peer1.conf | 2 | ||||
-rw-r--r-- | src/dht/test_dht_multipeer.c | 2 | ||||
-rw-r--r-- | src/dht/test_dht_twopeer.c | 2 | ||||
-rw-r--r-- | src/dht/test_dht_twopeer_data.conf | 2 | ||||
-rw-r--r-- | src/dht/test_dht_twopeer_put_get.c | 2 |
8 files changed, 12 insertions, 10 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 1f78ccf98..5cc3bcfbf 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -2342,7 +2342,6 @@ handle_dht_get (void *cls, | |||
2342 | } | 2342 | } |
2343 | else | 2343 | else |
2344 | { | 2344 | { |
2345 | |||
2346 | /* check query valid */ | 2345 | /* check query valid */ |
2347 | if (GNUNET_BLOCK_EVALUATION_REQUEST_INVALID | 2346 | if (GNUNET_BLOCK_EVALUATION_REQUEST_INVALID |
2348 | == GNUNET_BLOCK_evaluate (block_context, | 2347 | == GNUNET_BLOCK_evaluate (block_context, |
@@ -2725,7 +2724,7 @@ get_forward_count (unsigned int hop_count, size_t target_replication) | |||
2725 | * full routing tables, which for our RR topologies may not be the case! | 2724 | * full routing tables, which for our RR topologies may not be the case! |
2726 | */ | 2725 | */ |
2727 | diameter = estimate_diameter (); | 2726 | diameter = estimate_diameter (); |
2728 | if ((hop_count > (diameter + 1) * 2) && (MINIMUM_PEER_THRESHOLD < estimate_diameter() * bucket_size)) | 2727 | if ((hop_count > (diameter + 1) * 2) && (MINIMUM_PEER_THRESHOLD < estimate_diameter() * bucket_size) && (use_max_hops == GNUNET_NO)) |
2729 | { | 2728 | { |
2730 | #if DEBUG_DHT | 2729 | #if DEBUG_DHT |
2731 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2730 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -3604,7 +3603,7 @@ route_message(void *cls, | |||
3604 | cache_response (cls, message_context); | 3603 | cache_response (cls, message_context); |
3605 | handle_dht_get (cls, msg, message_context); | 3604 | handle_dht_get (cls, msg, message_context); |
3606 | break; | 3605 | break; |
3607 | case GNUNET_MESSAGE_TYPE_DHT_PUT: /* Check if closest, if so insert data. FIXME: thresholding to reduce complexity?*/ | 3606 | case GNUNET_MESSAGE_TYPE_DHT_PUT: /* Check if closest, if so insert data. */ |
3608 | increment_stats(STAT_PUTS); | 3607 | increment_stats(STAT_PUTS); |
3609 | handle_dht_put (cls, msg, message_context); | 3608 | handle_dht_put (cls, msg, message_context); |
3610 | break; | 3609 | break; |
diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c index 465a9246a..3d4e8dfb1 100644 --- a/src/dht/test_dht_api.c +++ b/src/dht/test_dht_api.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "gnunet_dht_service.h" | 34 | #include "gnunet_dht_service.h" |
35 | #include "gnunet_hello_lib.h" | 35 | #include "gnunet_hello_lib.h" |
36 | 36 | ||
37 | #define VERBOSE GNUNET_YES | 37 | #define VERBOSE GNUNET_NO |
38 | 38 | ||
39 | #define VERBOSE_ARM GNUNET_NO | 39 | #define VERBOSE_ARM GNUNET_NO |
40 | 40 | ||
diff --git a/src/dht/test_dht_api_data.conf b/src/dht/test_dht_api_data.conf index df2c53d2a..24e3bca30 100644 --- a/src/dht/test_dht_api_data.conf +++ b/src/dht/test_dht_api_data.conf | |||
@@ -23,9 +23,12 @@ TOTAL_QUOTA_IN = 3932160 | |||
23 | PORT = 2092 | 23 | PORT = 2092 |
24 | 24 | ||
25 | [dht] | 25 | [dht] |
26 | DEBUG = YES | 26 | DEBUG = NO |
27 | PORT = 12370 | 27 | PORT = 12370 |
28 | 28 | ||
29 | [block] | ||
30 | plugins = dht test | ||
31 | |||
29 | [transport] | 32 | [transport] |
30 | plugins = tcp | 33 | plugins = tcp |
31 | DEBUG = NO | 34 | DEBUG = NO |
diff --git a/src/dht/test_dht_api_peer1.conf b/src/dht/test_dht_api_peer1.conf index b6fbe20cf..597e7af8f 100644 --- a/src/dht/test_dht_api_peer1.conf +++ b/src/dht/test_dht_api_peer1.conf | |||
@@ -2,7 +2,7 @@ | |||
2 | AUTOSTART = NO | 2 | AUTOSTART = NO |
3 | 3 | ||
4 | [dht] | 4 | [dht] |
5 | DEBUG = YES | 5 | DEBUG = NO |
6 | AUTOSTART = YES | 6 | AUTOSTART = YES |
7 | ACCEPT_FROM6 = ::1; | 7 | ACCEPT_FROM6 = ::1; |
8 | ACCEPT_FROM = 127.0.0.1; | 8 | ACCEPT_FROM = 127.0.0.1; |
diff --git a/src/dht/test_dht_multipeer.c b/src/dht/test_dht_multipeer.c index 293829bc7..65eb213e2 100644 --- a/src/dht/test_dht_multipeer.c +++ b/src/dht/test_dht_multipeer.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include "gnunet_dht_service.h" | 28 | #include "gnunet_dht_service.h" |
29 | 29 | ||
30 | /* DEFINES */ | 30 | /* DEFINES */ |
31 | #define VERBOSE GNUNET_YES | 31 | #define VERBOSE GNUNET_NO |
32 | 32 | ||
33 | /* Timeout for entire testcase */ | 33 | /* Timeout for entire testcase */ |
34 | #define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5) | 34 | #define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5) |
diff --git a/src/dht/test_dht_twopeer.c b/src/dht/test_dht_twopeer.c index b9f95eb51..02e789069 100644 --- a/src/dht/test_dht_twopeer.c +++ b/src/dht/test_dht_twopeer.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include "gnunet_dht_service.h" | 28 | #include "gnunet_dht_service.h" |
29 | 29 | ||
30 | /* DEFINES */ | 30 | /* DEFINES */ |
31 | #define VERBOSE GNUNET_YES | 31 | #define VERBOSE GNUNET_NO |
32 | 32 | ||
33 | #define MAX_GET_ATTEMPTS 10 | 33 | #define MAX_GET_ATTEMPTS 10 |
34 | 34 | ||
diff --git a/src/dht/test_dht_twopeer_data.conf b/src/dht/test_dht_twopeer_data.conf index ea90b3c00..5110b3001 100644 --- a/src/dht/test_dht_twopeer_data.conf +++ b/src/dht/test_dht_twopeer_data.conf | |||
@@ -2,7 +2,7 @@ | |||
2 | AUTOSTART = NO | 2 | AUTOSTART = NO |
3 | 3 | ||
4 | [dht] | 4 | [dht] |
5 | DEBUG = YES | 5 | DEBUG = NO |
6 | AUTOSTART = YES | 6 | AUTOSTART = YES |
7 | #PREFIX = xterm -T dht -e gdb --args | 7 | #PREFIX = xterm -T dht -e gdb --args |
8 | PORT = 2100 | 8 | PORT = 2100 |
diff --git a/src/dht/test_dht_twopeer_put_get.c b/src/dht/test_dht_twopeer_put_get.c index 9ff2ae18e..1aa83716b 100644 --- a/src/dht/test_dht_twopeer_put_get.c +++ b/src/dht/test_dht_twopeer_put_get.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include "gnunet_dht_service.h" | 42 | #include "gnunet_dht_service.h" |
43 | 43 | ||
44 | /* DEFINES */ | 44 | /* DEFINES */ |
45 | #define VERBOSE GNUNET_YES | 45 | #define VERBOSE GNUNET_NO |
46 | 46 | ||
47 | /* Timeout for entire testcase */ | 47 | /* Timeout for entire testcase */ |
48 | #define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5) | 48 | #define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5) |