2b3f81567d48ba5ba2b6817cd667b07fae436837
[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   $(UNIX_PLUGIN_LA) \
286   $(HTTP_CLIENT_PLUGIN_LA) \
287   $(HTTPS_CLIENT_PLUGIN_LA) \
288   $(HTTP_SERVER_PLUGIN_LA) \
289   $(HTTPS_SERVER_PLUGIN_LA) \
290   $(WLAN_PLUGIN_LA) \
291   $(BT_PLUGIN_LA)
292
293 # Note: real plugins of course need to be added
294 # to the plugin_LTLIBRARIES above
295 noinst_LTLIBRARIES = \
296   libgnunet_plugin_transport_template.la
297
298 libgnunet_plugin_transport_tcp_la_SOURCES = \
299   plugin_transport_tcp.c 
300 libgnunet_plugin_transport_tcp_la_LIBADD = \
301   $(top_builddir)/src/hello/libgnunethello.la \
302   $(top_builddir)/src/statistics/libgnunetstatistics.la \
303   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
304   $(top_builddir)/src/nat/libgnunetnatnew.la \
305   $(top_builddir)/src/util/libgnunetutil.la \
306   $(LTLIBINTL)
307 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
308  $(GN_PLUGIN_LDFLAGS)
309
310 libgnunet_plugin_transport_xt_la_SOURCES = \
311   plugin_transport_xt.c 
312 libgnunet_plugin_transport_xt_la_LIBADD = \
313   $(top_builddir)/src/hello/libgnunethello.la \
314   $(top_builddir)/src/statistics/libgnunetstatistics.la \
315   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
316   $(top_builddir)/src/nat/libgnunetnatnew.la \
317   $(top_builddir)/src/util/libgnunetutil.la \
318   $(LTLIBINTL)
319 libgnunet_plugin_transport_xt_la_LDFLAGS = \
320  $(GN_PLUGIN_LDFLAGS)
321
322 libgnunet_plugin_transport_template_la_SOURCES = \
323   plugin_transport_template.c
324 libgnunet_plugin_transport_template_la_LIBADD = \
325   $(top_builddir)/src/util/libgnunetutil.la \
326   $(LTLIBINTL)
327 libgnunet_plugin_transport_template_la_LDFLAGS = \
328  $(GN_PLUGIN_LDFLAGS)
329
330 libgnunet_plugin_transport_wlan_la_SOURCES = \
331   plugin_transport_wlan.c plugin_transport_wlan.h
332 libgnunet_plugin_transport_wlan_la_LIBADD = \
333   $(top_builddir)/src/hello/libgnunethello.la \
334   $(top_builddir)/src/statistics/libgnunetstatistics.la \
335   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
336   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
337   $(top_builddir)/src/util/libgnunetutil.la
338 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
339   $(GN_PLUGIN_LDFLAGS)
340 libgnunet_plugin_transport_wlan_la_CFLAGS = \
341  $(CFLAGS) -DBUILD_WLAN
342
343 libgnunet_plugin_transport_bluetooth_la_SOURCES = \
344   plugin_transport_wlan.c plugin_transport_wlan.h
345 libgnunet_plugin_transport_bluetooth_la_LIBADD = \
346   $(top_builddir)/src/hello/libgnunethello.la \
347   $(top_builddir)/src/statistics/libgnunetstatistics.la \
348   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
349   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
350   $(top_builddir)/src/util/libgnunetutil.la
351 libgnunet_plugin_transport_bluetooth_la_LDFLAGS = \
352   $(GN_PLUGIN_LDFLAGS)
353 libgnunet_plugin_transport_bluetooth_la_CFLAGS = \
354  $(CFLAGS) -DBUILD_BLUETOOTH
355
356 libgnunet_plugin_transport_udp_la_SOURCES = \
357   plugin_transport_udp.c plugin_transport_udp.h \
358   plugin_transport_udp_broadcasting.c
359 libgnunet_plugin_transport_udp_la_LIBADD = \
360   $(top_builddir)/src/hello/libgnunethello.la \
361   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
362   $(top_builddir)/src/statistics/libgnunetstatistics.la \
363   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
364   $(top_builddir)/src/nat/libgnunetnatnew.la \
365   $(top_builddir)/src/util/libgnunetutil.la \
366   $(LTLIBINTL)
367 libgnunet_plugin_transport_udp_la_LDFLAGS = \
368  $(GN_PLUGIN_LDFLAGS)
369
370 libgnunet_plugin_transport_unix_la_SOURCES = \
371   plugin_transport_unix.c
372 libgnunet_plugin_transport_unix_la_LIBADD = \
373   $(top_builddir)/src/hello/libgnunethello.la \
374   $(top_builddir)/src/statistics/libgnunetstatistics.la \
375   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
376   $(top_builddir)/src/util/libgnunetutil.la \
377   $(LTLIBINTL)
378 libgnunet_plugin_transport_unix_la_LDFLAGS = \
379  $(GN_PLUGIN_LDFLAGS)
380
381
382 libgnunet_plugin_transport_http_client_la_SOURCES = \
383   plugin_transport_http_client.c plugin_transport_http_common.c plugin_transport_http_common.h
384 libgnunet_plugin_transport_http_client_la_LIBADD = \
385   $(top_builddir)/src/hello/libgnunethello.la \
386   $(top_builddir)/src/statistics/libgnunetstatistics.la \
387   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
388   $(LIB_GNURL) \
389   $(top_builddir)/src/util/libgnunetutil.la
390 libgnunet_plugin_transport_http_client_la_LDFLAGS = \
391  $(GN_PLUGIN_LDFLAGS)
392 libgnunet_plugin_transport_http_client_la_CFLAGS = \
393  $(CFLAGS)
394 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
395  $(CPP_GNURL) $(AM_CPPFLAGS)
396
397
398 libgnunet_plugin_transport_http_server_la_SOURCES = \
399   plugin_transport_http_server.c plugin_transport_http_common.c
400 libgnunet_plugin_transport_http_server_la_LIBADD = \
401   $(top_builddir)/src/hello/libgnunethello.la \
402   $(top_builddir)/src/statistics/libgnunetstatistics.la \
403   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
404   $(top_builddir)/src/nat/libgnunetnatnew.la \
405   $(top_builddir)/src/util/libgnunetutil.la
406 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
407  $(GN_LIBMHD) \
408  $(GN_PLUGIN_LDFLAGS)
409 libgnunet_plugin_transport_http_server_la_CFLAGS = \
410  $(CFLAGS)
411
412 libgnunet_plugin_transport_https_client_la_SOURCES = \
413   plugin_transport_http_client.c plugin_transport_http_common.c
414 libgnunet_plugin_transport_https_client_la_LIBADD = \
415   $(top_builddir)/src/hello/libgnunethello.la \
416   $(top_builddir)/src/statistics/libgnunetstatistics.la \
417   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
418   $(LIB_GNURL) \
419   $(top_builddir)/src/util/libgnunetutil.la
420 libgnunet_plugin_transport_https_client_la_LDFLAGS = \
421  $(GN_PLUGIN_LDFLAGS)
422 libgnunet_plugin_transport_https_client_la_CFLAGS = \
423  $(CFLAGS) -DBUILD_HTTPS
424 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
425  $(CPP_GNURL) $(AM_CPPFLAGS)
426
427
428 libgnunet_plugin_transport_https_server_la_SOURCES = \
429   plugin_transport_http_server.c plugin_transport_http_common.c
430 libgnunet_plugin_transport_https_server_la_LIBADD = \
431   $(top_builddir)/src/hello/libgnunethello.la \
432   $(top_builddir)/src/statistics/libgnunetstatistics.la \
433   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
434   $(top_builddir)/src/nat/libgnunetnatnew.la \
435   $(top_builddir)/src/util/libgnunetutil.la
436 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
437  $(GN_LIBMHD) \
438  $(GN_PLUGIN_LDFLAGS)
439 libgnunet_plugin_transport_https_server_la_CFLAGS = \
440  $(CFLAGS) -DBUILD_HTTPS
441
442
443 if HAVE_TESTING
444 check_PROGRAMS = \
445  test_transport_address_switch_tcp \
446  test_transport_address_switch_udp \
447  test_transport_testing_startstop \
448  test_transport_testing_restart \
449  test_plugin_tcp \
450  test_plugin_udp \
451  $(UNIX_TEST) \
452  $(WLAN_PLUGIN_TEST) \
453  $(BT_PLUGIN_TEST) \
454  test_http_common \
455  $(HTTP_CLIENT_PLUGIN_TEST) \
456  $(HTTPS_CLIENT_PLUGIN_TEST) \
457  $(HTTP_SERVER_PLUGIN_TEST) \
458  $(HTTPS_SERVER_PLUGIN_TEST) \
459  test_transport_api_blacklisting_tcp \
460  test_transport_api_disconnect_tcp \
461  test_transport_api_tcp \
462  test_transport_api_restart_1peer \
463  test_transport_api_restart_2peers \
464  test_transport_api_timeout_tcp \
465  test_transport_api_limited_sockets_tcp \
466  test_transport_api_tcp_nat \
467  test_transport_api_udp \
468  test_transport_api_timeout_udp \
469  $(UNIX_PLUGIN_TEST) \
470  $(UNIX_PLUGIN_TIMEOUT_TEST) \
471  $(UNIX_API_ABSTRACT_TEST) \
472  test_transport_api_udp_nat \
473  $(HTTP_API_TEST) \
474  $(HTTP_REVERSE_API_TEST) \
475  $(HTTP_API_TIMEOUT_TEST) \
476  $(HTTP_SWITCH) \
477  $(HTTPS_API_TEST) \
478  $(HTTPS_API_TIMEOUT_TEST) \
479  $(HTTPS_SWITCH) \
480  $(WLAN_API_TEST) \
481  $(WLAN_TIMEOUT_TEST) \
482  $(BT_API_TEST) \
483  $(BT_TIMEOUT_TEST) \
484  test_transport_api_multi \
485  test_transport_api_monitor_peers \
486  test_transport_blacklisting_no_bl \
487  test_transport_blacklisting_outbound_bl_full \
488  test_transport_blacklisting_outbound_bl_plugin \
489  test_transport_blacklisting_inbound_bl_plugin \
490  test_transport_blacklisting_inbound_bl_full \
491  test_transport_blacklisting_multiple_plugins \
492  test_transport_api_manipulation_send_tcp \
493  test_transport_api_manipulation_recv_tcp \
494  test_transport_api_manipulation_cfg \
495  test_transport_api_reliability_tcp \
496  test_transport_api_reliability_tcp_nat \
497  test_transport_api_reliability_udp \
498  $(UNIX_REL_TEST) \
499  $(HTTP_REL_TEST) \
500  $(HTTPS_REL_TEST) \
501  $(WLAN_REL_TEST) \
502  $(WLAN_UREL_TEST) \
503  $(BT_REL_TEST) \
504  $(BT_UREL_TEST) \
505  test_quota_compliance_tcp \
506  test_quota_compliance_tcp_asymmetric \
507  test_quota_compliance_udp \
508  $(UNIX_QUOTA_TEST) \
509  $(HTTP_QUOTA_TEST) \
510  $(HTTPS_QUOTA_TEST) \
511  $(WLAN_QUOTA_TEST) \
512  $(BT_QUOTA_TEST)
513 if HAVE_GETOPT_BINARY
514 check_PROGRAMS += \
515 test_transport_api_slow_ats
516 endif
517 endif
518
519 if ENABLE_TEST_RUN
520 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
521 TESTS = \
522  test_transport_address_switch_tcp \
523  test_transport_address_switch_udp \
524  $(HTTP_SWITCH) \
525  $(HTTPS_SWITCH) \
526  test_transport_testing_startstop \
527  test_transport_testing_restart \
528  test_plugin_tcp \
529  test_plugin_udp \
530  $(UNIX_TEST) \
531  $(WLAN_PLUGIN_TEST) \
532  $(BT_PLUGIN_TEST) \
533  test_transport_api_blacklisting_tcp \
534  test_transport_api_disconnect_tcp \
535  test_transport_api_tcp \
536  test_transport_api_restart_1peer \
537  test_transport_api_restart_2peers \
538  test_transport_api_limited_sockets_tcp \
539  test_transport_api_tcp_nat \
540  test_transport_api_udp \
541  $(UNIX_PLUGIN_TEST) \
542  $(UNIX_API_ABSTRACT_TEST) \
543  test_transport_api_udp_nat \
544  $(HTTP_API_TEST) \
545  $(HTTPS_API_TEST) \
546  $(WLAN_API_TEST) \
547  $(BT_API_TEST) \
548  test_transport_api_multi \
549  test_transport_api_monitor_peers \
550  test_transport_blacklisting_no_bl \
551  test_transport_blacklisting_outbound_bl_full \
552  test_transport_blacklisting_outbound_bl_plugin \
553  test_transport_blacklisting_inbound_bl_plugin \
554  test_transport_blacklisting_inbound_bl_full \
555  test_transport_blacklisting_multiple_plugins \
556  test_transport_api_manipulation_send_tcp \
557  test_transport_api_manipulation_recv_tcp \
558  test_transport_api_manipulation_cfg \
559  test_transport_api_reliability_tcp \
560  test_transport_api_reliability_tcp_nat \
561  test_transport_api_reliability_udp \
562  $(UNIX_REL_TEST) \
563  $(HTTP_REL_TEST) \
564  $(HTTPS_REL_TEST) \
565  $(WLAN_REL_TEST) \
566  $(WLAN_UREL_TEST) \
567  $(BT_REL_TEST) \
568  $(BT_UREL_TEST) \
569  test_quota_compliance_tcp \
570  test_quota_compliance_tcp_asymmetric \
571  test_quota_compliance_udp \
572  $(UNIX_QUOTA_TEST) \
573  $(HTTP_QUOTA_TEST) \
574  $(HTTPS_QUOTA_TEST) \
575  test_transport_api_timeout_tcp \
576  test_transport_api_timeout_udp \
577  $(UNIX_PLUGIN_TIMEOUT_TEST) \
578  $(HTTP_API_TIMEOUT_TEST) \
579  $(HTTPS_API_TIMEOUT_TEST) \
580  $(WLAN_TIMEOUT_TEST) \
581  $(BT_TIMEOUT_TEST)
582 if HAVE_GETOPT_BINARY
583 TESTS += \
584 test_transport_api_slow_ats
585 endif
586 endif
587
588 test_transport_testing_startstop_SOURCES = \
589  test_transport_testing_startstop.c
590 test_transport_testing_startstop_LDADD = \
591  $(top_builddir)/src/util/libgnunetutil.la \
592  libgnunettransport.la \
593  $(top_builddir)/src/hello/libgnunethello.la \
594  libgnunettransporttesting.la
595
596 test_transport_testing_restart_SOURCES = \
597  test_transport_testing_restart.c
598 test_transport_testing_restart_LDADD = \
599  $(top_builddir)/src/util/libgnunetutil.la \
600  libgnunettransport.la \
601  $(top_builddir)/src/hello/libgnunethello.la \
602  libgnunettransporttesting.la
603
604 test_transport_api_blacklisting_tcp_SOURCES = \
605  test_transport_api_blacklisting.c
606 test_transport_api_blacklisting_tcp_LDADD = \
607  libgnunettransport.la \
608  $(top_builddir)/src/hello/libgnunethello.la \
609  $(top_builddir)/src/statistics/libgnunetstatistics.la \
610  $(top_builddir)/src/util/libgnunetutil.la \
611  libgnunettransporttesting.la
612
613 test_transport_blacklisting_no_bl_SOURCES = \
614  test_transport_blacklisting.c
615 test_transport_blacklisting_no_bl_LDADD = \
616  libgnunettransport.la \
617  $(top_builddir)/src/hello/libgnunethello.la \
618  $(top_builddir)/src/statistics/libgnunetstatistics.la \
619  $(top_builddir)/src/util/libgnunetutil.la \
620  libgnunettransporttesting.la
621
622 test_transport_blacklisting_outbound_bl_full_SOURCES = \
623  test_transport_blacklisting.c
624 test_transport_blacklisting_outbound_bl_full_LDADD = \
625  libgnunettransport.la \
626  $(top_builddir)/src/hello/libgnunethello.la \
627  $(top_builddir)/src/statistics/libgnunetstatistics.la \
628  $(top_builddir)/src/util/libgnunetutil.la \
629  libgnunettransporttesting.la
630
631 test_transport_blacklisting_outbound_bl_plugin_SOURCES = \
632  test_transport_blacklisting.c
633 test_transport_blacklisting_outbound_bl_plugin_LDADD = \
634  libgnunettransport.la \
635  $(top_builddir)/src/hello/libgnunethello.la \
636  $(top_builddir)/src/statistics/libgnunetstatistics.la \
637  $(top_builddir)/src/util/libgnunetutil.la \
638  libgnunettransporttesting.la
639
640 test_transport_blacklisting_inbound_bl_full_SOURCES = \
641  test_transport_blacklisting.c
642 test_transport_blacklisting_inbound_bl_full_LDADD = \
643  libgnunettransport.la \
644  $(top_builddir)/src/hello/libgnunethello.la \
645  $(top_builddir)/src/statistics/libgnunetstatistics.la \
646  $(top_builddir)/src/util/libgnunetutil.la \
647  libgnunettransporttesting.la
648
649 test_transport_blacklisting_inbound_bl_plugin_SOURCES = \
650  test_transport_blacklisting.c
651 test_transport_blacklisting_inbound_bl_plugin_LDADD = \
652  libgnunettransport.la \
653  $(top_builddir)/src/hello/libgnunethello.la \
654  $(top_builddir)/src/statistics/libgnunetstatistics.la \
655  $(top_builddir)/src/util/libgnunetutil.la \
656  libgnunettransporttesting.la
657
658 test_transport_blacklisting_multiple_plugins_SOURCES = \
659  test_transport_blacklisting.c
660 test_transport_blacklisting_multiple_plugins_LDADD = \
661  libgnunettransport.la \
662  $(top_builddir)/src/hello/libgnunethello.la \
663  $(top_builddir)/src/statistics/libgnunetstatistics.la \
664  $(top_builddir)/src/util/libgnunetutil.la \
665  libgnunettransporttesting.la
666
667
668 test_transport_api_disconnect_tcp_SOURCES = \
669  test_transport_api_disconnect.c
670 test_transport_api_disconnect_tcp_LDADD = \
671  libgnunettransport.la \
672  $(top_builddir)/src/hello/libgnunethello.la \
673  $(top_builddir)/src/statistics/libgnunetstatistics.la \
674  $(top_builddir)/src/util/libgnunetutil.la \
675  libgnunettransporttesting.la
676
677 test_plugin_tcp_SOURCES = \
678  test_plugin_transport.c
679 test_plugin_tcp_LDADD = \
680  libgnunettransport.la \
681  $(top_builddir)/src/statistics/libgnunetstatistics.la \
682  $(top_builddir)/src/hello/libgnunethello.la \
683  $(top_builddir)/src/util/libgnunetutil.la  \
684  libgnunettransporttesting.la
685
686 test_plugin_udp_SOURCES = \
687  test_plugin_transport.c
688 test_plugin_udp_LDADD = \
689  libgnunettransport.la \
690  $(top_builddir)/src/statistics/libgnunetstatistics.la \
691  $(top_builddir)/src/hello/libgnunethello.la \
692  $(top_builddir)/src/util/libgnunetutil.la  \
693  libgnunettransporttesting.la
694
695 test_plugin_unix_SOURCES = \
696  test_plugin_transport.c
697 test_plugin_unix_LDADD = \
698  libgnunettransport.la \
699  $(top_builddir)/src/statistics/libgnunetstatistics.la \
700  $(top_builddir)/src/hello/libgnunethello.la \
701  $(top_builddir)/src/util/libgnunetutil.la  \
702  libgnunettransporttesting.la
703
704 test_plugin_wlan_SOURCES = \
705  test_plugin_transport.c
706 test_plugin_wlan_LDADD = \
707  libgnunettransport.la \
708  $(top_builddir)/src/statistics/libgnunetstatistics.la \
709  $(top_builddir)/src/hello/libgnunethello.la \
710  $(top_builddir)/src/util/libgnunetutil.la  \
711  libgnunettransporttesting.la
712
713 test_plugin_bluetooth_SOURCES = \
714  test_plugin_transport.c
715 test_plugin_bluetooth_LDADD = \
716  libgnunettransport.la \
717  $(top_builddir)/src/statistics/libgnunetstatistics.la \
718  $(top_builddir)/src/hello/libgnunethello.la \
719  $(top_builddir)/src/util/libgnunetutil.la  \
720  libgnunettransporttesting.la
721
722 test_http_common_SOURCES = \
723  test_http_common.c plugin_transport_http_common.c
724 test_http_common_LDADD = \
725  libgnunettransport.la \
726  $(top_builddir)/src/statistics/libgnunetstatistics.la \
727  $(top_builddir)/src/hello/libgnunethello.la \
728  $(top_builddir)/src/util/libgnunetutil.la  \
729  libgnunettransporttesting.la
730
731 test_plugin_http_server_SOURCES = \
732  test_plugin_transport.c
733 test_plugin_http_server_LDADD = \
734  libgnunettransport.la \
735  $(top_builddir)/src/statistics/libgnunetstatistics.la \
736  $(top_builddir)/src/hello/libgnunethello.la \
737  $(top_builddir)/src/util/libgnunetutil.la  \
738  libgnunettransporttesting.la
739
740 test_plugin_https_server_SOURCES = \
741  test_plugin_transport.c
742 test_plugin_https_server_LDADD = \
743  libgnunettransport.la \
744  $(top_builddir)/src/statistics/libgnunetstatistics.la \
745  $(top_builddir)/src/hello/libgnunethello.la \
746  $(top_builddir)/src/util/libgnunetutil.la  \
747  libgnunettransporttesting.la
748
749 test_plugin_http_client_SOURCES = \
750  test_plugin_transport.c
751 test_plugin_http_client_LDADD = \
752  libgnunettransport.la \
753  $(top_builddir)/src/statistics/libgnunetstatistics.la \
754  $(top_builddir)/src/hello/libgnunethello.la \
755  $(top_builddir)/src/util/libgnunetutil.la  \
756  libgnunettransporttesting.la
757
758 test_plugin_https_client_SOURCES = \
759  test_plugin_transport.c
760 test_plugin_https_client_LDADD = \
761  libgnunettransport.la \
762  $(top_builddir)/src/statistics/libgnunetstatistics.la \
763  $(top_builddir)/src/hello/libgnunethello.la \
764  $(top_builddir)/src/util/libgnunetutil.la  \
765  libgnunettransporttesting.la
766
767 test_transport_api_tcp_SOURCES = \
768  test_transport_api.c
769 test_transport_api_tcp_LDADD = \
770  libgnunettransport.la \
771  $(top_builddir)/src/hello/libgnunethello.la \
772  $(top_builddir)/src/util/libgnunetutil.la  \
773  libgnunettransporttesting.la
774
775 test_transport_api_restart_1peer_SOURCES = \
776  test_transport_api_restart_reconnect.c
777 test_transport_api_restart_1peer_LDADD = \
778  libgnunettransport.la \
779  $(top_builddir)/src/hello/libgnunethello.la \
780  $(top_builddir)/src/ats/libgnunetats.la \
781  $(top_builddir)/src/statistics/libgnunetstatistics.la \
782  $(top_builddir)/src/util/libgnunetutil.la \
783  libgnunettransporttesting.la
784
785 test_transport_api_restart_2peers_SOURCES = \
786  test_transport_api_restart_reconnect.c
787 test_transport_api_restart_2peers_LDADD = \
788  libgnunettransport.la \
789  $(top_builddir)/src/hello/libgnunethello.la \
790  $(top_builddir)/src/ats/libgnunetats.la \
791 $(top_builddir)/src/statistics/libgnunetstatistics.la \
792  $(top_builddir)/src/util/libgnunetutil.la \
793  libgnunettransporttesting.la
794
795 test_transport_api_limited_sockets_tcp_SOURCES = \
796  test_transport_api_limited_sockets.c
797 test_transport_api_limited_sockets_tcp_LDADD = \
798  libgnunettransport.la \
799  $(top_builddir)/src/hello/libgnunethello.la \
800  $(top_builddir)/src/util/libgnunetutil.la  \
801  libgnunettransporttesting.la
802
803 test_transport_api_tcp_nat_SOURCES = \
804  test_transport_api.c
805 test_transport_api_tcp_nat_LDADD = \
806  libgnunettransport.la \
807  $(top_builddir)/src/hello/libgnunethello.la \
808  $(top_builddir)/src/util/libgnunetutil.la \
809  libgnunettransporttesting.la
810
811 test_transport_api_manipulation_send_tcp_SOURCES = \
812  test_transport_api_manipulation_send_tcp.c
813 test_transport_api_manipulation_send_tcp_LDADD = \
814  libgnunettransport.la \
815  $(top_builddir)/src/hello/libgnunethello.la \
816  $(top_builddir)/src/util/libgnunetutil.la \
817  libgnunettransporttesting.la
818
819 test_transport_api_manipulation_recv_tcp_SOURCES = \
820  test_transport_api_manipulation_recv_tcp.c
821 test_transport_api_manipulation_recv_tcp_LDADD = \
822  libgnunettransport.la \
823  $(top_builddir)/src/hello/libgnunethello.la \
824  $(top_builddir)/src/util/libgnunetutil.la \
825  libgnunettransporttesting.la
826
827 test_transport_api_manipulation_cfg_SOURCES = \
828  test_transport_api_manipulation_cfg.c
829 test_transport_api_manipulation_cfg_LDADD = \
830  libgnunettransport.la \
831  $(top_builddir)/src/hello/libgnunethello.la \
832  $(top_builddir)/src/util/libgnunetutil.la \
833  libgnunettransporttesting.la
834
835 test_transport_api_reliability_tcp_SOURCES = \
836  test_transport_api_reliability.c
837 test_transport_api_reliability_tcp_LDADD = \
838  libgnunettransport.la \
839  $(top_builddir)/src/hello/libgnunethello.la \
840  $(top_builddir)/src/util/libgnunetutil.la \
841  libgnunettransporttesting.la
842
843 test_transport_api_timeout_tcp_SOURCES = \
844  test_transport_api_timeout.c
845 test_transport_api_timeout_tcp_LDADD = \
846  libgnunettransport.la \
847  $(top_builddir)/src/hello/libgnunethello.la \
848  $(top_builddir)/src/util/libgnunetutil.la \
849  libgnunettransporttesting.la
850
851 test_transport_api_timeout_unix_SOURCES = \
852  test_transport_api_timeout.c
853 test_transport_api_timeout_unix_LDADD = \
854  libgnunettransport.la \
855  $(top_builddir)/src/hello/libgnunethello.la \
856  $(top_builddir)/src/util/libgnunetutil.la \
857  libgnunettransporttesting.la
858
859 test_transport_api_timeout_wlan_SOURCES = \
860  test_transport_api_timeout.c
861 test_transport_api_timeout_wlan_LDADD = \
862  libgnunettransport.la \
863  $(top_builddir)/src/hello/libgnunethello.la \
864  $(top_builddir)/src/util/libgnunetutil.la \
865  libgnunettransporttesting.la
866
867 test_transport_api_timeout_bluetooth_SOURCES = \
868  test_transport_api_timeout.c
869 test_transport_api_timeout_bluetooth_LDADD = \
870  libgnunettransport.la \
871  $(top_builddir)/src/hello/libgnunethello.la \
872  $(top_builddir)/src/util/libgnunetutil.la \
873  libgnunettransporttesting.la
874
875 test_transport_api_reliability_tcp_nat_SOURCES = \
876  test_transport_api_reliability.c
877 test_transport_api_reliability_tcp_nat_LDADD = \
878  libgnunettransport.la \
879  $(top_builddir)/src/hello/libgnunethello.la \
880  $(top_builddir)/src/util/libgnunetutil.la \
881  libgnunettransporttesting.la
882
883 test_transport_api_reliability_bluetooth_SOURCES = \
884  test_transport_api_reliability.c
885 test_transport_api_reliability_bluetooth_LDADD = \
886  libgnunettransport.la \
887  $(top_builddir)/src/hello/libgnunethello.la \
888  $(top_builddir)/src/util/libgnunetutil.la \
889  libgnunettransporttesting.la
890
891 test_transport_api_reliability_wlan_SOURCES = \
892  test_transport_api_reliability.c
893 test_transport_api_reliability_wlan_LDADD = \
894  libgnunettransport.la \
895  $(top_builddir)/src/hello/libgnunethello.la \
896  $(top_builddir)/src/util/libgnunetutil.la \
897  libgnunettransporttesting.la
898
899 test_transport_api_udp_SOURCES = \
900  test_transport_api.c
901 test_transport_api_udp_LDADD = \
902  libgnunettransport.la \
903  $(top_builddir)/src/hello/libgnunethello.la \
904  $(top_builddir)/src/util/libgnunetutil.la  \
905  libgnunettransporttesting.la
906
907 test_transport_api_timeout_udp_SOURCES = \
908  test_transport_api_timeout.c
909 test_transport_api_timeout_udp_LDADD = \
910  libgnunettransport.la \
911  $(top_builddir)/src/hello/libgnunethello.la \
912  $(top_builddir)/src/util/libgnunetutil.la \
913  libgnunettransporttesting.la
914
915 test_transport_api_udp_nat_SOURCES = \
916  test_transport_api.c
917 test_transport_api_udp_nat_LDADD = \
918  libgnunettransport.la \
919  $(top_builddir)/src/hello/libgnunethello.la \
920  $(top_builddir)/src/util/libgnunetutil.la  \
921  libgnunettransporttesting.la
922
923 test_transport_api_unix_SOURCES = \
924  test_transport_api.c
925 test_transport_api_unix_LDADD = \
926  libgnunettransport.la \
927  $(top_builddir)/src/hello/libgnunethello.la \
928  $(top_builddir)/src/util/libgnunetutil.la \
929  libgnunettransporttesting.la
930
931 test_transport_api_unix_abstract_SOURCES = \
932  test_transport_api.c
933 test_transport_api_unix_abstract_LDADD = \
934  libgnunettransport.la \
935  $(top_builddir)/src/hello/libgnunethello.la \
936  $(top_builddir)/src/util/libgnunetutil.la \
937  libgnunettransporttesting.la
938
939 # HTTP tests
940 test_transport_api_http_SOURCES = \
941  test_transport_api.c
942 test_transport_api_http_LDADD = \
943  libgnunettransport.la \
944  $(top_builddir)/src/hello/libgnunethello.la \
945  $(top_builddir)/src/util/libgnunetutil.la \
946  libgnunettransporttesting.la
947
948 test_transport_api_http_reverse_SOURCES = \
949  test_transport_api.c
950 test_transport_api_http_reverse_LDADD = \
951  libgnunettransport.la \
952  $(top_builddir)/src/hello/libgnunethello.la \
953  $(top_builddir)/src/util/libgnunetutil.la \
954  libgnunettransporttesting.la
955
956 test_transport_api_timeout_http_SOURCES = \
957  test_transport_api_timeout.c
958 test_transport_api_timeout_http_LDADD = \
959  libgnunettransport.la \
960  $(top_builddir)/src/hello/libgnunethello.la \
961  $(top_builddir)/src/util/libgnunetutil.la \
962  libgnunettransporttesting.la
963
964 test_transport_api_reliability_http_SOURCES = \
965  test_transport_api_reliability.c
966 test_transport_api_reliability_http_LDADD = \
967  libgnunettransport.la \
968  $(top_builddir)/src/hello/libgnunethello.la \
969  $(top_builddir)/src/util/libgnunetutil.la \
970  libgnunettransporttesting.la
971
972 test_transport_api_reliability_http_xhr_SOURCES = \
973  test_transport_api_reliability.c
974 test_transport_api_reliability_http_xhr_LDADD = \
975  libgnunettransport.la \
976  $(top_builddir)/src/hello/libgnunethello.la \
977  $(top_builddir)/src/util/libgnunetutil.la \
978  libgnunettransporttesting.la
979
980 test_quota_compliance_http_SOURCES = \
981  test_quota_compliance.c
982 test_quota_compliance_http_LDADD = \
983  libgnunettransport.la \
984  $(top_builddir)/src/hello/libgnunethello.la \
985  $(top_builddir)/src/ats/libgnunetats.la \
986  $(top_builddir)/src/util/libgnunetutil.la \
987  libgnunettransporttesting.la
988
989 test_quota_compliance_http_asymmetric_SOURCES = \
990  test_quota_compliance.c
991 test_quota_compliance_http_asymmetric_LDADD = \
992  libgnunettransport.la \
993  $(top_builddir)/src/hello/libgnunethello.la \
994  $(top_builddir)/src/ats/libgnunetats.la \
995  $(top_builddir)/src/util/libgnunetutil.la \
996  libgnunettransporttesting.la
997
998 test_quota_compliance_https_SOURCES = \
999  test_quota_compliance.c
1000 test_quota_compliance_https_LDADD = \
1001  libgnunettransport.la \
1002  $(top_builddir)/src/hello/libgnunethello.la \
1003  $(top_builddir)/src/ats/libgnunetats.la \
1004  $(top_builddir)/src/util/libgnunetutil.la \
1005  libgnunettransporttesting.la
1006
1007 test_quota_compliance_https_asymmetric_SOURCES = \
1008  test_quota_compliance.c
1009 test_quota_compliance_https_asymmetric_LDADD = \
1010  libgnunettransport.la \
1011  $(top_builddir)/src/hello/libgnunethello.la \
1012  $(top_builddir)/src/ats/libgnunetats.la \
1013  $(top_builddir)/src/util/libgnunetutil.la \
1014  libgnunettransporttesting.la
1015
1016 # HTTPS tests
1017 test_transport_api_https_SOURCES = \
1018  test_transport_api.c
1019 test_transport_api_https_LDADD = \
1020  libgnunettransport.la \
1021  $(top_builddir)/src/hello/libgnunethello.la \
1022  $(top_builddir)/src/util/libgnunetutil.la  \
1023  libgnunettransporttesting.la
1024
1025 test_transport_api_timeout_https_SOURCES = \
1026  test_transport_api_timeout.c
1027 test_transport_api_timeout_https_LDADD = \
1028  libgnunettransport.la \
1029  $(top_builddir)/src/hello/libgnunethello.la \
1030  $(top_builddir)/src/util/libgnunetutil.la \
1031  libgnunettransporttesting.la
1032
1033
1034 test_transport_api_reliability_https_SOURCES = \
1035  test_transport_api_reliability.c
1036 test_transport_api_reliability_https_LDADD = \
1037  libgnunettransport.la \
1038  $(top_builddir)/src/hello/libgnunethello.la \
1039  $(top_builddir)/src/util/libgnunetutil.la \
1040  libgnunettransporttesting.la
1041
1042 test_transport_api_reliability_https_xhr_SOURCES = \
1043  test_transport_api_reliability.c
1044 test_transport_api_reliability_https_xhr_LDADD = \
1045  libgnunettransport.la \
1046  $(top_builddir)/src/hello/libgnunethello.la \
1047  $(top_builddir)/src/util/libgnunetutil.la \
1048  libgnunettransporttesting.la
1049
1050 test_transport_api_reliability_unix_SOURCES = \
1051  test_transport_api_reliability.c
1052 test_transport_api_reliability_unix_LDADD = \
1053  libgnunettransport.la \
1054  $(top_builddir)/src/hello/libgnunethello.la \
1055  $(top_builddir)/src/util/libgnunetutil.la \
1056  libgnunettransporttesting.la
1057
1058 test_transport_api_reliability_udp_SOURCES = \
1059  test_transport_api_reliability.c
1060 test_transport_api_reliability_udp_LDADD = \
1061  libgnunettransport.la \
1062  $(top_builddir)/src/hello/libgnunethello.la \
1063  $(top_builddir)/src/util/libgnunetutil.la \
1064  libgnunettransporttesting.la
1065
1066 if LINUX
1067 test_transport_api_wlan_SOURCES = \
1068  test_transport_api.c
1069 test_transport_api_wlan_LDADD = \
1070  libgnunettransport.la \
1071  $(top_builddir)/src/hello/libgnunethello.la \
1072  $(top_builddir)/src/util/libgnunetutil.la \
1073  libgnunettransporttesting.la
1074 endif
1075
1076 if LINUX
1077 if HAVE_LIBBLUETOOTH
1078 test_transport_api_bluetooth_SOURCES = \
1079  test_transport_api.c
1080 test_transport_api_bluetooth_LDADD = \
1081  libgnunettransport.la \
1082  $(top_builddir)/src/hello/libgnunethello.la \
1083  $(top_builddir)/src/util/libgnunetutil.la \
1084  libgnunettransporttesting.la
1085 endif
1086 endif
1087
1088 test_transport_address_switch_tcp_SOURCES = \
1089  test_transport_address_switch.c
1090 test_transport_address_switch_tcp_LDADD = \
1091  libgnunettransport.la \
1092  $(top_builddir)/src/hello/libgnunethello.la \
1093  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1094  $(top_builddir)/src/util/libgnunetutil.la \
1095  libgnunettransporttesting.la
1096
1097  test_transport_address_switch_udp_SOURCES = \
1098  test_transport_address_switch.c
1099 test_transport_address_switch_udp_LDADD = \
1100  libgnunettransport.la \
1101  $(top_builddir)/src/hello/libgnunethello.la \
1102  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1103  $(top_builddir)/src/util/libgnunetutil.la \
1104  libgnunettransporttesting.la
1105
1106
1107  test_transport_address_switch_http_SOURCES = \
1108  test_transport_address_switch.c
1109 test_transport_address_switch_http_LDADD = \
1110  libgnunettransport.la \
1111  $(top_builddir)/src/hello/libgnunethello.la \
1112  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1113  $(top_builddir)/src/util/libgnunetutil.la \
1114  libgnunettransporttesting.la
1115
1116  test_transport_address_switch_https_SOURCES = \
1117  test_transport_address_switch.c
1118 test_transport_address_switch_https_LDADD = \
1119  libgnunettransport.la \
1120  $(top_builddir)/src/hello/libgnunethello.la \
1121  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1122  $(top_builddir)/src/util/libgnunetutil.la \
1123  libgnunettransporttesting.la
1124
1125 test_quota_compliance_tcp_SOURCES = \
1126  test_quota_compliance.c
1127 test_quota_compliance_tcp_LDADD = \
1128  libgnunettransport.la \
1129  $(top_builddir)/src/hello/libgnunethello.la \
1130  $(top_builddir)/src/ats/libgnunetats.la \
1131  $(top_builddir)/src/util/libgnunetutil.la \
1132  libgnunettransporttesting.la
1133
1134 test_quota_compliance_tcp_asymmetric_SOURCES = \
1135  test_quota_compliance.c
1136 test_quota_compliance_tcp_asymmetric_LDADD = \
1137  libgnunettransport.la \
1138  $(top_builddir)/src/hello/libgnunethello.la \
1139  $(top_builddir)/src/ats/libgnunetats.la \
1140  $(top_builddir)/src/util/libgnunetutil.la \
1141  libgnunettransporttesting.la
1142
1143 test_quota_compliance_udp_SOURCES = \
1144  test_quota_compliance.c
1145 test_quota_compliance_udp_LDADD = \
1146  libgnunettransport.la \
1147  $(top_builddir)/src/hello/libgnunethello.la \
1148  $(top_builddir)/src/ats/libgnunetats.la \
1149  $(top_builddir)/src/util/libgnunetutil.la \
1150  libgnunettransporttesting.la
1151
1152 test_quota_compliance_unix_SOURCES = \
1153  test_quota_compliance.c
1154 test_quota_compliance_unix_LDADD = \
1155  libgnunettransport.la \
1156  $(top_builddir)/src/hello/libgnunethello.la \
1157  $(top_builddir)/src/ats/libgnunetats.la \
1158  $(top_builddir)/src/util/libgnunetutil.la \
1159  libgnunettransporttesting.la
1160
1161 test_quota_compliance_unix_asymmetric_SOURCES = \
1162  test_quota_compliance.c
1163 test_quota_compliance_unix_asymmetric_LDADD = \
1164  libgnunettransport.la \
1165  $(top_builddir)/src/hello/libgnunethello.la \
1166  $(top_builddir)/src/ats/libgnunetats.la \
1167  $(top_builddir)/src/util/libgnunetutil.la \
1168  libgnunettransporttesting.la
1169
1170 test_quota_compliance_wlan_SOURCES = \
1171  test_quota_compliance.c
1172 test_quota_compliance_wlan_LDADD = \
1173  libgnunettransport.la \
1174  $(top_builddir)/src/hello/libgnunethello.la \
1175  $(top_builddir)/src/ats/libgnunetats.la \
1176  $(top_builddir)/src/util/libgnunetutil.la \
1177  libgnunettransporttesting.la
1178
1179 test_quota_compliance_wlan_asymmetric_SOURCES = \
1180  test_quota_compliance.c
1181 test_quota_compliance_wlan_asymmetric_LDADD = \
1182  libgnunettransport.la \
1183  $(top_builddir)/src/hello/libgnunethello.la \
1184  $(top_builddir)/src/ats/libgnunetats.la \
1185  $(top_builddir)/src/util/libgnunetutil.la \
1186  libgnunettransporttesting.la
1187
1188 test_quota_compliance_bluetooth_SOURCES = \
1189  test_quota_compliance.c
1190 test_quota_compliance_bluetooth_LDADD = \
1191  libgnunettransport.la \
1192  $(top_builddir)/src/hello/libgnunethello.la \
1193  $(top_builddir)/src/ats/libgnunetats.la \
1194  $(top_builddir)/src/util/libgnunetutil.la \
1195  libgnunettransporttesting.la
1196
1197 test_quota_compliance_bluetooth_asymmetric_SOURCES = \
1198  test_quota_compliance.c
1199 test_quota_compliance_bluetooth_asymmetric_LDADD = \
1200  libgnunettransport.la \
1201  $(top_builddir)/src/hello/libgnunethello.la \
1202  $(top_builddir)/src/ats/libgnunetats.la \
1203  $(top_builddir)/src/util/libgnunetutil.la \
1204  libgnunettransporttesting.la
1205
1206 test_transport_api_multi_SOURCES = \
1207  test_transport_api.c
1208 test_transport_api_multi_LDADD = \
1209  libgnunettransport.la \
1210  $(top_builddir)/src/hello/libgnunethello.la \
1211  $(top_builddir)/src/util/libgnunetutil.la \
1212  libgnunettransporttesting.la
1213
1214 test_transport_api_monitor_peers_SOURCES = \
1215  test_transport_api_monitor_peers.c
1216 test_transport_api_monitor_peers_LDADD = \
1217  libgnunettransport.la \
1218  $(top_builddir)/src/hello/libgnunethello.la \
1219  $(top_builddir)/src/util/libgnunetutil.la \
1220  libgnunettransporttesting.la
1221
1222 test_transport_api_slow_ats_SOURCES = \
1223  test_transport_api.c
1224 test_transport_api_slow_ats_LDADD = \
1225  libgnunettransport.la \
1226  $(top_builddir)/src/hello/libgnunethello.la \
1227  $(top_builddir)/src/util/libgnunetutil.la  \
1228  libgnunettransporttesting.la
1229
1230
1231 EXTRA_DIST = \
1232 test_plugin_hostkey \
1233 test_plugin_hostkey.ecc \
1234 test_delay \
1235 template_cfg_peer1.conf\
1236 template_cfg_peer2.conf\
1237 test_plugin_transport_data.conf\
1238 test_plugin_transport_data_udp.conf\
1239 test_quota_compliance_data.conf\
1240 test_quota_compliance_http_peer1.conf\
1241 test_quota_compliance_http_peer2.conf\
1242 test_quota_compliance_https_peer1.conf\
1243 test_quota_compliance_https_peer2.conf\
1244 test_quota_compliance_tcp_peer1.conf\
1245 test_quota_compliance_tcp_peer2.conf\
1246 test_quota_compliance_udp_peer1.conf\
1247 test_quota_compliance_udp_peer2.conf\
1248 test_quota_compliance_unix_peer1.conf\
1249 test_quota_compliance_unix_peer2.conf\
1250 test_quota_compliance_wlan_peer1.conf\
1251 test_quota_compliance_wlan_peer2.conf\
1252 test_quota_compliance_bluetooth_peer1.conf\
1253 test_quota_compliance_bluetooth_peer2.conf\
1254 test_quota_compliance_http_asymmetric_peer1.conf\
1255 test_quota_compliance_http_asymmetric_peer2.conf\
1256 test_quota_compliance_https_asymmetric_peer1.conf\
1257 test_quota_compliance_https_asymmetric_peer2.conf\
1258 test_quota_compliance_tcp_asymmetric_peer1.conf\
1259 test_quota_compliance_tcp_asymmetric_peer2.conf\
1260 test_quota_compliance_unix_asymmetric_peer1.conf\
1261 test_quota_compliance_unix_asymmetric_peer2.conf\
1262 test_quota_compliance_wlan_asymmetric_peer1.conf\
1263 test_quota_compliance_wlan_asymmetric_peer2.conf\
1264 test_quota_compliance_bluetooth_asymmetric_peer1.conf\
1265 test_quota_compliance_bluetooth_asymmetric_peer2.conf\
1266 test_transport_api_data.conf\
1267 test_transport_api_blacklisting_tcp_peer1.conf \
1268 test_transport_api_blacklisting_tcp_peer2.conf \
1269 test_transport_api_http_peer1.conf\
1270 test_transport_api_http_peer2.conf\
1271 test_transport_api_https_peer1.conf\
1272 test_transport_api_https_peer2.conf\
1273 test_transport_api_limited_sockets_tcp_peer1.conf\
1274 test_transport_api_limited_sockets_tcp_peer2.conf\
1275 test_transport_api_timeout_tcp_peer1.conf\
1276 test_transport_api_timeout_tcp_peer2.conf\
1277 test_transport_api_multi_peer1.conf\
1278 test_transport_api_multi_peer2.conf\
1279 test_transport_api_restart_1peer_peer1.conf\
1280 test_transport_api_restart_1peer_peer2.conf\
1281 test_transport_api_reliability_http_peer1.conf\
1282 test_transport_api_reliability_http_peer2.conf\
1283 test_transport_api_reliability_https_peer1.conf\
1284 test_transport_api_reliability_https_peer2.conf\
1285 test_transport_api_reliability_tcp_nat_peer1.conf\
1286 test_transport_api_reliability_tcp_nat_peer2.conf\
1287 test_transport_api_reliability_tcp_peer1.conf\
1288 test_transport_api_reliability_tcp_peer2.conf\
1289 test_transport_api_reliability_wlan_peer1.conf\
1290 test_transport_api_reliability_wlan_peer2.conf\
1291 test_transport_api_reliability_bluetooth_peer1.conf\
1292 test_transport_api_reliability_bluetooth_peer2.conf\
1293 test_transport_api_manipulation_send_tcp_peer1.conf\
1294 test_transport_api_manipulation_send_tcp_peer2.conf\
1295 test_transport_api_manipulation_recv_tcp_peer1.conf\
1296 test_transport_api_manipulation_recv_tcp_peer2.conf\
1297 test_transport_api_manipulation_cfg_peer1.conf\
1298 test_transport_api_manipulation_cfg_peer2.conf\
1299 test_transport_api_restart_1peer_peer1.conf\
1300 test_transport_api_restart_1peer_peer2.conf\
1301 test_transport_api_restart_2peers_peer1.conf\
1302 test_transport_api_restart_2peers_peer2.conf\
1303 test_transport_api_tcp_nat_peer1.conf\
1304 test_transport_api_tcp_nat_peer2.conf\
1305 test_transport_api_tcp_peer1.conf\
1306 test_transport_api_tcp_peer2.conf\
1307 test_transport_api_udp_nat_peer1.conf\
1308 test_transport_api_udp_nat_peer2.conf\
1309 test_transport_api_udp_peer1.conf\
1310 test_transport_api_udp_peer2.conf\
1311 test_transport_api_timeout_udp_peer1.conf\
1312 test_transport_api_timeout_udp_peer2.conf\
1313 test_transport_api_unix_peer1.conf\
1314 test_transport_api_unix_peer2.conf\
1315 test_transport_api_unix_abstract_peer1.conf \
1316 test_transport_api_unix_abstract_peer2.conf \
1317 test_transport_api_timeout_unix_peer1.conf\
1318 test_transport_api_timeout_unix_peer2.conf\
1319 test_transport_api_timeout_wlan_peer1.conf \
1320 test_transport_api_timeout_wlan_peer2.conf \
1321 test_transport_api_timeout_bluetooth_peer1.conf\
1322 test_transport_api_timeout_bluetooth_peer2.conf\
1323 test_transport_api_reliability_udp_peer1.conf\
1324 test_transport_api_reliability_udp_peer2.conf\
1325 test_transport_api_reliability_http_xhr_peer1.conf\
1326 test_transport_api_reliability_http_xhr_peer2.conf\
1327 test_transport_api_reliability_https_xhr_peer1.conf\
1328 test_transport_api_reliability_https_xhr_peer2.conf\
1329 test_transport_api_reliability_unix_peer1.conf\
1330 test_transport_api_reliability_unix_peer2.conf\
1331 test_transport_api_reliability_wlan_peer1.conf\
1332 test_transport_api_reliability_wlan_peer2.conf\
1333 test_transport_api_unreliability_wlan_peer1.conf\
1334 test_transport_api_unreliability_wlan_peer2.conf\
1335 test_transport_api_reliability_bluetooth_peer1.conf\
1336 test_transport_api_reliability_bluetooth_peer2.conf\
1337 test_transport_api_wlan_peer1.conf\
1338 test_transport_api_wlan_peer2.conf\
1339 test_transport_api_bluetooth_peer1.conf\
1340 test_transport_api_bluetooth_peer2.conf\
1341 test_transport_api_monitor_peers_peer1.conf\
1342 test_transport_api_monitor_peers_peer2.conf\
1343 test_transport_api_monitor_validation_peer1.conf\
1344 test_transport_api_monitor_validation_peer2.conf\
1345 test_transport_defaults.conf\
1346 test_transport_api_disconnect_tcp_peer1.conf\
1347 test_transport_api_disconnect_tcp_peer2.conf\
1348 test_transport_api_timeout_http_peer1.conf\
1349 test_transport_api_timeout_http_peer2.conf\
1350 test_transport_api_timeout_https_peer1.conf\
1351 test_transport_api_timeout_https_peer2.conf\
1352 test_transport_blacklisting_cfg_peer1.conf \
1353 test_transport_blacklisting_cfg_peer2.conf \
1354 test_transport_blacklisting_cfg_blp_peer1_full.conf\
1355 test_transport_blacklisting_cfg_blp_peer1_plugin.conf \
1356 test_transport_blacklisting_cfg_blp_peer2_full.conf\
1357 test_transport_blacklisting_cfg_blp_peer2_plugin.conf \
1358 test_transport_blacklisting_cfg_blp_peer1_multiple_plugins.conf \
1359 test_transport_blacklisting_cfg_blp_peer2_multiple_plugins.conf \
1360 test_transport_api_http_reverse_peer1.conf \
1361 test_transport_api_http_reverse_peer2.conf \
1362 perf_tcp_peer1.conf \
1363 perf_tcp_peer2.conf \
1364 test_transport_api_slow_ats_peer1.conf \
1365 test_transport_api_slow_ats_peer2.conf \
1366   tcp_connection_legacy.c \
1367   tcp_server_mst_legacy.c \
1368   tcp_server_legacy.c \
1369   tcp_service_legacy.c