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