b04b54e7f3c4927acd71c1469c55dd7067d925ce
[oweals/gnunet.git] / src / transport / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
3
4 plugindir = $(libdir)/gnunet
5
6 pkgcfgdir= $(pkgdatadir)/config.d/
7
8 libexecdir= $(pkglibdir)/libexec/
9
10 pkgcfg_DATA = \
11   transport.conf
12
13 if HAVE_MHD
14  GN_LIBMHD = -lmicrohttpd
15  HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la
16  HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la
17  HTTP_SERVER_PLUGIN_TEST = test_plugin_http_server
18  HTTPS_SERVER_PLUGIN_TEST = test_plugin_https_server
19 endif
20
21 if HAVE_LIBGNURL
22  HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client
23  HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client
24  HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la
25  HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la
26 LIB_GNURL=@LIBGNURL@
27 CPP_GNURL=@LIBGNURL_CPPFLAGS@
28 else
29 if HAVE_LIBCURL
30  HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client
31  HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client
32  HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la
33  HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la
34 LIB_GNURL=@LIBCURL@
35 CPP_GNURL=@LIBCURL_CPPFLAGS@
36 endif
37 endif
38
39 if HAVE_MHD
40 if HAVE_LIBGNURL
41  HTTP_API_TEST = test_transport_api_http
42  HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
43  HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http
44  HTTP_REL_TEST = test_transport_api_reliability_http \
45                  test_transport_api_reliability_http_xhr
46  HTTP_QUOTA_TEST = test_quota_compliance_http \
47                    test_quota_compliance_http_asymmetric
48  HTTP_SWITCH = test_transport_address_switch_http
49  HTTPS_API_TEST = test_transport_api_https
50  HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
51  HTTPS_REL_TEST = test_transport_api_reliability_https \
52                   test_transport_api_reliability_https_xhr
53  HTTPS_QUOTA_TEST = test_quota_compliance_https \
54                 test_quota_compliance_https_asymmetric
55  HTTPS_SWITCH = test_transport_address_switch_https
56 else
57 if HAVE_LIBCURL
58  HTTP_API_TEST = test_transport_api_http
59  HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
60  HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http
61  HTTP_REL_TEST = test_transport_api_reliability_http \
62                  test_transport_api_reliability_http_xhr
63  HTTP_QUOTA_TEST = test_quota_compliance_http \
64                    test_quota_compliance_http_asymmetric
65  HTTP_SWITCH = test_transport_address_switch_http
66  HTTPS_API_TEST = test_transport_api_https
67  HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
68  HTTPS_REL_TEST = test_transport_api_reliability_https \
69                   test_transport_api_reliability_https_xhr
70  HTTPS_QUOTA_TEST = test_quota_compliance_https \
71                 test_quota_compliance_https_asymmetric
72  HTTPS_SWITCH = test_transport_address_switch_https
73 endif
74 endif
75 endif
76
77 if USE_COVERAGE
78   AM_CFLAGS = --coverage -O0
79 endif
80
81 if HAVE_EXPERIMENTAL
82 if LINUX
83  WLAN_BIN = gnunet-helper-transport-wlan
84  WLAN_BIN_DUMMY = gnunet-helper-transport-wlan-dummy
85  WLAN_BIN_SENDER = gnunet-transport-wlan-sender
86  WLAN_BIN_RECEIVER = gnunet-transport-wlan-receiver
87  WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
88  WLAN_PLUGIN_TEST = test_plugin_wlan
89  WLAN_API_TEST = test_transport_api_wlan
90  WLAN_TIMEOUT_TEST = test_transport_api_timeout_wlan
91  WLAN_REL_TEST = test_transport_api_reliability_wlan
92  WLAN_QUOTA_TEST = test_quota_compliance_wlan \
93                 test_quota_compliance_wlan_asymmetric
94 endif
95
96 if LINUX
97 install-exec-hook:
98         $(top_srcdir)/src/transport/install-wlan-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true
99 if HAVE_LIBBLUETOOTH
100         $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true
101 endif
102 else
103 install-exec-hook:
104 endif
105
106 if LINUX
107 if HAVE_LIBBLUETOOTH
108  BT_BIN = gnunet-helper-transport-bluetooth
109  BT_PLUGIN_LA = libgnunet_plugin_transport_bluetooth.la
110  BT_PLUGIN_TEST = test_plugin_bluetooth
111  BT_API_TEST = test_transport_api_bluetooth
112  BT_TIMEOUT_TEST = test_transport_api_timeout_bluetooth
113  BT_REL_TEST = test_transport_api_reliability_bluetooth
114  BT_QUOTA_TEST = test_quota_compliance_bluetooth \
115     test_quota_compliance_bluetooth_asymmetric
116 endif
117 else
118 if MINGW
119  BT_BIN = gnunet-helper-transport-bluetooth
120  BT_PLUGIN_LA = libgnunet_plugin_transport_bluetooth.la
121 endif
122 endif
123
124 # end of HAVE_EXPERIMENTAL
125 endif
126
127
128 if !MINGW
129 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
130 UNIX_PLUGIN_TEST = test_transport_api_unix
131 UNIX_TEST = test_plugin_unix
132 UNIX_PLUGIN_TIMEOUT_TEST = test_transport_api_timeout_unix
133 UNIX_REL_TEST = test_transport_api_reliability_unix
134 UNIX_QUOTA_TEST = test_quota_compliance_unix \
135      test_quota_compliance_unix_asymmetric
136 if LINUX
137  UNIX_API_ABSTRACT_TEST = test_transport_api_unix_abstract
138 endif
139 endif
140
141 noinst_PROGRAMS = \
142  gnunet-transport-profiler \
143  $(WLAN_BIN_SENDER) \
144  $(WLAN_BIN_RECEIVER)
145
146 if HAVE_TESTING
147 TESTING_LIBS = libgnunettransporttesting.la
148 endif
149
150 lib_LTLIBRARIES = \
151   libgnunettransport.la \
152   $(TESTING_LIBS)
153
154 libgnunettransporttesting_la_SOURCES = \
155   transport-testing.c transport-testing.h \
156   transport-testing-filenames.c \
157   transport-testing-loggers.c \
158   transport-testing-main.c \
159   transport-testing-send.c
160 libgnunettransporttesting_la_LIBADD = \
161   libgnunettransport.la \
162   $(top_builddir)/src/hello/libgnunethello.la \
163   $(top_builddir)/src/ats/libgnunetats.la \
164   $(top_builddir)/src/util/libgnunetutil.la \
165   $(top_builddir)/src/testing/libgnunettesting.la \
166   $(GN_LIBINTL)
167 libgnunettransporttesting_la_LDFLAGS = \
168  $(GN_LIB_LDFLAGS)
169
170 libgnunettransport_la_SOURCES = \
171   transport.h \
172   transport_api_address_to_string.c \
173   transport_api_blacklist.c \
174   transport_api_core.c \
175   transport_api_hello_get.c \
176   transport_api_manipulation.c \
177   transport_api_monitor_peers.c \
178   transport_api_monitor_plugins.c \
179   transport_api_offer_hello.c
180
181 libgnunettransport_la_LIBADD = \
182   $(top_builddir)/src/hello/libgnunethello.la \
183   $(top_builddir)/src/ats/libgnunetats.la \
184   $(top_builddir)/src/util/libgnunetutil.la \
185   $(GN_LIBINTL)
186 libgnunettransport_la_LDFLAGS = \
187   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
188   -version-info 4:0:2
189
190 libexec_PROGRAMS = \
191  $(WLAN_BIN) \
192  $(WLAN_BIN_DUMMY) \
193  $(BT_BIN) \
194  gnunet-service-transport
195
196
197
198 bin_PROGRAMS = \
199  gnunet-transport \
200  gnunet-transport-certificate-creation
201
202 #bin_SCRIPTS = \
203 # gnunet-transport-certificate-creation
204
205 gnunet_transport_certificate_creation_SOURCES = \
206  gnunet-transport-certificate-creation.c
207 gnunet_transport_certificate_creation_LDADD = \
208   $(top_builddir)/src/util/libgnunetutil.la
209
210 gnunet_helper_transport_wlan_SOURCES = \
211  gnunet-helper-transport-wlan.c
212
213 gnunet_helper_transport_wlan_dummy_SOURCES = \
214  gnunet-helper-transport-wlan-dummy.c
215 gnunet_helper_transport_wlan_dummy_LDADD = \
216   $(top_builddir)/src/util/libgnunetutil.la
217
218 gnunet_transport_wlan_sender_SOURCES = \
219  gnunet-transport-wlan-sender.c
220 gnunet_transport_wlan_sender_LDADD = \
221   $(top_builddir)/src/util/libgnunetutil.la
222
223 gnunet_transport_wlan_receiver_SOURCES = \
224  gnunet-transport-wlan-receiver.c
225 gnunet_transport_wlan_receiver_LDADD = \
226   $(top_builddir)/src/util/libgnunetutil.la
227
228 gnunet_helper_transport_bluetooth_SOURCES = \
229  gnunet-helper-transport-bluetooth.c
230 if MINGW
231  gnunet_helper_transport_bluetooth_LDADD = \
232   $(top_builddir)/src/util/libgnunetutil.la
233  gnunet_helper_transport_bluetooth_LDFLAGS = -lws2_32
234 else
235  gnunet_helper_transport_bluetooth_LDFLAGS = -lbluetooth
236 endif
237
238 gnunet_transport_profiler_SOURCES = \
239  gnunet-transport-profiler.c
240 gnunet_transport_profiler_LDADD = \
241   libgnunettransport.la \
242   $(top_builddir)/src/hello/libgnunethello.la \
243   $(top_builddir)/src/ats/libgnunetats.la \
244   $(top_builddir)/src/util/libgnunetutil.la \
245   $(GN_LIBINTL)
246
247 gnunet_transport_SOURCES = \
248  gnunet-transport.c
249 gnunet_transport_LDADD = \
250   libgnunettransport.la \
251   $(top_builddir)/src/hello/libgnunethello.la \
252   $(top_builddir)/src/util/libgnunetutil.la \
253   $(GN_LIBINTL)
254
255 gnunet_service_transport_SOURCES = \
256  gnunet-service-transport.c gnunet-service-transport.h \
257  gnunet-service-transport_ats.h gnunet-service-transport_ats.c \
258  gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
259  gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
260  gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
261  gnunet-service-transport_validation.h gnunet-service-transport_validation.c \
262  gnunet-service-transport_manipulation.h gnunet-service-transport_manipulation.c
263 # Note that while gnunet-service-transport does not use libgnunetnat
264 # directly, we must link against it as GNUNET_NAT_mini_map_stop will
265 # leave a 'dangling' task to process_unmap_output which will cause
266 # a crash on unloading of a plugin unless the service links against
267 # that library as well.
268 gnunet_service_transport_LDADD = \
269   libgnunettransport.la \
270   $(top_builddir)/src/ats/libgnunetats.la \
271   $(top_builddir)/src/hello/libgnunethello.la \
272   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
273   $(top_builddir)/src/statistics/libgnunetstatistics.la \
274   $(top_builddir)/src/util/libgnunetutil.la \
275   $(GN_GLPK) \
276   $(GN_LIBINTL)
277 gnunet_service_transport_CFLAGS = \
278   $(CFLAGS)
279 # -DANALYZE
280
281 plugin_LTLIBRARIES = \
282   libgnunet_plugin_transport_tcp.la \
283   libgnunet_plugin_transport_xt.la \
284   libgnunet_plugin_transport_udp.la \
285   libgnunet_plugin_transport_xu.la \
286   $(UNIX_PLUGIN_LA) \
287   $(HTTP_CLIENT_PLUGIN_LA) \
288   $(HTTPS_CLIENT_PLUGIN_LA) \
289   $(HTTP_SERVER_PLUGIN_LA) \
290   $(HTTPS_SERVER_PLUGIN_LA) \
291   $(WLAN_PLUGIN_LA) \
292   $(BT_PLUGIN_LA)
293
294 # Note: real plugins of course need to be added
295 # to the plugin_LTLIBRARIES above
296 noinst_LTLIBRARIES = \
297   libgnunet_plugin_transport_template.la
298
299 libgnunet_plugin_transport_tcp_la_SOURCES = \
300   plugin_transport_tcp.c 
301 libgnunet_plugin_transport_tcp_la_LIBADD = \
302   $(top_builddir)/src/hello/libgnunethello.la \
303   $(top_builddir)/src/statistics/libgnunetstatistics.la \
304   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
305   $(top_builddir)/src/nat/libgnunetnatnew.la \
306   $(top_builddir)/src/util/libgnunetutil.la \
307   $(LTLIBINTL)
308 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
309  $(GN_PLUGIN_LDFLAGS)
310
311 libgnunet_plugin_transport_xt_la_SOURCES = \
312   plugin_transport_xt.c 
313 libgnunet_plugin_transport_xt_la_LIBADD = \
314   $(top_builddir)/src/hello/libgnunethello.la \
315   $(top_builddir)/src/statistics/libgnunetstatistics.la \
316   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
317   $(top_builddir)/src/nat/libgnunetnatnew.la \
318   $(top_builddir)/src/util/libgnunetutil.la \
319   $(LTLIBINTL)
320 libgnunet_plugin_transport_xt_la_LDFLAGS = \
321  $(GN_PLUGIN_LDFLAGS)
322
323 libgnunet_plugin_transport_template_la_SOURCES = \
324   plugin_transport_template.c
325 libgnunet_plugin_transport_template_la_LIBADD = \
326   $(top_builddir)/src/util/libgnunetutil.la \
327   $(LTLIBINTL)
328 libgnunet_plugin_transport_template_la_LDFLAGS = \
329  $(GN_PLUGIN_LDFLAGS)
330
331 libgnunet_plugin_transport_wlan_la_SOURCES = \
332   plugin_transport_wlan.c plugin_transport_wlan.h
333 libgnunet_plugin_transport_wlan_la_LIBADD = \
334   $(top_builddir)/src/hello/libgnunethello.la \
335   $(top_builddir)/src/statistics/libgnunetstatistics.la \
336   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
337   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
338   $(top_builddir)/src/util/libgnunetutil.la
339 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
340   $(GN_PLUGIN_LDFLAGS)
341 libgnunet_plugin_transport_wlan_la_CFLAGS = \
342  $(CFLAGS) -DBUILD_WLAN
343
344 libgnunet_plugin_transport_bluetooth_la_SOURCES = \
345   plugin_transport_wlan.c plugin_transport_wlan.h
346 libgnunet_plugin_transport_bluetooth_la_LIBADD = \
347   $(top_builddir)/src/hello/libgnunethello.la \
348   $(top_builddir)/src/statistics/libgnunetstatistics.la \
349   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
350   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
351   $(top_builddir)/src/util/libgnunetutil.la
352 libgnunet_plugin_transport_bluetooth_la_LDFLAGS = \
353   $(GN_PLUGIN_LDFLAGS)
354 libgnunet_plugin_transport_bluetooth_la_CFLAGS = \
355  $(CFLAGS) -DBUILD_BLUETOOTH
356
357 libgnunet_plugin_transport_udp_la_SOURCES = \
358   plugin_transport_udp.c plugin_transport_udp.h \
359   plugin_transport_udp_broadcasting.c
360 libgnunet_plugin_transport_udp_la_LIBADD = \
361   $(top_builddir)/src/hello/libgnunethello.la \
362   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
363   $(top_builddir)/src/statistics/libgnunetstatistics.la \
364   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
365   $(top_builddir)/src/nat/libgnunetnatnew.la \
366   $(top_builddir)/src/util/libgnunetutil.la \
367   $(LTLIBINTL)
368 libgnunet_plugin_transport_udp_la_LDFLAGS = \
369  $(GN_PLUGIN_LDFLAGS)
370
371 libgnunet_plugin_transport_xu_la_SOURCES = \
372   plugin_transport_xu.c plugin_transport_xu.h
373 libgnunet_plugin_transport_udp_la_LIBADD = \
374   $(top_builddir)/src/hello/libgnunethello.la \
375   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
376   $(top_builddir)/src/statistics/libgnunetstatistics.la \
377   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
378   $(top_builddir)/src/nat/libgnunetnatnew.la \
379   $(top_builddir)/src/util/libgnunetutil.la \
380   $(LTLIBINTL)
381 libgnunet_plugin_transport_udp_la_LDFLAGS = \
382  $(GN_PLUGIN_LDFLAGS)
383
384 libgnunet_plugin_transport_unix_la_SOURCES = \
385   plugin_transport_unix.c
386 libgnunet_plugin_transport_unix_la_LIBADD = \
387   $(top_builddir)/src/hello/libgnunethello.la \
388   $(top_builddir)/src/statistics/libgnunetstatistics.la \
389   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
390   $(top_builddir)/src/util/libgnunetutil.la \
391   $(LTLIBINTL)
392 libgnunet_plugin_transport_unix_la_LDFLAGS = \
393  $(GN_PLUGIN_LDFLAGS)
394
395
396 libgnunet_plugin_transport_http_client_la_SOURCES = \
397   plugin_transport_http_client.c plugin_transport_http_common.c plugin_transport_http_common.h
398 libgnunet_plugin_transport_http_client_la_LIBADD = \
399   $(top_builddir)/src/hello/libgnunethello.la \
400   $(top_builddir)/src/statistics/libgnunetstatistics.la \
401   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
402   $(LIB_GNURL) \
403   $(top_builddir)/src/util/libgnunetutil.la
404 libgnunet_plugin_transport_http_client_la_LDFLAGS = \
405  $(GN_PLUGIN_LDFLAGS)
406 libgnunet_plugin_transport_http_client_la_CFLAGS = \
407  $(CFLAGS)
408 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
409  $(CPP_GNURL) $(AM_CPPFLAGS)
410
411
412 libgnunet_plugin_transport_http_server_la_SOURCES = \
413   plugin_transport_http_server.c plugin_transport_http_common.c
414 libgnunet_plugin_transport_http_server_la_LIBADD = \
415   $(top_builddir)/src/hello/libgnunethello.la \
416   $(top_builddir)/src/statistics/libgnunetstatistics.la \
417   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
418   $(top_builddir)/src/nat/libgnunetnatnew.la \
419   $(top_builddir)/src/util/libgnunetutil.la
420 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
421  $(GN_LIBMHD) \
422  $(GN_PLUGIN_LDFLAGS)
423 libgnunet_plugin_transport_http_server_la_CFLAGS = \
424  $(CFLAGS)
425
426 libgnunet_plugin_transport_https_client_la_SOURCES = \
427   plugin_transport_http_client.c plugin_transport_http_common.c
428 libgnunet_plugin_transport_https_client_la_LIBADD = \
429   $(top_builddir)/src/hello/libgnunethello.la \
430   $(top_builddir)/src/statistics/libgnunetstatistics.la \
431   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
432   $(LIB_GNURL) \
433   $(top_builddir)/src/util/libgnunetutil.la
434 libgnunet_plugin_transport_https_client_la_LDFLAGS = \
435  $(GN_PLUGIN_LDFLAGS)
436 libgnunet_plugin_transport_https_client_la_CFLAGS = \
437  $(CFLAGS) -DBUILD_HTTPS
438 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
439  $(CPP_GNURL) $(AM_CPPFLAGS)
440
441
442 libgnunet_plugin_transport_https_server_la_SOURCES = \
443   plugin_transport_http_server.c plugin_transport_http_common.c
444 libgnunet_plugin_transport_https_server_la_LIBADD = \
445   $(top_builddir)/src/hello/libgnunethello.la \
446   $(top_builddir)/src/statistics/libgnunetstatistics.la \
447   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
448   $(top_builddir)/src/nat/libgnunetnatnew.la \
449   $(top_builddir)/src/util/libgnunetutil.la
450 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
451  $(GN_LIBMHD) \
452  $(GN_PLUGIN_LDFLAGS)
453 libgnunet_plugin_transport_https_server_la_CFLAGS = \
454  $(CFLAGS) -DBUILD_HTTPS
455
456
457 if HAVE_TESTING
458 check_PROGRAMS = \
459  test_transport_address_switch_tcp \
460  test_transport_address_switch_udp \
461  test_transport_testing_startstop \
462  test_transport_testing_restart \
463  test_plugin_tcp \
464  test_plugin_udp \
465  $(UNIX_TEST) \
466  $(WLAN_PLUGIN_TEST) \
467  $(BT_PLUGIN_TEST) \
468  test_http_common \
469  $(HTTP_CLIENT_PLUGIN_TEST) \
470  $(HTTPS_CLIENT_PLUGIN_TEST) \
471  $(HTTP_SERVER_PLUGIN_TEST) \
472  $(HTTPS_SERVER_PLUGIN_TEST) \
473  test_transport_api_blacklisting_tcp \
474  test_transport_api_disconnect_tcp \
475  test_transport_api_tcp \
476  test_transport_api_restart_1peer \
477  test_transport_api_restart_2peers \
478  test_transport_api_timeout_tcp \
479  test_transport_api_limited_sockets_tcp \
480  test_transport_api_tcp_nat \
481  test_transport_api_udp \
482  test_transport_api_timeout_udp \
483  $(UNIX_PLUGIN_TEST) \
484  $(UNIX_PLUGIN_TIMEOUT_TEST) \
485  $(UNIX_API_ABSTRACT_TEST) \
486  test_transport_api_udp_nat \
487  $(HTTP_API_TEST) \
488  $(HTTP_REVERSE_API_TEST) \
489  $(HTTP_API_TIMEOUT_TEST) \
490  $(HTTP_SWITCH) \
491  $(HTTPS_API_TEST) \
492  $(HTTPS_API_TIMEOUT_TEST) \
493  $(HTTPS_SWITCH) \
494  $(WLAN_API_TEST) \
495  $(WLAN_TIMEOUT_TEST) \
496  $(BT_API_TEST) \
497  $(BT_TIMEOUT_TEST) \
498  test_transport_api_multi \
499  test_transport_api_monitor_peers \
500  test_transport_blacklisting_no_bl \
501  test_transport_blacklisting_outbound_bl_full \
502  test_transport_blacklisting_outbound_bl_plugin \
503  test_transport_blacklisting_inbound_bl_plugin \
504  test_transport_blacklisting_inbound_bl_full \
505  test_transport_blacklisting_multiple_plugins \
506  test_transport_api_manipulation_send_tcp \
507  test_transport_api_manipulation_recv_tcp \
508  test_transport_api_manipulation_cfg \
509  test_transport_api_reliability_tcp \
510  test_transport_api_reliability_tcp_nat \
511  test_transport_api_reliability_udp \
512  $(UNIX_REL_TEST) \
513  $(HTTP_REL_TEST) \
514  $(HTTPS_REL_TEST) \
515  $(WLAN_REL_TEST) \
516  $(WLAN_UREL_TEST) \
517  $(BT_REL_TEST) \
518  $(BT_UREL_TEST) \
519  test_quota_compliance_tcp \
520  test_quota_compliance_tcp_asymmetric \
521  test_quota_compliance_udp \
522  $(UNIX_QUOTA_TEST) \
523  $(HTTP_QUOTA_TEST) \
524  $(HTTPS_QUOTA_TEST) \
525  $(WLAN_QUOTA_TEST) \
526  $(BT_QUOTA_TEST)
527 if HAVE_GETOPT_BINARY
528 check_PROGRAMS += \
529 test_transport_api_slow_ats
530 endif
531 endif
532
533 if ENABLE_TEST_RUN
534 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
535 TESTS = \
536  test_transport_address_switch_tcp \
537  test_transport_address_switch_udp \
538  $(HTTP_SWITCH) \
539  $(HTTPS_SWITCH) \
540  test_transport_testing_startstop \
541  test_transport_testing_restart \
542  test_plugin_tcp \
543  test_plugin_udp \
544  $(UNIX_TEST) \
545  $(WLAN_PLUGIN_TEST) \
546  $(BT_PLUGIN_TEST) \
547  test_transport_api_blacklisting_tcp \
548  test_transport_api_disconnect_tcp \
549  test_transport_api_tcp \
550  test_transport_api_restart_1peer \
551  test_transport_api_restart_2peers \
552  test_transport_api_limited_sockets_tcp \
553  test_transport_api_tcp_nat \
554  test_transport_api_udp \
555  $(UNIX_PLUGIN_TEST) \
556  $(UNIX_API_ABSTRACT_TEST) \
557  test_transport_api_udp_nat \
558  $(HTTP_API_TEST) \
559  $(HTTPS_API_TEST) \
560  $(WLAN_API_TEST) \
561  $(BT_API_TEST) \
562  test_transport_api_multi \
563  test_transport_api_monitor_peers \
564  test_transport_blacklisting_no_bl \
565  test_transport_blacklisting_outbound_bl_full \
566  test_transport_blacklisting_outbound_bl_plugin \
567  test_transport_blacklisting_inbound_bl_plugin \
568  test_transport_blacklisting_inbound_bl_full \
569  test_transport_blacklisting_multiple_plugins \
570  test_transport_api_manipulation_send_tcp \
571  test_transport_api_manipulation_recv_tcp \
572  test_transport_api_manipulation_cfg \
573  test_transport_api_reliability_tcp \
574  test_transport_api_reliability_tcp_nat \
575  test_transport_api_reliability_udp \
576  $(UNIX_REL_TEST) \
577  $(HTTP_REL_TEST) \
578  $(HTTPS_REL_TEST) \
579  $(WLAN_REL_TEST) \
580  $(WLAN_UREL_TEST) \
581  $(BT_REL_TEST) \
582  $(BT_UREL_TEST) \
583  test_quota_compliance_tcp \
584  test_quota_compliance_tcp_asymmetric \
585  test_quota_compliance_udp \
586  $(UNIX_QUOTA_TEST) \
587  $(HTTP_QUOTA_TEST) \
588  $(HTTPS_QUOTA_TEST) \
589  test_transport_api_timeout_tcp \
590  test_transport_api_timeout_udp \
591  $(UNIX_PLUGIN_TIMEOUT_TEST) \
592  $(HTTP_API_TIMEOUT_TEST) \
593  $(HTTPS_API_TIMEOUT_TEST) \
594  $(WLAN_TIMEOUT_TEST) \
595  $(BT_TIMEOUT_TEST)
596 if HAVE_GETOPT_BINARY
597 TESTS += \
598 test_transport_api_slow_ats
599 endif
600 endif
601
602 test_transport_testing_startstop_SOURCES = \
603  test_transport_testing_startstop.c
604 test_transport_testing_startstop_LDADD = \
605  $(top_builddir)/src/util/libgnunetutil.la \
606  libgnunettransport.la \
607  $(top_builddir)/src/hello/libgnunethello.la \
608  libgnunettransporttesting.la
609
610 test_transport_testing_restart_SOURCES = \
611  test_transport_testing_restart.c
612 test_transport_testing_restart_LDADD = \
613  $(top_builddir)/src/util/libgnunetutil.la \
614  libgnunettransport.la \
615  $(top_builddir)/src/hello/libgnunethello.la \
616  libgnunettransporttesting.la
617
618 test_transport_api_blacklisting_tcp_SOURCES = \
619  test_transport_api_blacklisting.c
620 test_transport_api_blacklisting_tcp_LDADD = \
621  libgnunettransport.la \
622  $(top_builddir)/src/hello/libgnunethello.la \
623  $(top_builddir)/src/statistics/libgnunetstatistics.la \
624  $(top_builddir)/src/util/libgnunetutil.la \
625  libgnunettransporttesting.la
626
627 test_transport_blacklisting_no_bl_SOURCES = \
628  test_transport_blacklisting.c
629 test_transport_blacklisting_no_bl_LDADD = \
630  libgnunettransport.la \
631  $(top_builddir)/src/hello/libgnunethello.la \
632  $(top_builddir)/src/statistics/libgnunetstatistics.la \
633  $(top_builddir)/src/util/libgnunetutil.la \
634  libgnunettransporttesting.la
635
636 test_transport_blacklisting_outbound_bl_full_SOURCES = \
637  test_transport_blacklisting.c
638 test_transport_blacklisting_outbound_bl_full_LDADD = \
639  libgnunettransport.la \
640  $(top_builddir)/src/hello/libgnunethello.la \
641  $(top_builddir)/src/statistics/libgnunetstatistics.la \
642  $(top_builddir)/src/util/libgnunetutil.la \
643  libgnunettransporttesting.la
644
645 test_transport_blacklisting_outbound_bl_plugin_SOURCES = \
646  test_transport_blacklisting.c
647 test_transport_blacklisting_outbound_bl_plugin_LDADD = \
648  libgnunettransport.la \
649  $(top_builddir)/src/hello/libgnunethello.la \
650  $(top_builddir)/src/statistics/libgnunetstatistics.la \
651  $(top_builddir)/src/util/libgnunetutil.la \
652  libgnunettransporttesting.la
653
654 test_transport_blacklisting_inbound_bl_full_SOURCES = \
655  test_transport_blacklisting.c
656 test_transport_blacklisting_inbound_bl_full_LDADD = \
657  libgnunettransport.la \
658  $(top_builddir)/src/hello/libgnunethello.la \
659  $(top_builddir)/src/statistics/libgnunetstatistics.la \
660  $(top_builddir)/src/util/libgnunetutil.la \
661  libgnunettransporttesting.la
662
663 test_transport_blacklisting_inbound_bl_plugin_SOURCES = \
664  test_transport_blacklisting.c
665 test_transport_blacklisting_inbound_bl_plugin_LDADD = \
666  libgnunettransport.la \
667  $(top_builddir)/src/hello/libgnunethello.la \
668  $(top_builddir)/src/statistics/libgnunetstatistics.la \
669  $(top_builddir)/src/util/libgnunetutil.la \
670  libgnunettransporttesting.la
671
672 test_transport_blacklisting_multiple_plugins_SOURCES = \
673  test_transport_blacklisting.c
674 test_transport_blacklisting_multiple_plugins_LDADD = \
675  libgnunettransport.la \
676  $(top_builddir)/src/hello/libgnunethello.la \
677  $(top_builddir)/src/statistics/libgnunetstatistics.la \
678  $(top_builddir)/src/util/libgnunetutil.la \
679  libgnunettransporttesting.la
680
681
682 test_transport_api_disconnect_tcp_SOURCES = \
683  test_transport_api_disconnect.c
684 test_transport_api_disconnect_tcp_LDADD = \
685  libgnunettransport.la \
686  $(top_builddir)/src/hello/libgnunethello.la \
687  $(top_builddir)/src/statistics/libgnunetstatistics.la \
688  $(top_builddir)/src/util/libgnunetutil.la \
689  libgnunettransporttesting.la
690
691 test_plugin_tcp_SOURCES = \
692  test_plugin_transport.c
693 test_plugin_tcp_LDADD = \
694  libgnunettransport.la \
695  $(top_builddir)/src/statistics/libgnunetstatistics.la \
696  $(top_builddir)/src/hello/libgnunethello.la \
697  $(top_builddir)/src/util/libgnunetutil.la  \
698  libgnunettransporttesting.la
699
700 test_plugin_udp_SOURCES = \
701  test_plugin_transport.c
702 test_plugin_udp_LDADD = \
703  libgnunettransport.la \
704  $(top_builddir)/src/statistics/libgnunetstatistics.la \
705  $(top_builddir)/src/hello/libgnunethello.la \
706  $(top_builddir)/src/util/libgnunetutil.la  \
707  libgnunettransporttesting.la
708
709 test_plugin_unix_SOURCES = \
710  test_plugin_transport.c
711 test_plugin_unix_LDADD = \
712  libgnunettransport.la \
713  $(top_builddir)/src/statistics/libgnunetstatistics.la \
714  $(top_builddir)/src/hello/libgnunethello.la \
715  $(top_builddir)/src/util/libgnunetutil.la  \
716  libgnunettransporttesting.la
717
718 test_plugin_wlan_SOURCES = \
719  test_plugin_transport.c
720 test_plugin_wlan_LDADD = \
721  libgnunettransport.la \
722  $(top_builddir)/src/statistics/libgnunetstatistics.la \
723  $(top_builddir)/src/hello/libgnunethello.la \
724  $(top_builddir)/src/util/libgnunetutil.la  \
725  libgnunettransporttesting.la
726
727 test_plugin_bluetooth_SOURCES = \
728  test_plugin_transport.c
729 test_plugin_bluetooth_LDADD = \
730  libgnunettransport.la \
731  $(top_builddir)/src/statistics/libgnunetstatistics.la \
732  $(top_builddir)/src/hello/libgnunethello.la \
733  $(top_builddir)/src/util/libgnunetutil.la  \
734  libgnunettransporttesting.la
735
736 test_http_common_SOURCES = \
737  test_http_common.c plugin_transport_http_common.c
738 test_http_common_LDADD = \
739  libgnunettransport.la \
740  $(top_builddir)/src/statistics/libgnunetstatistics.la \
741  $(top_builddir)/src/hello/libgnunethello.la \
742  $(top_builddir)/src/util/libgnunetutil.la  \
743  libgnunettransporttesting.la
744
745 test_plugin_http_server_SOURCES = \
746  test_plugin_transport.c
747 test_plugin_http_server_LDADD = \
748  libgnunettransport.la \
749  $(top_builddir)/src/statistics/libgnunetstatistics.la \
750  $(top_builddir)/src/hello/libgnunethello.la \
751  $(top_builddir)/src/util/libgnunetutil.la  \
752  libgnunettransporttesting.la
753
754 test_plugin_https_server_SOURCES = \
755  test_plugin_transport.c
756 test_plugin_https_server_LDADD = \
757  libgnunettransport.la \
758  $(top_builddir)/src/statistics/libgnunetstatistics.la \
759  $(top_builddir)/src/hello/libgnunethello.la \
760  $(top_builddir)/src/util/libgnunetutil.la  \
761  libgnunettransporttesting.la
762
763 test_plugin_http_client_SOURCES = \
764  test_plugin_transport.c
765 test_plugin_http_client_LDADD = \
766  libgnunettransport.la \
767  $(top_builddir)/src/statistics/libgnunetstatistics.la \
768  $(top_builddir)/src/hello/libgnunethello.la \
769  $(top_builddir)/src/util/libgnunetutil.la  \
770  libgnunettransporttesting.la
771
772 test_plugin_https_client_SOURCES = \
773  test_plugin_transport.c
774 test_plugin_https_client_LDADD = \
775  libgnunettransport.la \
776  $(top_builddir)/src/statistics/libgnunetstatistics.la \
777  $(top_builddir)/src/hello/libgnunethello.la \
778  $(top_builddir)/src/util/libgnunetutil.la  \
779  libgnunettransporttesting.la
780
781 test_transport_api_tcp_SOURCES = \
782  test_transport_api.c
783 test_transport_api_tcp_LDADD = \
784  libgnunettransport.la \
785  $(top_builddir)/src/hello/libgnunethello.la \
786  $(top_builddir)/src/util/libgnunetutil.la  \
787  libgnunettransporttesting.la
788
789 test_transport_api_restart_1peer_SOURCES = \
790  test_transport_api_restart_reconnect.c
791 test_transport_api_restart_1peer_LDADD = \
792  libgnunettransport.la \
793  $(top_builddir)/src/hello/libgnunethello.la \
794  $(top_builddir)/src/ats/libgnunetats.la \
795  $(top_builddir)/src/statistics/libgnunetstatistics.la \
796  $(top_builddir)/src/util/libgnunetutil.la \
797  libgnunettransporttesting.la
798
799 test_transport_api_restart_2peers_SOURCES = \
800  test_transport_api_restart_reconnect.c
801 test_transport_api_restart_2peers_LDADD = \
802  libgnunettransport.la \
803  $(top_builddir)/src/hello/libgnunethello.la \
804  $(top_builddir)/src/ats/libgnunetats.la \
805 $(top_builddir)/src/statistics/libgnunetstatistics.la \
806  $(top_builddir)/src/util/libgnunetutil.la \
807  libgnunettransporttesting.la
808
809 test_transport_api_limited_sockets_tcp_SOURCES = \
810  test_transport_api_limited_sockets.c
811 test_transport_api_limited_sockets_tcp_LDADD = \
812  libgnunettransport.la \
813  $(top_builddir)/src/hello/libgnunethello.la \
814  $(top_builddir)/src/util/libgnunetutil.la  \
815  libgnunettransporttesting.la
816
817 test_transport_api_tcp_nat_SOURCES = \
818  test_transport_api.c
819 test_transport_api_tcp_nat_LDADD = \
820  libgnunettransport.la \
821  $(top_builddir)/src/hello/libgnunethello.la \
822  $(top_builddir)/src/util/libgnunetutil.la \
823  libgnunettransporttesting.la
824
825 test_transport_api_manipulation_send_tcp_SOURCES = \
826  test_transport_api_manipulation_send_tcp.c
827 test_transport_api_manipulation_send_tcp_LDADD = \
828  libgnunettransport.la \
829  $(top_builddir)/src/hello/libgnunethello.la \
830  $(top_builddir)/src/util/libgnunetutil.la \
831  libgnunettransporttesting.la
832
833 test_transport_api_manipulation_recv_tcp_SOURCES = \
834  test_transport_api_manipulation_recv_tcp.c
835 test_transport_api_manipulation_recv_tcp_LDADD = \
836  libgnunettransport.la \
837  $(top_builddir)/src/hello/libgnunethello.la \
838  $(top_builddir)/src/util/libgnunetutil.la \
839  libgnunettransporttesting.la
840
841 test_transport_api_manipulation_cfg_SOURCES = \
842  test_transport_api_manipulation_cfg.c
843 test_transport_api_manipulation_cfg_LDADD = \
844  libgnunettransport.la \
845  $(top_builddir)/src/hello/libgnunethello.la \
846  $(top_builddir)/src/util/libgnunetutil.la \
847  libgnunettransporttesting.la
848
849 test_transport_api_reliability_tcp_SOURCES = \
850  test_transport_api_reliability.c
851 test_transport_api_reliability_tcp_LDADD = \
852  libgnunettransport.la \
853  $(top_builddir)/src/hello/libgnunethello.la \
854  $(top_builddir)/src/util/libgnunetutil.la \
855  libgnunettransporttesting.la
856
857 test_transport_api_timeout_tcp_SOURCES = \
858  test_transport_api_timeout.c
859 test_transport_api_timeout_tcp_LDADD = \
860  libgnunettransport.la \
861  $(top_builddir)/src/hello/libgnunethello.la \
862  $(top_builddir)/src/util/libgnunetutil.la \
863  libgnunettransporttesting.la
864
865 test_transport_api_timeout_unix_SOURCES = \
866  test_transport_api_timeout.c
867 test_transport_api_timeout_unix_LDADD = \
868  libgnunettransport.la \
869  $(top_builddir)/src/hello/libgnunethello.la \
870  $(top_builddir)/src/util/libgnunetutil.la \
871  libgnunettransporttesting.la
872
873 test_transport_api_timeout_wlan_SOURCES = \
874  test_transport_api_timeout.c
875 test_transport_api_timeout_wlan_LDADD = \
876  libgnunettransport.la \
877  $(top_builddir)/src/hello/libgnunethello.la \
878  $(top_builddir)/src/util/libgnunetutil.la \
879  libgnunettransporttesting.la
880
881 test_transport_api_timeout_bluetooth_SOURCES = \
882  test_transport_api_timeout.c
883 test_transport_api_timeout_bluetooth_LDADD = \
884  libgnunettransport.la \
885  $(top_builddir)/src/hello/libgnunethello.la \
886  $(top_builddir)/src/util/libgnunetutil.la \
887  libgnunettransporttesting.la
888
889 test_transport_api_reliability_tcp_nat_SOURCES = \
890  test_transport_api_reliability.c
891 test_transport_api_reliability_tcp_nat_LDADD = \
892  libgnunettransport.la \
893  $(top_builddir)/src/hello/libgnunethello.la \
894  $(top_builddir)/src/util/libgnunetutil.la \
895  libgnunettransporttesting.la
896
897 test_transport_api_reliability_bluetooth_SOURCES = \
898  test_transport_api_reliability.c
899 test_transport_api_reliability_bluetooth_LDADD = \
900  libgnunettransport.la \
901  $(top_builddir)/src/hello/libgnunethello.la \
902  $(top_builddir)/src/util/libgnunetutil.la \
903  libgnunettransporttesting.la
904
905 test_transport_api_reliability_wlan_SOURCES = \
906  test_transport_api_reliability.c
907 test_transport_api_reliability_wlan_LDADD = \
908  libgnunettransport.la \
909  $(top_builddir)/src/hello/libgnunethello.la \
910  $(top_builddir)/src/util/libgnunetutil.la \
911  libgnunettransporttesting.la
912
913 test_transport_api_udp_SOURCES = \
914  test_transport_api.c
915 test_transport_api_udp_LDADD = \
916  libgnunettransport.la \
917  $(top_builddir)/src/hello/libgnunethello.la \
918  $(top_builddir)/src/util/libgnunetutil.la  \
919  libgnunettransporttesting.la
920
921 test_transport_api_timeout_udp_SOURCES = \
922  test_transport_api_timeout.c
923 test_transport_api_timeout_udp_LDADD = \
924  libgnunettransport.la \
925  $(top_builddir)/src/hello/libgnunethello.la \
926  $(top_builddir)/src/util/libgnunetutil.la \
927  libgnunettransporttesting.la
928
929 test_transport_api_udp_nat_SOURCES = \
930  test_transport_api.c
931 test_transport_api_udp_nat_LDADD = \
932  libgnunettransport.la \
933  $(top_builddir)/src/hello/libgnunethello.la \
934  $(top_builddir)/src/util/libgnunetutil.la  \
935  libgnunettransporttesting.la
936
937 test_transport_api_unix_SOURCES = \
938  test_transport_api.c
939 test_transport_api_unix_LDADD = \
940  libgnunettransport.la \
941  $(top_builddir)/src/hello/libgnunethello.la \
942  $(top_builddir)/src/util/libgnunetutil.la \
943  libgnunettransporttesting.la
944
945 test_transport_api_unix_abstract_SOURCES = \
946  test_transport_api.c
947 test_transport_api_unix_abstract_LDADD = \
948  libgnunettransport.la \
949  $(top_builddir)/src/hello/libgnunethello.la \
950  $(top_builddir)/src/util/libgnunetutil.la \
951  libgnunettransporttesting.la
952
953 # HTTP tests
954 test_transport_api_http_SOURCES = \
955  test_transport_api.c
956 test_transport_api_http_LDADD = \
957  libgnunettransport.la \
958  $(top_builddir)/src/hello/libgnunethello.la \
959  $(top_builddir)/src/util/libgnunetutil.la \
960  libgnunettransporttesting.la
961
962 test_transport_api_http_reverse_SOURCES = \
963  test_transport_api.c
964 test_transport_api_http_reverse_LDADD = \
965  libgnunettransport.la \
966  $(top_builddir)/src/hello/libgnunethello.la \
967  $(top_builddir)/src/util/libgnunetutil.la \
968  libgnunettransporttesting.la
969
970 test_transport_api_timeout_http_SOURCES = \
971  test_transport_api_timeout.c
972 test_transport_api_timeout_http_LDADD = \
973  libgnunettransport.la \
974  $(top_builddir)/src/hello/libgnunethello.la \
975  $(top_builddir)/src/util/libgnunetutil.la \
976  libgnunettransporttesting.la
977
978 test_transport_api_reliability_http_SOURCES = \
979  test_transport_api_reliability.c
980 test_transport_api_reliability_http_LDADD = \
981  libgnunettransport.la \
982  $(top_builddir)/src/hello/libgnunethello.la \
983  $(top_builddir)/src/util/libgnunetutil.la \
984  libgnunettransporttesting.la
985
986 test_transport_api_reliability_http_xhr_SOURCES = \
987  test_transport_api_reliability.c
988 test_transport_api_reliability_http_xhr_LDADD = \
989  libgnunettransport.la \
990  $(top_builddir)/src/hello/libgnunethello.la \
991  $(top_builddir)/src/util/libgnunetutil.la \
992  libgnunettransporttesting.la
993
994 test_quota_compliance_http_SOURCES = \
995  test_quota_compliance.c
996 test_quota_compliance_http_LDADD = \
997  libgnunettransport.la \
998  $(top_builddir)/src/hello/libgnunethello.la \
999  $(top_builddir)/src/ats/libgnunetats.la \
1000  $(top_builddir)/src/util/libgnunetutil.la \
1001  libgnunettransporttesting.la
1002
1003 test_quota_compliance_http_asymmetric_SOURCES = \
1004  test_quota_compliance.c
1005 test_quota_compliance_http_asymmetric_LDADD = \
1006  libgnunettransport.la \
1007  $(top_builddir)/src/hello/libgnunethello.la \
1008  $(top_builddir)/src/ats/libgnunetats.la \
1009  $(top_builddir)/src/util/libgnunetutil.la \
1010  libgnunettransporttesting.la
1011
1012 test_quota_compliance_https_SOURCES = \
1013  test_quota_compliance.c
1014 test_quota_compliance_https_LDADD = \
1015  libgnunettransport.la \
1016  $(top_builddir)/src/hello/libgnunethello.la \
1017  $(top_builddir)/src/ats/libgnunetats.la \
1018  $(top_builddir)/src/util/libgnunetutil.la \
1019  libgnunettransporttesting.la
1020
1021 test_quota_compliance_https_asymmetric_SOURCES = \
1022  test_quota_compliance.c
1023 test_quota_compliance_https_asymmetric_LDADD = \
1024  libgnunettransport.la \
1025  $(top_builddir)/src/hello/libgnunethello.la \
1026  $(top_builddir)/src/ats/libgnunetats.la \
1027  $(top_builddir)/src/util/libgnunetutil.la \
1028  libgnunettransporttesting.la
1029
1030 # HTTPS tests
1031 test_transport_api_https_SOURCES = \
1032  test_transport_api.c
1033 test_transport_api_https_LDADD = \
1034  libgnunettransport.la \
1035  $(top_builddir)/src/hello/libgnunethello.la \
1036  $(top_builddir)/src/util/libgnunetutil.la  \
1037  libgnunettransporttesting.la
1038
1039 test_transport_api_timeout_https_SOURCES = \
1040  test_transport_api_timeout.c
1041 test_transport_api_timeout_https_LDADD = \
1042  libgnunettransport.la \
1043  $(top_builddir)/src/hello/libgnunethello.la \
1044  $(top_builddir)/src/util/libgnunetutil.la \
1045  libgnunettransporttesting.la
1046
1047
1048 test_transport_api_reliability_https_SOURCES = \
1049  test_transport_api_reliability.c
1050 test_transport_api_reliability_https_LDADD = \
1051  libgnunettransport.la \
1052  $(top_builddir)/src/hello/libgnunethello.la \
1053  $(top_builddir)/src/util/libgnunetutil.la \
1054  libgnunettransporttesting.la
1055
1056 test_transport_api_reliability_https_xhr_SOURCES = \
1057  test_transport_api_reliability.c
1058 test_transport_api_reliability_https_xhr_LDADD = \
1059  libgnunettransport.la \
1060  $(top_builddir)/src/hello/libgnunethello.la \
1061  $(top_builddir)/src/util/libgnunetutil.la \
1062  libgnunettransporttesting.la
1063
1064 test_transport_api_reliability_unix_SOURCES = \
1065  test_transport_api_reliability.c
1066 test_transport_api_reliability_unix_LDADD = \
1067  libgnunettransport.la \
1068  $(top_builddir)/src/hello/libgnunethello.la \
1069  $(top_builddir)/src/util/libgnunetutil.la \
1070  libgnunettransporttesting.la
1071
1072 test_transport_api_reliability_udp_SOURCES = \
1073  test_transport_api_reliability.c
1074 test_transport_api_reliability_udp_LDADD = \
1075  libgnunettransport.la \
1076  $(top_builddir)/src/hello/libgnunethello.la \
1077  $(top_builddir)/src/util/libgnunetutil.la \
1078  libgnunettransporttesting.la
1079
1080 if LINUX
1081 test_transport_api_wlan_SOURCES = \
1082  test_transport_api.c
1083 test_transport_api_wlan_LDADD = \
1084  libgnunettransport.la \
1085  $(top_builddir)/src/hello/libgnunethello.la \
1086  $(top_builddir)/src/util/libgnunetutil.la \
1087  libgnunettransporttesting.la
1088 endif
1089
1090 if LINUX
1091 if HAVE_LIBBLUETOOTH
1092 test_transport_api_bluetooth_SOURCES = \
1093  test_transport_api.c
1094 test_transport_api_bluetooth_LDADD = \
1095  libgnunettransport.la \
1096  $(top_builddir)/src/hello/libgnunethello.la \
1097  $(top_builddir)/src/util/libgnunetutil.la \
1098  libgnunettransporttesting.la
1099 endif
1100 endif
1101
1102 test_transport_address_switch_tcp_SOURCES = \
1103  test_transport_address_switch.c
1104 test_transport_address_switch_tcp_LDADD = \
1105  libgnunettransport.la \
1106  $(top_builddir)/src/hello/libgnunethello.la \
1107  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1108  $(top_builddir)/src/util/libgnunetutil.la \
1109  libgnunettransporttesting.la
1110
1111  test_transport_address_switch_udp_SOURCES = \
1112  test_transport_address_switch.c
1113 test_transport_address_switch_udp_LDADD = \
1114  libgnunettransport.la \
1115  $(top_builddir)/src/hello/libgnunethello.la \
1116  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1117  $(top_builddir)/src/util/libgnunetutil.la \
1118  libgnunettransporttesting.la
1119
1120
1121  test_transport_address_switch_http_SOURCES = \
1122  test_transport_address_switch.c
1123 test_transport_address_switch_http_LDADD = \
1124  libgnunettransport.la \
1125  $(top_builddir)/src/hello/libgnunethello.la \
1126  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1127  $(top_builddir)/src/util/libgnunetutil.la \
1128  libgnunettransporttesting.la
1129
1130  test_transport_address_switch_https_SOURCES = \
1131  test_transport_address_switch.c
1132 test_transport_address_switch_https_LDADD = \
1133  libgnunettransport.la \
1134  $(top_builddir)/src/hello/libgnunethello.la \
1135  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1136  $(top_builddir)/src/util/libgnunetutil.la \
1137  libgnunettransporttesting.la
1138
1139 test_quota_compliance_tcp_SOURCES = \
1140  test_quota_compliance.c
1141 test_quota_compliance_tcp_LDADD = \
1142  libgnunettransport.la \
1143  $(top_builddir)/src/hello/libgnunethello.la \
1144  $(top_builddir)/src/ats/libgnunetats.la \
1145  $(top_builddir)/src/util/libgnunetutil.la \
1146  libgnunettransporttesting.la
1147
1148 test_quota_compliance_tcp_asymmetric_SOURCES = \
1149  test_quota_compliance.c
1150 test_quota_compliance_tcp_asymmetric_LDADD = \
1151  libgnunettransport.la \
1152  $(top_builddir)/src/hello/libgnunethello.la \
1153  $(top_builddir)/src/ats/libgnunetats.la \
1154  $(top_builddir)/src/util/libgnunetutil.la \
1155  libgnunettransporttesting.la
1156
1157 test_quota_compliance_udp_SOURCES = \
1158  test_quota_compliance.c
1159 test_quota_compliance_udp_LDADD = \
1160  libgnunettransport.la \
1161  $(top_builddir)/src/hello/libgnunethello.la \
1162  $(top_builddir)/src/ats/libgnunetats.la \
1163  $(top_builddir)/src/util/libgnunetutil.la \
1164  libgnunettransporttesting.la
1165
1166 test_quota_compliance_unix_SOURCES = \
1167  test_quota_compliance.c
1168 test_quota_compliance_unix_LDADD = \
1169  libgnunettransport.la \
1170  $(top_builddir)/src/hello/libgnunethello.la \
1171  $(top_builddir)/src/ats/libgnunetats.la \
1172  $(top_builddir)/src/util/libgnunetutil.la \
1173  libgnunettransporttesting.la
1174
1175 test_quota_compliance_unix_asymmetric_SOURCES = \
1176  test_quota_compliance.c
1177 test_quota_compliance_unix_asymmetric_LDADD = \
1178  libgnunettransport.la \
1179  $(top_builddir)/src/hello/libgnunethello.la \
1180  $(top_builddir)/src/ats/libgnunetats.la \
1181  $(top_builddir)/src/util/libgnunetutil.la \
1182  libgnunettransporttesting.la
1183
1184 test_quota_compliance_wlan_SOURCES = \
1185  test_quota_compliance.c
1186 test_quota_compliance_wlan_LDADD = \
1187  libgnunettransport.la \
1188  $(top_builddir)/src/hello/libgnunethello.la \
1189  $(top_builddir)/src/ats/libgnunetats.la \
1190  $(top_builddir)/src/util/libgnunetutil.la \
1191  libgnunettransporttesting.la
1192
1193 test_quota_compliance_wlan_asymmetric_SOURCES = \
1194  test_quota_compliance.c
1195 test_quota_compliance_wlan_asymmetric_LDADD = \
1196  libgnunettransport.la \
1197  $(top_builddir)/src/hello/libgnunethello.la \
1198  $(top_builddir)/src/ats/libgnunetats.la \
1199  $(top_builddir)/src/util/libgnunetutil.la \
1200  libgnunettransporttesting.la
1201
1202 test_quota_compliance_bluetooth_SOURCES = \
1203  test_quota_compliance.c
1204 test_quota_compliance_bluetooth_LDADD = \
1205  libgnunettransport.la \
1206  $(top_builddir)/src/hello/libgnunethello.la \
1207  $(top_builddir)/src/ats/libgnunetats.la \
1208  $(top_builddir)/src/util/libgnunetutil.la \
1209  libgnunettransporttesting.la
1210
1211 test_quota_compliance_bluetooth_asymmetric_SOURCES = \
1212  test_quota_compliance.c
1213 test_quota_compliance_bluetooth_asymmetric_LDADD = \
1214  libgnunettransport.la \
1215  $(top_builddir)/src/hello/libgnunethello.la \
1216  $(top_builddir)/src/ats/libgnunetats.la \
1217  $(top_builddir)/src/util/libgnunetutil.la \
1218  libgnunettransporttesting.la
1219
1220 test_transport_api_multi_SOURCES = \
1221  test_transport_api.c
1222 test_transport_api_multi_LDADD = \
1223  libgnunettransport.la \
1224  $(top_builddir)/src/hello/libgnunethello.la \
1225  $(top_builddir)/src/util/libgnunetutil.la \
1226  libgnunettransporttesting.la
1227
1228 test_transport_api_monitor_peers_SOURCES = \
1229  test_transport_api_monitor_peers.c
1230 test_transport_api_monitor_peers_LDADD = \
1231  libgnunettransport.la \
1232  $(top_builddir)/src/hello/libgnunethello.la \
1233  $(top_builddir)/src/util/libgnunetutil.la \
1234  libgnunettransporttesting.la
1235
1236 test_transport_api_slow_ats_SOURCES = \
1237  test_transport_api.c
1238 test_transport_api_slow_ats_LDADD = \
1239  libgnunettransport.la \
1240  $(top_builddir)/src/hello/libgnunethello.la \
1241  $(top_builddir)/src/util/libgnunetutil.la  \
1242  libgnunettransporttesting.la
1243
1244
1245 EXTRA_DIST = \
1246 test_plugin_hostkey \
1247 test_plugin_hostkey.ecc \
1248 test_delay \
1249 template_cfg_peer1.conf\
1250 template_cfg_peer2.conf\
1251 test_plugin_transport_data.conf\
1252 test_plugin_transport_data_udp.conf\
1253 test_quota_compliance_data.conf\
1254 test_quota_compliance_http_peer1.conf\
1255 test_quota_compliance_http_peer2.conf\
1256 test_quota_compliance_https_peer1.conf\
1257 test_quota_compliance_https_peer2.conf\
1258 test_quota_compliance_tcp_peer1.conf\
1259 test_quota_compliance_tcp_peer2.conf\
1260 test_quota_compliance_udp_peer1.conf\
1261 test_quota_compliance_udp_peer2.conf\
1262 test_quota_compliance_unix_peer1.conf\
1263 test_quota_compliance_unix_peer2.conf\
1264 test_quota_compliance_wlan_peer1.conf\
1265 test_quota_compliance_wlan_peer2.conf\
1266 test_quota_compliance_bluetooth_peer1.conf\
1267 test_quota_compliance_bluetooth_peer2.conf\
1268 test_quota_compliance_http_asymmetric_peer1.conf\
1269 test_quota_compliance_http_asymmetric_peer2.conf\
1270 test_quota_compliance_https_asymmetric_peer1.conf\
1271 test_quota_compliance_https_asymmetric_peer2.conf\
1272 test_quota_compliance_tcp_asymmetric_peer1.conf\
1273 test_quota_compliance_tcp_asymmetric_peer2.conf\
1274 test_quota_compliance_unix_asymmetric_peer1.conf\
1275 test_quota_compliance_unix_asymmetric_peer2.conf\
1276 test_quota_compliance_wlan_asymmetric_peer1.conf\
1277 test_quota_compliance_wlan_asymmetric_peer2.conf\
1278 test_quota_compliance_bluetooth_asymmetric_peer1.conf\
1279 test_quota_compliance_bluetooth_asymmetric_peer2.conf\
1280 test_transport_api_data.conf\
1281 test_transport_api_blacklisting_tcp_peer1.conf \
1282 test_transport_api_blacklisting_tcp_peer2.conf \
1283 test_transport_api_http_peer1.conf\
1284 test_transport_api_http_peer2.conf\
1285 test_transport_api_https_peer1.conf\
1286 test_transport_api_https_peer2.conf\
1287 test_transport_api_limited_sockets_tcp_peer1.conf\
1288 test_transport_api_limited_sockets_tcp_peer2.conf\
1289 test_transport_api_timeout_tcp_peer1.conf\
1290 test_transport_api_timeout_tcp_peer2.conf\
1291 test_transport_api_multi_peer1.conf\
1292 test_transport_api_multi_peer2.conf\
1293 test_transport_api_restart_1peer_peer1.conf\
1294 test_transport_api_restart_1peer_peer2.conf\
1295 test_transport_api_reliability_http_peer1.conf\
1296 test_transport_api_reliability_http_peer2.conf\
1297 test_transport_api_reliability_https_peer1.conf\
1298 test_transport_api_reliability_https_peer2.conf\
1299 test_transport_api_reliability_tcp_nat_peer1.conf\
1300 test_transport_api_reliability_tcp_nat_peer2.conf\
1301 test_transport_api_reliability_tcp_peer1.conf\
1302 test_transport_api_reliability_tcp_peer2.conf\
1303 test_transport_api_reliability_wlan_peer1.conf\
1304 test_transport_api_reliability_wlan_peer2.conf\
1305 test_transport_api_reliability_bluetooth_peer1.conf\
1306 test_transport_api_reliability_bluetooth_peer2.conf\
1307 test_transport_api_manipulation_send_tcp_peer1.conf\
1308 test_transport_api_manipulation_send_tcp_peer2.conf\
1309 test_transport_api_manipulation_recv_tcp_peer1.conf\
1310 test_transport_api_manipulation_recv_tcp_peer2.conf\
1311 test_transport_api_manipulation_cfg_peer1.conf\
1312 test_transport_api_manipulation_cfg_peer2.conf\
1313 test_transport_api_restart_1peer_peer1.conf\
1314 test_transport_api_restart_1peer_peer2.conf\
1315 test_transport_api_restart_2peers_peer1.conf\
1316 test_transport_api_restart_2peers_peer2.conf\
1317 test_transport_api_tcp_nat_peer1.conf\
1318 test_transport_api_tcp_nat_peer2.conf\
1319 test_transport_api_tcp_peer1.conf\
1320 test_transport_api_tcp_peer2.conf\
1321 test_transport_api_udp_nat_peer1.conf\
1322 test_transport_api_udp_nat_peer2.conf\
1323 test_transport_api_udp_peer1.conf\
1324 test_transport_api_udp_peer2.conf\
1325 test_transport_api_timeout_udp_peer1.conf\
1326 test_transport_api_timeout_udp_peer2.conf\
1327 test_transport_api_unix_peer1.conf\
1328 test_transport_api_unix_peer2.conf\
1329 test_transport_api_unix_abstract_peer1.conf \
1330 test_transport_api_unix_abstract_peer2.conf \
1331 test_transport_api_timeout_unix_peer1.conf\
1332 test_transport_api_timeout_unix_peer2.conf\
1333 test_transport_api_timeout_wlan_peer1.conf \
1334 test_transport_api_timeout_wlan_peer2.conf \
1335 test_transport_api_timeout_bluetooth_peer1.conf\
1336 test_transport_api_timeout_bluetooth_peer2.conf\
1337 test_transport_api_reliability_udp_peer1.conf\
1338 test_transport_api_reliability_udp_peer2.conf\
1339 test_transport_api_reliability_http_xhr_peer1.conf\
1340 test_transport_api_reliability_http_xhr_peer2.conf\
1341 test_transport_api_reliability_https_xhr_peer1.conf\
1342 test_transport_api_reliability_https_xhr_peer2.conf\
1343 test_transport_api_reliability_unix_peer1.conf\
1344 test_transport_api_reliability_unix_peer2.conf\
1345 test_transport_api_reliability_wlan_peer1.conf\
1346 test_transport_api_reliability_wlan_peer2.conf\
1347 test_transport_api_unreliability_wlan_peer1.conf\
1348 test_transport_api_unreliability_wlan_peer2.conf\
1349 test_transport_api_reliability_bluetooth_peer1.conf\
1350 test_transport_api_reliability_bluetooth_peer2.conf\
1351 test_transport_api_wlan_peer1.conf\
1352 test_transport_api_wlan_peer2.conf\
1353 test_transport_api_bluetooth_peer1.conf\
1354 test_transport_api_bluetooth_peer2.conf\
1355 test_transport_api_monitor_peers_peer1.conf\
1356 test_transport_api_monitor_peers_peer2.conf\
1357 test_transport_api_monitor_validation_peer1.conf\
1358 test_transport_api_monitor_validation_peer2.conf\
1359 test_transport_defaults.conf\
1360 test_transport_api_disconnect_tcp_peer1.conf\
1361 test_transport_api_disconnect_tcp_peer2.conf\
1362 test_transport_api_timeout_http_peer1.conf\
1363 test_transport_api_timeout_http_peer2.conf\
1364 test_transport_api_timeout_https_peer1.conf\
1365 test_transport_api_timeout_https_peer2.conf\
1366 test_transport_blacklisting_cfg_peer1.conf \
1367 test_transport_blacklisting_cfg_peer2.conf \
1368 test_transport_blacklisting_cfg_blp_peer1_full.conf\
1369 test_transport_blacklisting_cfg_blp_peer1_plugin.conf \
1370 test_transport_blacklisting_cfg_blp_peer2_full.conf\
1371 test_transport_blacklisting_cfg_blp_peer2_plugin.conf \
1372 test_transport_blacklisting_cfg_blp_peer1_multiple_plugins.conf \
1373 test_transport_blacklisting_cfg_blp_peer2_multiple_plugins.conf \
1374 test_transport_api_http_reverse_peer1.conf \
1375 test_transport_api_http_reverse_peer2.conf \
1376 perf_tcp_peer1.conf \
1377 perf_tcp_peer2.conf \
1378 test_transport_api_slow_ats_peer1.conf \
1379 test_transport_api_slow_ats_peer2.conf \
1380   tcp_connection_legacy.c \
1381   tcp_server_mst_legacy.c \
1382   tcp_server_legacy.c \
1383   tcp_service_legacy.c