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