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