diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-23 12:28:46 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-23 12:28:46 +0000 |
commit | fd26d1960a5a0d51f65738eb66aaeb7e19fbd8e8 (patch) | |
tree | 64a1f8210f23e3946d0d39fa455a7cbd44ae0770 /src | |
parent | bc24a8759374cbe7460700477e39e7d18f765f6b (diff) | |
download | gnunet-fd26d1960a5a0d51f65738eb66aaeb7e19fbd8e8.tar.gz gnunet-fd26d1960a5a0d51f65738eb66aaeb7e19fbd8e8.zip |
more test
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/Makefile.am | 25 | ||||
-rw-r--r-- | src/transport/test_plugin_transport_data.conf | 39 |
2 files changed, 55 insertions, 9 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 99fe2d936..7f13db342 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am | |||
@@ -12,6 +12,9 @@ if HAVE_MHD | |||
12 | GN_LIBMHD = -lmicrohttpd | 12 | GN_LIBMHD = -lmicrohttpd |
13 | HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la | 13 | HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la |
14 | HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la | 14 | HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la |
15 | |||
16 | HTTP_SERVER_PLUGIN_TEST = test_plugin_http_server | ||
17 | HTTPS_SERVER_PLUGIN_TEST = test_plugin_https_server | ||
15 | endif | 18 | endif |
16 | 19 | ||
17 | if HAVE_LIBCURL | 20 | if HAVE_LIBCURL |
@@ -300,6 +303,8 @@ check_PROGRAMS = \ | |||
300 | test_plugin_udp \ | 303 | test_plugin_udp \ |
301 | test_plugin_unix \ | 304 | test_plugin_unix \ |
302 | $(WLAN_PLUGIN_TEST) \ | 305 | $(WLAN_PLUGIN_TEST) \ |
306 | $(HTTP_SERVER_PLUGIN_TEST) \ | ||
307 | $(HTTPS_SERVER_PLUGIN_TEST) \ | ||
303 | test_transport_api_blacklisting \ | 308 | test_transport_api_blacklisting \ |
304 | test_transport_api_disconnect_tcp \ | 309 | test_transport_api_disconnect_tcp \ |
305 | test_transport_api_bidirectional_connect \ | 310 | test_transport_api_bidirectional_connect \ |
@@ -470,7 +475,7 @@ test_plugin_unix_LDADD = \ | |||
470 | $(top_builddir)/src/hello/libgnunethello.la \ | 475 | $(top_builddir)/src/hello/libgnunethello.la \ |
471 | $(top_builddir)/src/util/libgnunetutil.la \ | 476 | $(top_builddir)/src/util/libgnunetutil.la \ |
472 | $(top_builddir)/src/transport/libgnunettransporttesting.la | 477 | $(top_builddir)/src/transport/libgnunettransporttesting.la |
473 | 478 | ||
474 | test_plugin_wlan_SOURCES = \ | 479 | test_plugin_wlan_SOURCES = \ |
475 | test_plugin_transport.c | 480 | test_plugin_transport.c |
476 | test_plugin_wlan_LDADD = \ | 481 | test_plugin_wlan_LDADD = \ |
@@ -480,6 +485,24 @@ test_plugin_wlan_LDADD = \ | |||
480 | $(top_builddir)/src/util/libgnunetutil.la \ | 485 | $(top_builddir)/src/util/libgnunetutil.la \ |
481 | $(top_builddir)/src/transport/libgnunettransporttesting.la | 486 | $(top_builddir)/src/transport/libgnunettransporttesting.la |
482 | 487 | ||
488 | test_plugin_http_server_SOURCES = \ | ||
489 | test_plugin_transport.c | ||
490 | test_plugin_http_server_LDADD = \ | ||
491 | $(top_builddir)/src/transport/libgnunettransport.la \ | ||
492 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
493 | $(top_builddir)/src/hello/libgnunethello.la \ | ||
494 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
495 | $(top_builddir)/src/transport/libgnunettransporttesting.la | ||
496 | |||
497 | test_plugin_https_server_SOURCES = \ | ||
498 | test_plugin_transport.c | ||
499 | test_plugin_https_server_LDADD = \ | ||
500 | $(top_builddir)/src/transport/libgnunettransport.la \ | ||
501 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
502 | $(top_builddir)/src/hello/libgnunethello.la \ | ||
503 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
504 | $(top_builddir)/src/transport/libgnunettransporttesting.la | ||
505 | |||
483 | test_transport_api_tcp_SOURCES = \ | 506 | test_transport_api_tcp_SOURCES = \ |
484 | test_transport_api.c | 507 | test_transport_api.c |
485 | test_transport_api_tcp_LDADD = \ | 508 | test_transport_api_tcp_LDADD = \ |
diff --git a/src/transport/test_plugin_transport_data.conf b/src/transport/test_plugin_transport_data.conf index adc7a59bf..bc9a9271e 100644 --- a/src/transport/test_plugin_transport_data.conf +++ b/src/transport/test_plugin_transport_data.conf | |||
@@ -4,22 +4,45 @@ SERVICEHOME = /tmp/test-gnunetd-plugin-transport/ | |||
4 | DEFAULTCONFIG = test_plugin_transport_data.conf | 4 | DEFAULTCONFIG = test_plugin_transport_data.conf |
5 | 5 | ||
6 | [transport-tcp] | 6 | [transport-tcp] |
7 | PORT = 2368 | 7 | PORT = 2400 |
8 | TIMEOUT = 5 s | 8 | |
9 | [transport-udp] | ||
10 | PORT = 2401 | ||
11 | |||
12 | [transport-unix] | ||
13 | |||
14 | [transport-wlan] | ||
15 | |||
16 | [transport-http_client] | ||
17 | |||
18 | [transport-http_server] | ||
19 | PORT = 2402 | ||
20 | |||
21 | [transport-https_client] | ||
22 | |||
23 | [transport-https_server] | ||
24 | PORT = 2403 | ||
9 | 25 | ||
10 | [arm] | 26 | [arm] |
11 | PORT = 2366 | 27 | PORT = 2360 |
28 | UNIXPATH = /tmp/gnunet-service-arm.sock | ||
12 | 29 | ||
13 | [statistics] | 30 | [statistics] |
14 | PORT = 2367 | 31 | PORT = 2361 |
32 | UNIXPATH = /tmp/gnunet-service-statistics.sock | ||
15 | 33 | ||
16 | [resolver] | 34 | [resolver] |
17 | PORT = 2364 | 35 | PORT = 2362 |
36 | UNIXPATH = /tmp/gnunet-service-resolver.sock | ||
18 | 37 | ||
19 | [peerinfo] | 38 | [peerinfo] |
20 | PORT = 2369 | 39 | PORT = 2363 |
40 | UNIXPATH = /tmp/gnunet-service-peerinfo.sock | ||
21 | 41 | ||
22 | [transport] | 42 | [transport] |
23 | PORT = 2365 | 43 | PORT = 2364 |
24 | 44 | UNIXPATH = /tmp/gnunet-service-transport.sock | |
25 | 45 | ||
46 | [nat] | ||
47 | RETURN_LOCAL_ADDRESSES = YES | ||
48 | DISABLEV6 = NO | ||