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