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