aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-08-23 12:28:46 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-08-23 12:28:46 +0000
commitfd26d1960a5a0d51f65738eb66aaeb7e19fbd8e8 (patch)
tree64a1f8210f23e3946d0d39fa455a7cbd44ae0770 /src
parentbc24a8759374cbe7460700477e39e7d18f765f6b (diff)
downloadgnunet-fd26d1960a5a0d51f65738eb66aaeb7e19fbd8e8.tar.gz
gnunet-fd26d1960a5a0d51f65738eb66aaeb7e19fbd8e8.zip
more test
Diffstat (limited to 'src')
-rw-r--r--src/transport/Makefile.am25
-rw-r--r--src/transport/test_plugin_transport_data.conf39
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
15endif 18endif
16 19
17if HAVE_LIBCURL 20if 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
474test_plugin_wlan_SOURCES = \ 479test_plugin_wlan_SOURCES = \
475 test_plugin_transport.c 480 test_plugin_transport.c
476test_plugin_wlan_LDADD = \ 481test_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
488test_plugin_http_server_SOURCES = \
489 test_plugin_transport.c
490test_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
497test_plugin_https_server_SOURCES = \
498 test_plugin_transport.c
499test_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
483test_transport_api_tcp_SOURCES = \ 506test_transport_api_tcp_SOURCES = \
484 test_transport_api.c 507 test_transport_api.c
485test_transport_api_tcp_LDADD = \ 508test_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/
4DEFAULTCONFIG = test_plugin_transport_data.conf 4DEFAULTCONFIG = test_plugin_transport_data.conf
5 5
6[transport-tcp] 6[transport-tcp]
7PORT = 2368 7PORT = 2400
8TIMEOUT = 5 s 8
9[transport-udp]
10PORT = 2401
11
12[transport-unix]
13
14[transport-wlan]
15
16[transport-http_client]
17
18[transport-http_server]
19PORT = 2402
20
21[transport-https_client]
22
23[transport-https_server]
24PORT = 2403
9 25
10[arm] 26[arm]
11PORT = 2366 27PORT = 2360
28UNIXPATH = /tmp/gnunet-service-arm.sock
12 29
13[statistics] 30[statistics]
14PORT = 2367 31PORT = 2361
32UNIXPATH = /tmp/gnunet-service-statistics.sock
15 33
16[resolver] 34[resolver]
17PORT = 2364 35PORT = 2362
36UNIXPATH = /tmp/gnunet-service-resolver.sock
18 37
19[peerinfo] 38[peerinfo]
20PORT = 2369 39PORT = 2363
40UNIXPATH = /tmp/gnunet-service-peerinfo.sock
21 41
22[transport] 42[transport]
23PORT = 2365 43PORT = 2364
24 44UNIXPATH = /tmp/gnunet-service-transport.sock
25 45
46[nat]
47RETURN_LOCAL_ADDRESSES = YES
48DISABLEV6 = NO