diff options
Diffstat (limited to 'src/transport/transport-testing-cmds.h')
-rw-r--r-- | src/transport/transport-testing-cmds.h | 72 |
1 files changed, 69 insertions, 3 deletions
diff --git a/src/transport/transport-testing-cmds.h b/src/transport/transport-testing-cmds.h index ecdabd35f..67e5723f5 100644 --- a/src/transport/transport-testing-cmds.h +++ b/src/transport/transport-testing-cmds.h | |||
@@ -228,22 +228,36 @@ GNUNET_TRANSPORT_cmd_start_peer (const char *label, | |||
228 | struct GNUNET_MQ_MessageHandler *handlers, | 228 | struct GNUNET_MQ_MessageHandler *handlers, |
229 | const char *cfgname); | 229 | const char *cfgname); |
230 | 230 | ||
231 | |||
231 | struct GNUNET_TESTING_Command | 232 | struct GNUNET_TESTING_Command |
232 | GNUNET_TRANSPORT_cmd_stop_peer (const char *label, | 233 | GNUNET_TRANSPORT_cmd_stop_peer (const char *label, |
233 | const char *start_label); | 234 | const char *start_label); |
234 | 235 | ||
236 | |||
235 | struct GNUNET_TESTING_Command | 237 | struct GNUNET_TESTING_Command |
236 | GNUNET_TRANSPORT_cmd_connect_peers (const char *label, | 238 | GNUNET_TRANSPORT_cmd_connect_peers (const char *label, |
237 | const char *start_peer_label, | 239 | const char *start_peer_label, |
238 | const char *create_label, | 240 | const char *create_label, |
239 | uint32_t num); | 241 | uint32_t num); |
240 | 242 | ||
243 | |||
241 | struct GNUNET_TESTING_Command | 244 | struct GNUNET_TESTING_Command |
242 | GNUNET_TRANSPORT_cmd_connect_peers_v2 (const char *label, | 245 | GNUNET_TRANSPORT_cmd_connect_peers_v2 (const char *label, |
243 | const char *start_peer_label, | 246 | const char *start_peer_label, |
244 | const char *create_label, | 247 | const char *create_label, |
245 | uint32_t num); | 248 | uint32_t num); |
246 | 249 | ||
250 | |||
251 | /** | ||
252 | * Create command. | ||
253 | * | ||
254 | * @param label name for command. | ||
255 | * @param start_peer_label Label of the cmd to start a peer. | ||
256 | * @param create_label Label of the cmd to create the testing system. | ||
257 | * @param num Number globally identifying the node. | ||
258 | * @param The topology for the test setup. | ||
259 | * @return command. | ||
260 | */ | ||
247 | struct GNUNET_TESTING_Command | 261 | struct GNUNET_TESTING_Command |
248 | GNUNET_TRANSPORT_cmd_connect_peers_v3 (const char *label, | 262 | GNUNET_TRANSPORT_cmd_connect_peers_v3 (const char *label, |
249 | const char *start_peer_label, | 263 | const char *start_peer_label, |
@@ -252,6 +266,40 @@ GNUNET_TRANSPORT_cmd_connect_peers_v3 (const char *label, | |||
252 | struct GNUNET_TESTING_NetjailTopology * | 266 | struct GNUNET_TESTING_NetjailTopology * |
253 | topology); | 267 | topology); |
254 | 268 | ||
269 | |||
270 | /** | ||
271 | * Create command. | ||
272 | * | ||
273 | * @param label name for command. | ||
274 | * @param start_peer_label Label of the cmd to start a peer. | ||
275 | * @param create_label Label of the cmd to create the testing system. | ||
276 | * @param num Number globally identifying the node. | ||
277 | * @param node_n The number of the node in a network namespace. | ||
278 | * @param namespace_n The number of the network namespace. | ||
279 | * @param The topology for the test setup. | ||
280 | * @return command. | ||
281 | */ | ||
282 | struct GNUNET_TESTING_Command | ||
283 | GNUNET_TRANSPORT_cmd_backchannel_check (const char *label, | ||
284 | const char *start_peer_label, | ||
285 | const char *create_label, | ||
286 | uint32_t num, | ||
287 | unsigned int node_n, | ||
288 | unsigned int namespace_n, | ||
289 | struct GNUNET_TESTING_NetjailTopology * | ||
290 | topology); | ||
291 | |||
292 | |||
293 | /** | ||
294 | * Create command. | ||
295 | * | ||
296 | * @param label name for command. | ||
297 | * @param m The number of the local node of the actual network namespace. | ||
298 | * @param n The number of the actual namespace. | ||
299 | * @param num Number globally identifying the node. | ||
300 | * @param start_peer_label Label of the cmd to start a peer. | ||
301 | * @return command. | ||
302 | */ | ||
255 | struct GNUNET_TESTING_Command | 303 | struct GNUNET_TESTING_Command |
256 | GNUNET_TRANSPORT_cmd_send_simple (const char *label, | 304 | GNUNET_TRANSPORT_cmd_send_simple (const char *label, |
257 | char *m, | 305 | char *m, |
@@ -263,10 +311,8 @@ GNUNET_TRANSPORT_cmd_send_simple (const char *label, | |||
263 | * Create command. | 311 | * Create command. |
264 | * | 312 | * |
265 | * @param label name for command. | 313 | * @param label name for command. |
266 | * @param m The number of the local node of the actual network namespace. | ||
267 | * @param n The number of the actual namespace. | ||
268 | * @param num Number globally identifying the node. | ||
269 | * @param start_peer_label Label of the cmd to start a peer. | 314 | * @param start_peer_label Label of the cmd to start a peer. |
315 | * @param num Number globally identifying the node. | ||
270 | * @return command. | 316 | * @return command. |
271 | */ | 317 | */ |
272 | struct GNUNET_TESTING_Command | 318 | struct GNUNET_TESTING_Command |
@@ -274,6 +320,26 @@ GNUNET_TRANSPORT_cmd_send_simple_v2 (const char *label, | |||
274 | const char *start_peer_label, | 320 | const char *start_peer_label, |
275 | uint32_t num); | 321 | uint32_t num); |
276 | 322 | ||
323 | |||
324 | /** | ||
325 | * Create command. | ||
326 | * | ||
327 | * @param label name for command. | ||
328 | * @param start_peer_label Label of the cmd to start a peer. | ||
329 | * @param start_peer_label Label of the cmd which started the test system. | ||
330 | * @param num Number globally identifying the node. | ||
331 | * @param The topology for the test setup. | ||
332 | * @return command. | ||
333 | */ | ||
334 | struct GNUNET_TESTING_Command | ||
335 | GNUNET_TRANSPORT_cmd_send_simple_v3 (const char *label, | ||
336 | const char *start_peer_label, | ||
337 | const char *create_label, | ||
338 | uint32_t num, | ||
339 | struct GNUNET_TESTING_NetjailTopology * | ||
340 | topology); | ||
341 | |||
342 | |||
277 | int | 343 | int |
278 | GNUNET_TRANSPORT_get_trait_peer_id (const struct | 344 | GNUNET_TRANSPORT_get_trait_peer_id (const struct |
279 | GNUNET_TESTING_Command *cmd, | 345 | GNUNET_TESTING_Command *cmd, |