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