diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-28 16:47:02 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-28 16:47:02 +0000 |
commit | 949f21f03df9f08b0a73c3e47a798e63790edf7f (patch) | |
tree | 52f56432e08a0b83cfc155e1af45e1587d32073d /src/fs | |
parent | 8f8e6a5bb1ccbb7d1311332ec1cc3a340bdd621f (diff) | |
download | gnunet-949f21f03df9f08b0a73c3e47a798e63790edf7f.tar.gz gnunet-949f21f03df9f08b0a73c3e47a798e63790edf7f.zip |
provide how many links succeeded and how many failed in test master callback
from GNUNET_TESTBED_run() and GNUNET_TESTBED_test_run() functions
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/gnunet-fs-profiler.c | 9 | ||||
-rw-r--r-- | src/fs/perf_gnunet_service_fs_p2p.c | 4 | ||||
-rw-r--r-- | src/fs/perf_gnunet_service_fs_p2p_respect.c | 4 | ||||
-rw-r--r-- | src/fs/test_fs_test_lib.c | 8 | ||||
-rw-r--r-- | src/fs/test_gnunet_service_fs_migration.c | 4 | ||||
-rw-r--r-- | src/fs/test_gnunet_service_fs_p2p.c | 4 |
6 files changed, 27 insertions, 6 deletions
diff --git a/src/fs/gnunet-fs-profiler.c b/src/fs/gnunet-fs-profiler.c index aeb84315a..9bc3ff253 100644 --- a/src/fs/gnunet-fs-profiler.c +++ b/src/fs/gnunet-fs-profiler.c | |||
@@ -130,9 +130,16 @@ terminate_task (void *cls, | |||
130 | * @param cls closure | 130 | * @param cls closure |
131 | * @param num_peers number of peers in 'peers' | 131 | * @param num_peers number of peers in 'peers' |
132 | * @param peers handle to peers run in the testbed | 132 | * @param peers handle to peers run in the testbed |
133 | * @param links_succeeded the number of overlay link connection attempts that | ||
134 | * succeeded | ||
135 | * @param links_failed the number of overlay link connection attempts that | ||
136 | * failed | ||
133 | */ | 137 | */ |
134 | static void | 138 | static void |
135 | test_master (void *cls, unsigned int num_peers, struct GNUNET_TESTBED_Peer **peers) | 139 | test_master (void *cls, unsigned int num_peers, |
140 | struct GNUNET_TESTBED_Peer **peers, | ||
141 | unsigned int links_succeeded, | ||
142 | unsigned int links_failed) | ||
136 | { | 143 | { |
137 | // const struct GNUNET_CONFIGURATION_Handle *cfg = cls; | 144 | // const struct GNUNET_CONFIGURATION_Handle *cfg = cls; |
138 | // FIXME: enable clients to signal 'completion' before timeout; | 145 | // FIXME: enable clients to signal 'completion' before timeout; |
diff --git a/src/fs/perf_gnunet_service_fs_p2p.c b/src/fs/perf_gnunet_service_fs_p2p.c index 89db80c0b..3a6b9fd03 100644 --- a/src/fs/perf_gnunet_service_fs_p2p.c +++ b/src/fs/perf_gnunet_service_fs_p2p.c | |||
@@ -306,7 +306,9 @@ do_download (void *cls, | |||
306 | static void | 306 | static void |
307 | do_publish (void *cls, | 307 | do_publish (void *cls, |
308 | unsigned int num_peers, | 308 | unsigned int num_peers, |
309 | struct GNUNET_TESTBED_Peer **peers) | 309 | struct GNUNET_TESTBED_Peer **peers, |
310 | unsigned int links_succeeded, | ||
311 | unsigned int links_failed) | ||
310 | { | 312 | { |
311 | unsigned int i; | 313 | unsigned int i; |
312 | int do_index; | 314 | int do_index; |
diff --git a/src/fs/perf_gnunet_service_fs_p2p_respect.c b/src/fs/perf_gnunet_service_fs_p2p_respect.c index 0a5dc0578..35425a253 100644 --- a/src/fs/perf_gnunet_service_fs_p2p_respect.c +++ b/src/fs/perf_gnunet_service_fs_p2p_respect.c | |||
@@ -435,7 +435,9 @@ do_publish1 (void *cls, | |||
435 | static void | 435 | static void |
436 | do_connect (void *cls, | 436 | do_connect (void *cls, |
437 | unsigned int num_peers, | 437 | unsigned int num_peers, |
438 | struct GNUNET_TESTBED_Peer **peers) | 438 | struct GNUNET_TESTBED_Peer **peers, |
439 | unsigned int links_succeeded, | ||
440 | unsigned int links_failed) | ||
439 | { | 441 | { |
440 | static unsigned int coco; | 442 | static unsigned int coco; |
441 | unsigned int i; | 443 | unsigned int i; |
diff --git a/src/fs/test_fs_test_lib.c b/src/fs/test_fs_test_lib.c index 2fe5a8140..81625030d 100644 --- a/src/fs/test_fs_test_lib.c +++ b/src/fs/test_fs_test_lib.c | |||
@@ -117,11 +117,17 @@ do_publish (void *cls, | |||
117 | * @param cls closure | 117 | * @param cls closure |
118 | * @param num_peers number of peers in 'peers' | 118 | * @param num_peers number of peers in 'peers' |
119 | * @param peers handle to peers run in the testbed | 119 | * @param peers handle to peers run in the testbed |
120 | * @param links_succeeded the number of overlay link connection attempts that | ||
121 | * succeeded | ||
122 | * @param links_failed the number of overlay link connection attempts that | ||
123 | * failed | ||
120 | */ | 124 | */ |
121 | static void | 125 | static void |
122 | run (void *cls, | 126 | run (void *cls, |
123 | unsigned int num_peers, | 127 | unsigned int num_peers, |
124 | struct GNUNET_TESTBED_Peer **peers) | 128 | struct GNUNET_TESTBED_Peer **peers, |
129 | unsigned int links_succeeded, | ||
130 | unsigned int links_failed) | ||
125 | { | 131 | { |
126 | unsigned int i; | 132 | unsigned int i; |
127 | 133 | ||
diff --git a/src/fs/test_gnunet_service_fs_migration.c b/src/fs/test_gnunet_service_fs_migration.c index 29129a580..138e35c47 100644 --- a/src/fs/test_gnunet_service_fs_migration.c +++ b/src/fs/test_gnunet_service_fs_migration.c | |||
@@ -162,7 +162,9 @@ do_wait (void *cls, const struct GNUNET_FS_Uri *uri, | |||
162 | static void | 162 | static void |
163 | do_publish (void *cls, | 163 | do_publish (void *cls, |
164 | unsigned int num_peers, | 164 | unsigned int num_peers, |
165 | struct GNUNET_TESTBED_Peer **peers) | 165 | struct GNUNET_TESTBED_Peer **peers, |
166 | unsigned int links_succeeded, | ||
167 | unsigned int links_failed) | ||
166 | { | 168 | { |
167 | unsigned int i; | 169 | unsigned int i; |
168 | 170 | ||
diff --git a/src/fs/test_gnunet_service_fs_p2p.c b/src/fs/test_gnunet_service_fs_p2p.c index d293bd66d..108b4e6c9 100644 --- a/src/fs/test_gnunet_service_fs_p2p.c +++ b/src/fs/test_gnunet_service_fs_p2p.c | |||
@@ -115,7 +115,9 @@ do_download (void *cls, const struct GNUNET_FS_Uri *uri, | |||
115 | static void | 115 | static void |
116 | do_publish (void *cls, | 116 | do_publish (void *cls, |
117 | unsigned int num_peers, | 117 | unsigned int num_peers, |
118 | struct GNUNET_TESTBED_Peer **peers) | 118 | struct GNUNET_TESTBED_Peer **peers, |
119 | unsigned int links_succeeded, | ||
120 | unsigned int links_failed) | ||
119 | { | 121 | { |
120 | unsigned int i; | 122 | unsigned int i; |
121 | 123 | ||