aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-06-18 02:24:56 +0000
committerChristian Grothoff <christian@grothoff.org>2009-06-18 02:24:56 +0000
commit0b6c058aa9ede0cbd012d6aaf4969de53244fad2 (patch)
tree33fd077161032f9623839bbfb6b9464149f1ac65
parentd5e417f094cac294282deafe46409342796263c6 (diff)
downloadgnunet-0b6c058aa9ede0cbd012d6aaf4969de53244fad2.tar.gz
gnunet-0b6c058aa9ede0cbd012d6aaf4969de53244fad2.zip
fix
-rw-r--r--src/include/gnunet_testing_lib.h69
-rw-r--r--src/testing/testing.c34
-rw-r--r--src/testing/testing_testbed.c10
3 files changed, 48 insertions, 65 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h
index f0e7d34a0..459e43314 100644
--- a/src/include/gnunet_testing_lib.h
+++ b/src/include/gnunet_testing_lib.h
@@ -144,6 +144,41 @@ void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1,
144 * @param cbe function to call at the end 144 * @param cbe function to call at the end
145 * @param cbe_cls closure for cbe 145 * @param cbe_cls closure for cbe
146 * @param hostname where to run the peers; can be NULL (to run 146 * @param hostname where to run the peers; can be NULL (to run
147 * everything on localhost).
148 * @param va Additional hosts can be specified using a NULL-terminated list of
149 * varargs, hosts will then be used round-robin from that
150 * list; va only contains anything if hostname != NULL.
151 */
152void
153GNUNET_TESTING_daemons_start_Va (struct GNUNET_SCHEDULER_Handle *sched,
154 struct GNUNET_CONFIGURATION_Handle *cfg,
155 unsigned int total,
156 const char *service_home_prefix,
157 const char *transports,
158 const char *applications,
159 GNUNET_TESTING_NotifyDaemonRunning cb,
160 void *cb_cls,
161 GNUNET_TESTING_NotifyCompletion cbe,
162 void *cbe_cls,
163 const char *hostname,
164 va_list va);
165
166/**
167 * Start count gnunetd processes with the same set of
168 * transports and applications. The port numbers will
169 * be computed by adding delta each time (zero
170 * times for the first peer).
171 *
172 * @param total number of daemons to start
173 * @param service_home_prefix path to use as the prefix for the home of the services
174 * @param transports which transports should all peers use
175 * @param applications which applications should be used?
176 * @param timeout how long is this allowed to take?
177 * @param cb function to call on each daemon that was started
178 * @param cb_cls closure for cb
179 * @param cbe function to call at the end
180 * @param cbe_cls closure for cbe
181 * @param hostname where to run the peers; can be NULL (to run
147 * everything on localhost). Additional 182 * everything on localhost). Additional
148 * hosts can be specified using a NULL-terminated list of 183 * hosts can be specified using a NULL-terminated list of
149 * varargs, hosts will then be used round-robin from that 184 * varargs, hosts will then be used round-robin from that
@@ -254,40 +289,6 @@ GNUNET_TESTING_testbed_start (struct GNUNET_SCHEDULER_Handle *sched,
254 ...); 289 ...);
255 290
256 291
257/**
258 * Start count GNUnet daemons with a particular
259 * topology.
260 *
261 * @param size number of peers the testbed should have
262 * @param topology desired topology (enforced via F2F)
263 * @param service_home_prefix path to use as the prefix for the home of the services
264 * @param transports which transports should all peers use
265 * @param applications which applications should be used?
266 * @param timeout how long is this allowed to take?
267 * @param cb function to call on each daemon that was started
268 * @param cb_cls closure for cb
269 * @param cte function to call at the end
270 * @param cte_cls closure for cbe
271 * @param hostname where to run the peers; can be NULL (to run
272 * everything on localhost).
273 * @param va Additional hosts can be specified using a NULL-terminated list of
274 * varargs, hosts will then be used round-robin from that
275 * list; va only contains anything if hostname != NULL.
276 */
277void
278GNUNET_TESTING_testbed_start_va (struct GNUNET_SCHEDULER_Handle *sched,
279 struct GNUNET_CONFIGURATION_Handle *cfg,
280 unsigned int size,
281 enum GNUNET_TESTING_Topology topology,
282 const char *service_home_prefix,
283 const char *transports,
284 const char *applications,
285 GNUNET_TESTING_NotifyDaemonRunning cb,
286 void *cb_cls,
287 GNUNET_TESTING_NotifyTestbedRunning cte,
288 void *cte_cls,
289 const char *hostname,
290 va_list ap);
291 292
292 293
293/** 294/**
diff --git a/src/testing/testing.c b/src/testing/testing.c
index a91902423..5d928665e 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -99,19 +99,20 @@ void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1,
99 99
100 100
101/** 101/**
102 * Start count GNUnet daemons with a particular 102 * Start count gnunetd processes with the same set of
103 * topology. 103 * transports and applications. The port numbers will
104 * be computed by adding delta each time (zero
105 * times for the first peer).
104 * 106 *
105 * @param size number of peers the testbed should have 107 * @param total number of daemons to start
106 * @param topology desired topology (enforced via F2F)
107 * @param service_home_prefix path to use as the prefix for the home of the services 108 * @param service_home_prefix path to use as the prefix for the home of the services
108 * @param transports which transports should all peers use 109 * @param transports which transports should all peers use
109 * @param applications which applications should be used? 110 * @param applications which applications should be used?
110 * @param timeout how long is this allowed to take? 111 * @param timeout how long is this allowed to take?
111 * @param cb function to call on each daemon that was started 112 * @param cb function to call on each daemon that was started
112 * @param cb_cls closure for cb 113 * @param cb_cls closure for cb
113 * @param cte function to call at the end 114 * @param cbe function to call at the end
114 * @param cte_cls closure for cbe 115 * @param cbe_cls closure for cbe
115 * @param hostname where to run the peers; can be NULL (to run 116 * @param hostname where to run the peers; can be NULL (to run
116 * everything on localhost). 117 * everything on localhost).
117 * @param va Additional hosts can be specified using a NULL-terminated list of 118 * @param va Additional hosts can be specified using a NULL-terminated list of
@@ -119,19 +120,18 @@ void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1,
119 * list; va only contains anything if hostname != NULL. 120 * list; va only contains anything if hostname != NULL.
120 */ 121 */
121void 122void
122GNUNET_TESTING_testbed_start_va (struct GNUNET_SCHEDULER_Handle *sched, 123GNUNET_TESTING_daemons_start_va (struct GNUNET_SCHEDULER_Handle *sched,
123 struct GNUNET_CONFIGURATION_Handle *cfg, 124 struct GNUNET_CONFIGURATION_Handle *cfg,
124 unsigned int size, 125 unsigned int total,
125 enum GNUNET_TESTING_Topology topology,
126 const char *service_home_prefix, 126 const char *service_home_prefix,
127 const char *transports, 127 const char *transports,
128 const char *applications, 128 const char *applications,
129 GNUNET_TESTING_NotifyDaemonRunning cb, 129 GNUNET_TESTING_NotifyDaemonRunning cb,
130 void *cb_cls, 130 void *cb_cls,
131 GNUNET_TESTING_NotifyTestbedRunning cte, 131 GNUNET_TESTING_NotifyCompletion cbe,
132 void *cte_cls, 132 void *cbe_cls,
133 const char *hostname, 133 const char *hostname,
134 va_list ap) 134 va_list va)
135{ 135{
136} 136}
137 137
@@ -182,12 +182,4 @@ GNUNET_TESTING_daemons_start (struct GNUNET_SCHEDULER_Handle *sched,
182 va_end (va); 182 va_end (va);
183} 183}
184 184
185 185/* end of testing.c */
186#if 0 /* keep Emacsens' auto-indent happy */
187{
188#endif
189#ifdef __cplusplus
190}
191#endif
192
193#endif
diff --git a/src/testing/testing_testbed.c b/src/testing/testing_testbed.c
index 4bf89e5c1..c80a3dcd6 100644
--- a/src/testing/testing_testbed.c
+++ b/src/testing/testing_testbed.c
@@ -122,13 +122,3 @@ GNUNET_TESTING_testbed_churn (struct GNUNET_TESTING_Testbed *tb,
122 void *cb_cls) 122 void *cb_cls)
123{ 123{
124} 124}
125
126
127#if 0 /* keep Emacsens' auto-indent happy */
128{
129#endif
130#ifdef __cplusplus
131}
132#endif
133
134#endif