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