diff options
Diffstat (limited to 'src/transport/test_transport_plugin_cmd_udp_backchannel.c')
-rw-r--r-- | src/transport/test_transport_plugin_cmd_udp_backchannel.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/transport/test_transport_plugin_cmd_udp_backchannel.c b/src/transport/test_transport_plugin_cmd_udp_backchannel.c index f3afbec48..db320844f 100644 --- a/src/transport/test_transport_plugin_cmd_udp_backchannel.c +++ b/src/transport/test_transport_plugin_cmd_udp_backchannel.c | |||
@@ -25,6 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_testing_ng_lib.h" | 27 | #include "gnunet_testing_ng_lib.h" |
28 | #include "gnunet_testing_netjail_lib.h" | ||
28 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
29 | #include "gnunet_transport_application_service.h" | 30 | #include "gnunet_transport_application_service.h" |
30 | #include "transport-testing2.h" | 31 | #include "transport-testing2.h" |
@@ -207,7 +208,9 @@ start_testcase (TESTING_CMD_HELPER_write_cb write_message, char *router_ip, | |||
207 | char *node_ip, | 208 | char *node_ip, |
208 | char *m, | 209 | char *m, |
209 | char *n, | 210 | char *n, |
210 | char *local_m) | 211 | char *local_m, |
212 | char *topology_data, | ||
213 | unsigned int *read_file) | ||
211 | { | 214 | { |
212 | 215 | ||
213 | unsigned int n_int; | 216 | unsigned int n_int; |
@@ -216,8 +219,12 @@ start_testcase (TESTING_CMD_HELPER_write_cb write_message, char *router_ip, | |||
216 | unsigned int num; | 219 | unsigned int num; |
217 | struct TestState *ts = GNUNET_new (struct TestState); | 220 | struct TestState *ts = GNUNET_new (struct TestState); |
218 | 221 | ||
219 | struct GNUNET_TESTING_NetjailTopology *topology = | 222 | struct GNUNET_TESTING_NetjailTopology *topology; |
220 | GNUNET_TESTING_get_topo_from_file (TOPOLOGY_CONFIG); | 223 | |
224 | if (GNUNET_YES == *read_file) | ||
225 | topology = GNUNET_TESTING_get_topo_from_file (topology_data); | ||
226 | else | ||
227 | topology = GNUNET_TESTING_get_topo_from_string (topology_data); | ||
221 | 228 | ||
222 | ts->topology = topology; | 229 | ts->topology = topology; |
223 | 230 | ||