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