diff options
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r-- | src/transport/test_transport_api.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index c115d1e5d..2d0b42008 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include "gnunet_transport_service.h" | 36 | #include "gnunet_transport_service.h" |
37 | #include "transport.h" | 37 | #include "transport.h" |
38 | 38 | ||
39 | #define VERBOSE GNUNET_NO | 39 | #define VERBOSE GNUNET_YES |
40 | 40 | ||
41 | #define VERBOSE_ARM GNUNET_NO | 41 | #define VERBOSE_ARM GNUNET_NO |
42 | 42 | ||
@@ -84,6 +84,8 @@ static int is_https; | |||
84 | 84 | ||
85 | static int is_multi_protocol; | 85 | static int is_multi_protocol; |
86 | 86 | ||
87 | static int is_wlan; | ||
88 | |||
87 | static GNUNET_SCHEDULER_TaskIdentifier die_task; | 89 | static GNUNET_SCHEDULER_TaskIdentifier die_task; |
88 | 90 | ||
89 | static char * key_file_p1; | 91 | static char * key_file_p1; |
@@ -397,6 +399,11 @@ run (void *cls, | |||
397 | setup_peer (&p1, "test_transport_api_https_peer1.conf"); | 399 | setup_peer (&p1, "test_transport_api_https_peer1.conf"); |
398 | setup_peer (&p2, "test_transport_api_https_peer2.conf"); | 400 | setup_peer (&p2, "test_transport_api_https_peer2.conf"); |
399 | } | 401 | } |
402 | else if (is_wlan) | ||
403 | { | ||
404 | setup_peer (&p1, "test_transport_api_wlan_peer1.conf"); | ||
405 | setup_peer (&p2, "test_transport_api_wlan_peer2.conf"); | ||
406 | } | ||
400 | GNUNET_assert(p1.th != NULL); | 407 | GNUNET_assert(p1.th != NULL); |
401 | GNUNET_assert(p2.th != NULL); | 408 | GNUNET_assert(p2.th != NULL); |
402 | 409 | ||
@@ -635,12 +642,15 @@ main (int argc, char *argv[]) | |||
635 | { | 642 | { |
636 | is_http = GNUNET_YES; | 643 | is_http = GNUNET_YES; |
637 | } | 644 | } |
645 | else if (strstr(argv[0], "wlan") != NULL) | ||
646 | { | ||
647 | is_wlan = GNUNET_YES; | ||
648 | } | ||
638 | else if (strstr(argv[0], "multi") != NULL) | 649 | else if (strstr(argv[0], "multi") != NULL) |
639 | { | 650 | { |
640 | is_multi_protocol = GNUNET_YES; | 651 | is_multi_protocol = GNUNET_YES; |
641 | } | 652 | } |
642 | 653 | ||
643 | |||
644 | ret = check (); | 654 | ret = check (); |
645 | if (is_multi_protocol) | 655 | if (is_multi_protocol) |
646 | { | 656 | { |