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