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