allow empty/NULL context message
[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   transport_api_monitor_validation.c
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_api_monitor_validation \
472  test_transport_blacklisting_no_bl \
473  test_transport_blacklisting_outbound_bl_full \
474  test_transport_blacklisting_outbound_bl_plugin \
475  test_transport_blacklisting_inbound_bl_plugin \
476  test_transport_blacklisting_inbound_bl_full \
477  test_transport_blacklisting_multiple_plugins \
478  test_transport_api_manipulation_send_tcp \
479  test_transport_api_manipulation_recv_tcp \
480  test_transport_api_manipulation_cfg \
481  test_transport_api_reliability_tcp \
482  test_transport_api_reliability_tcp_nat \
483  test_transport_api_reliability_udp \
484  $(UNIX_REL_TEST) \
485  $(HTTP_REL_TEST) \
486  $(HTTPS_REL_TEST) \
487  $(WLAN_REL_TEST) \
488  $(WLAN_UREL_TEST) \
489  $(BT_REL_TEST) \
490  $(BT_UREL_TEST) \
491  test_quota_compliance_tcp \
492  test_quota_compliance_tcp_asymmetric \
493  test_quota_compliance_udp \
494  $(UNIX_QUOTA_TEST) \
495  $(HTTP_QUOTA_TEST) \
496  $(HTTPS_QUOTA_TEST) \
497  $(WLAN_QUOTA_TEST) \
498  $(BT_QUOTA_TEST)
499 if HAVE_GETOPT_BINARY
500 check_PROGRAMS += \
501 test_transport_api_slow_ats
502 endif
503 endif
504
505 if ENABLE_TEST_RUN
506 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
507 TESTS = \
508  test_transport_testing_startstop \
509  test_transport_testing_restart \
510  test_transport_testing \
511  test_transport_startonly \
512  test_plugin_tcp \
513  test_plugin_udp \
514  $(UNIX_TEST) \
515  $(WLAN_PLUGIN_TEST) \
516  $(BT_PLUGIN_TEST) \
517  test_transport_api_blacklisting \
518  test_transport_api_disconnect_tcp \
519  test_transport_api_bidirectional_connect \
520  test_transport_api_tcp \
521  test_transport_api_restart_1peer \
522  test_transport_api_restart_2peers \
523  test_transport_api_limited_sockets_tcp \
524  test_transport_api_tcp_nat \
525  test_transport_api_udp \
526  $(UNIX_PLUGIN_TEST) \
527  $(UNIX_API_ABSTRACT_TEST) \
528  test_transport_api_udp_nat \
529  $(HTTP_API_TEST) \
530  $(HTTPS_API_TEST) \
531  $(WLAN_API_TEST) \
532  $(BT_API_TEST) \
533  test_transport_api_multi \
534  test_transport_api_monitor_peers \
535  test_transport_api_monitor_validation \
536  test_transport_blacklisting_no_bl \
537  test_transport_blacklisting_outbound_bl_full \
538  test_transport_blacklisting_outbound_bl_plugin \
539  test_transport_blacklisting_inbound_bl_plugin \
540  test_transport_blacklisting_inbound_bl_full \
541  test_transport_blacklisting_multiple_plugins \
542  test_transport_api_manipulation_send_tcp \
543  test_transport_api_manipulation_recv_tcp \
544  test_transport_api_manipulation_cfg \
545  test_transport_api_reliability_tcp \
546  test_transport_api_reliability_tcp_nat \
547  test_transport_api_reliability_udp \
548  $(UNIX_REL_TEST) \
549  $(HTTP_REL_TEST) \
550  $(HTTPS_REL_TEST) \
551  $(WLAN_REL_TEST) \
552  $(WLAN_UREL_TEST) \
553  $(BT_REL_TEST) \
554  $(BT_UREL_TEST) \
555  test_quota_compliance_tcp \
556  test_quota_compliance_tcp_asymmetric \
557  test_quota_compliance_udp \
558  $(UNIX_QUOTA_TEST) \
559  $(HTTP_QUOTA_TEST) \
560  $(HTTPS_QUOTA_TEST) \
561  test_transport_api_timeout_tcp \
562  test_transport_api_timeout_udp \
563  $(UNIX_PLUGIN_TIMEOUT_TEST) \
564  $(HTTP_API_TIMEOUT_TEST) \
565  $(HTTPS_API_TIMEOUT_TEST) \
566  $(WLAN_TIMEOUT_TEST) \
567  $(BT_TIMEOUT_TEST) \
568  test_transport_address_switch_tcp \
569  test_transport_address_switch_udp \
570  $(HTTP_SWITCH) \
571  $(HTTPS_SWITCH)
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_testing_SOURCES = \
595  test_transport_testing.c
596 test_transport_testing_LDADD = \
597  $(top_builddir)/src/util/libgnunetutil.la \
598  libgnunettransport.la \
599  $(top_builddir)/src/hello/libgnunethello.la \
600  libgnunettransporttesting.la
601
602 test_transport_api_blacklisting_SOURCES = \
603  test_transport_api_blacklisting.c
604 test_transport_api_blacklisting_LDADD = \
605  libgnunettransport.la \
606  $(top_builddir)/src/hello/libgnunethello.la \
607  $(top_builddir)/src/statistics/libgnunetstatistics.la \
608  $(top_builddir)/src/util/libgnunetutil.la \
609  libgnunettransporttesting.la
610
611 test_transport_blacklisting_no_bl_SOURCES = \
612  test_transport_blacklisting.c
613 test_transport_blacklisting_no_bl_LDADD = \
614  libgnunettransport.la \
615  $(top_builddir)/src/hello/libgnunethello.la \
616  $(top_builddir)/src/statistics/libgnunetstatistics.la \
617  $(top_builddir)/src/util/libgnunetutil.la \
618  libgnunettransporttesting.la
619
620 test_transport_blacklisting_outbound_bl_full_SOURCES = \
621  test_transport_blacklisting.c
622 test_transport_blacklisting_outbound_bl_full_LDADD = \
623  libgnunettransport.la \
624  $(top_builddir)/src/hello/libgnunethello.la \
625  $(top_builddir)/src/statistics/libgnunetstatistics.la \
626  $(top_builddir)/src/util/libgnunetutil.la \
627  libgnunettransporttesting.la
628
629 test_transport_blacklisting_outbound_bl_plugin_SOURCES = \
630  test_transport_blacklisting.c
631 test_transport_blacklisting_outbound_bl_plugin_LDADD = \
632  libgnunettransport.la \
633  $(top_builddir)/src/hello/libgnunethello.la \
634  $(top_builddir)/src/statistics/libgnunetstatistics.la \
635  $(top_builddir)/src/util/libgnunetutil.la \
636  libgnunettransporttesting.la
637
638 test_transport_blacklisting_inbound_bl_full_SOURCES = \
639  test_transport_blacklisting.c
640 test_transport_blacklisting_inbound_bl_full_LDADD = \
641  libgnunettransport.la \
642  $(top_builddir)/src/hello/libgnunethello.la \
643  $(top_builddir)/src/statistics/libgnunetstatistics.la \
644  $(top_builddir)/src/util/libgnunetutil.la \
645  libgnunettransporttesting.la
646
647 test_transport_blacklisting_inbound_bl_plugin_SOURCES = \
648  test_transport_blacklisting.c
649 test_transport_blacklisting_inbound_bl_plugin_LDADD = \
650  libgnunettransport.la \
651  $(top_builddir)/src/hello/libgnunethello.la \
652  $(top_builddir)/src/statistics/libgnunetstatistics.la \
653  $(top_builddir)/src/util/libgnunetutil.la \
654  libgnunettransporttesting.la
655
656 test_transport_blacklisting_multiple_plugins_SOURCES = \
657  test_transport_blacklisting.c
658 test_transport_blacklisting_multiple_plugins_LDADD = \
659  libgnunettransport.la \
660  $(top_builddir)/src/hello/libgnunethello.la \
661  $(top_builddir)/src/statistics/libgnunetstatistics.la \
662  $(top_builddir)/src/util/libgnunetutil.la \
663  libgnunettransporttesting.la
664
665
666 test_transport_api_disconnect_tcp_SOURCES = \
667  test_transport_api_disconnect.c
668 test_transport_api_disconnect_tcp_LDADD = \
669  libgnunettransport.la \
670  $(top_builddir)/src/hello/libgnunethello.la \
671  $(top_builddir)/src/statistics/libgnunetstatistics.la \
672  $(top_builddir)/src/util/libgnunetutil.la \
673  libgnunettransporttesting.la
674
675 test_transport_startonly_SOURCES = \
676  test_transport_startonly.c
677 test_transport_startonly_LDADD = \
678  libgnunettransport.la \
679  $(top_builddir)/src/hello/libgnunethello.la \
680  $(top_builddir)/src/statistics/libgnunetstatistics.la \
681  $(top_builddir)/src/util/libgnunetutil.la \
682  libgnunettransporttesting.la
683
684 test_plugin_tcp_SOURCES = \
685  test_plugin_transport.c
686 test_plugin_tcp_LDADD = \
687  libgnunettransport.la \
688  $(top_builddir)/src/statistics/libgnunetstatistics.la \
689  $(top_builddir)/src/hello/libgnunethello.la \
690  $(top_builddir)/src/util/libgnunetutil.la  \
691  libgnunettransporttesting.la
692
693 test_plugin_udp_SOURCES = \
694  test_plugin_transport.c
695 test_plugin_udp_LDADD = \
696  libgnunettransport.la \
697  $(top_builddir)/src/statistics/libgnunetstatistics.la \
698  $(top_builddir)/src/hello/libgnunethello.la \
699  $(top_builddir)/src/util/libgnunetutil.la  \
700  libgnunettransporttesting.la
701
702 test_plugin_unix_SOURCES = \
703  test_plugin_transport.c
704 test_plugin_unix_LDADD = \
705  libgnunettransport.la \
706  $(top_builddir)/src/statistics/libgnunetstatistics.la \
707  $(top_builddir)/src/hello/libgnunethello.la \
708  $(top_builddir)/src/util/libgnunetutil.la  \
709  libgnunettransporttesting.la
710
711 test_plugin_wlan_SOURCES = \
712  test_plugin_transport.c
713 test_plugin_wlan_LDADD = \
714  libgnunettransport.la \
715  $(top_builddir)/src/statistics/libgnunetstatistics.la \
716  $(top_builddir)/src/hello/libgnunethello.la \
717  $(top_builddir)/src/util/libgnunetutil.la  \
718  libgnunettransporttesting.la
719
720 test_plugin_bluetooth_SOURCES = \
721  test_plugin_transport.c
722 test_plugin_bluetooth_LDADD = \
723  libgnunettransport.la \
724  $(top_builddir)/src/statistics/libgnunetstatistics.la \
725  $(top_builddir)/src/hello/libgnunethello.la \
726  $(top_builddir)/src/util/libgnunetutil.la  \
727  libgnunettransporttesting.la
728
729 test_http_common_SOURCES = \
730  test_http_common.c plugin_transport_http_common.c
731 test_http_common_LDADD = \
732  libgnunettransport.la \
733  $(top_builddir)/src/statistics/libgnunetstatistics.la \
734  $(top_builddir)/src/hello/libgnunethello.la \
735  $(top_builddir)/src/util/libgnunetutil.la  \
736  libgnunettransporttesting.la
737
738 test_plugin_http_server_SOURCES = \
739  test_plugin_transport.c
740 test_plugin_http_server_LDADD = \
741  libgnunettransport.la \
742  $(top_builddir)/src/statistics/libgnunetstatistics.la \
743  $(top_builddir)/src/hello/libgnunethello.la \
744  $(top_builddir)/src/util/libgnunetutil.la  \
745  libgnunettransporttesting.la
746
747 test_plugin_https_server_SOURCES = \
748  test_plugin_transport.c
749 test_plugin_https_server_LDADD = \
750  libgnunettransport.la \
751  $(top_builddir)/src/statistics/libgnunetstatistics.la \
752  $(top_builddir)/src/hello/libgnunethello.la \
753  $(top_builddir)/src/util/libgnunetutil.la  \
754  libgnunettransporttesting.la
755
756 test_plugin_http_client_SOURCES = \
757  test_plugin_transport.c
758 test_plugin_http_client_LDADD = \
759  libgnunettransport.la \
760  $(top_builddir)/src/statistics/libgnunetstatistics.la \
761  $(top_builddir)/src/hello/libgnunethello.la \
762  $(top_builddir)/src/util/libgnunetutil.la  \
763  libgnunettransporttesting.la
764
765 test_plugin_https_client_SOURCES = \
766  test_plugin_transport.c
767 test_plugin_https_client_LDADD = \
768  libgnunettransport.la \
769  $(top_builddir)/src/statistics/libgnunetstatistics.la \
770  $(top_builddir)/src/hello/libgnunethello.la \
771  $(top_builddir)/src/util/libgnunetutil.la  \
772  libgnunettransporttesting.la
773
774 test_transport_api_tcp_SOURCES = \
775  test_transport_api.c
776 test_transport_api_tcp_LDADD = \
777  libgnunettransport.la \
778  $(top_builddir)/src/hello/libgnunethello.la \
779  $(top_builddir)/src/util/libgnunetutil.la  \
780  libgnunettransporttesting.la
781
782 test_transport_api_bidirectional_connect_SOURCES = \
783  test_transport_api_bidirectional_connect.c
784 test_transport_api_bidirectional_connect_LDADD = \
785  libgnunettransport.la \
786  $(top_builddir)/src/hello/libgnunethello.la \
787  $(top_builddir)/src/util/libgnunetutil.la  \
788  libgnunettransporttesting.la
789
790 test_transport_api_restart_1peer_SOURCES = \
791  test_transport_api_restart_1peer.c
792 test_transport_api_restart_1peer_LDADD = \
793  libgnunettransport.la \
794  $(top_builddir)/src/hello/libgnunethello.la \
795  $(top_builddir)/src/ats/libgnunetats.la \
796  $(top_builddir)/src/statistics/libgnunetstatistics.la \
797  $(top_builddir)/src/util/libgnunetutil.la \
798  libgnunettransporttesting.la
799
800 test_transport_api_restart_2peers_SOURCES = \
801  test_transport_api_restart_2peers.c
802 test_transport_api_restart_2peers_LDADD = \
803  libgnunettransport.la \
804  $(top_builddir)/src/hello/libgnunethello.la \
805  $(top_builddir)/src/ats/libgnunetats.la \
806 $(top_builddir)/src/statistics/libgnunetstatistics.la \
807  $(top_builddir)/src/util/libgnunetutil.la \
808  libgnunettransporttesting.la
809
810 test_transport_api_limited_sockets_tcp_SOURCES = \
811  test_transport_api_limited_sockets.c
812 test_transport_api_limited_sockets_tcp_LDADD = \
813  libgnunettransport.la \
814  $(top_builddir)/src/hello/libgnunethello.la \
815  $(top_builddir)/src/util/libgnunetutil.la  \
816  libgnunettransporttesting.la
817
818 test_transport_api_tcp_nat_SOURCES = \
819  test_transport_api.c
820 test_transport_api_tcp_nat_LDADD = \
821  libgnunettransport.la \
822  $(top_builddir)/src/hello/libgnunethello.la \
823  $(top_builddir)/src/util/libgnunetutil.la \
824  libgnunettransporttesting.la
825
826 test_transport_api_manipulation_send_tcp_SOURCES = \
827  test_transport_api_manipulation_send_tcp.c
828 test_transport_api_manipulation_send_tcp_LDADD = \
829  libgnunettransport.la \
830  $(top_builddir)/src/hello/libgnunethello.la \
831  $(top_builddir)/src/util/libgnunetutil.la \
832  libgnunettransporttesting.la
833
834 test_transport_api_manipulation_recv_tcp_SOURCES = \
835  test_transport_api_manipulation_recv_tcp.c
836 test_transport_api_manipulation_recv_tcp_LDADD = \
837  libgnunettransport.la \
838  $(top_builddir)/src/hello/libgnunethello.la \
839  $(top_builddir)/src/util/libgnunetutil.la \
840  libgnunettransporttesting.la
841
842 test_transport_api_manipulation_cfg_SOURCES = \
843  test_transport_api_manipulation_cfg.c
844 test_transport_api_manipulation_cfg_LDADD = \
845  libgnunettransport.la \
846  $(top_builddir)/src/hello/libgnunethello.la \
847  $(top_builddir)/src/util/libgnunetutil.la \
848  libgnunettransporttesting.la
849
850 test_transport_api_reliability_tcp_SOURCES = \
851  test_transport_api_reliability.c
852 test_transport_api_reliability_tcp_LDADD = \
853  libgnunettransport.la \
854  $(top_builddir)/src/hello/libgnunethello.la \
855  $(top_builddir)/src/util/libgnunetutil.la \
856  libgnunettransporttesting.la
857
858 test_transport_api_timeout_tcp_SOURCES = \
859  test_transport_api_timeout.c
860 test_transport_api_timeout_tcp_LDADD = \
861  libgnunettransport.la \
862  $(top_builddir)/src/hello/libgnunethello.la \
863  $(top_builddir)/src/util/libgnunetutil.la \
864  libgnunettransporttesting.la
865
866 test_transport_api_timeout_unix_SOURCES = \
867  test_transport_api_timeout.c
868 test_transport_api_timeout_unix_LDADD = \
869  libgnunettransport.la \
870  $(top_builddir)/src/hello/libgnunethello.la \
871  $(top_builddir)/src/util/libgnunetutil.la \
872  libgnunettransporttesting.la
873
874 test_transport_api_timeout_wlan_SOURCES = \
875  test_transport_api_timeout.c
876 test_transport_api_timeout_wlan_LDADD = \
877  libgnunettransport.la \
878  $(top_builddir)/src/hello/libgnunethello.la \
879  $(top_builddir)/src/util/libgnunetutil.la \
880  libgnunettransporttesting.la
881
882 test_transport_api_timeout_bluetooth_SOURCES = \
883  test_transport_api_timeout.c
884 test_transport_api_timeout_bluetooth_LDADD = \
885  libgnunettransport.la \
886  $(top_builddir)/src/hello/libgnunethello.la \
887  $(top_builddir)/src/util/libgnunetutil.la \
888  libgnunettransporttesting.la
889
890 test_transport_api_reliability_tcp_nat_SOURCES = \
891  test_transport_api_reliability.c
892 test_transport_api_reliability_tcp_nat_LDADD = \
893  libgnunettransport.la \
894  $(top_builddir)/src/hello/libgnunethello.la \
895  $(top_builddir)/src/util/libgnunetutil.la \
896  libgnunettransporttesting.la
897
898 test_transport_api_reliability_bluetooth_SOURCES = \
899  test_transport_api_reliability.c
900 test_transport_api_reliability_bluetooth_LDADD = \
901  libgnunettransport.la \
902  $(top_builddir)/src/hello/libgnunethello.la \
903  $(top_builddir)/src/util/libgnunetutil.la \
904  libgnunettransporttesting.la
905
906 test_transport_api_reliability_wlan_SOURCES = \
907  test_transport_api_reliability.c
908 test_transport_api_reliability_wlan_LDADD = \
909  libgnunettransport.la \
910  $(top_builddir)/src/hello/libgnunethello.la \
911  $(top_builddir)/src/util/libgnunetutil.la \
912  libgnunettransporttesting.la
913
914 test_transport_api_udp_SOURCES = \
915  test_transport_api.c
916 test_transport_api_udp_LDADD = \
917  libgnunettransport.la \
918  $(top_builddir)/src/hello/libgnunethello.la \
919  $(top_builddir)/src/util/libgnunetutil.la  \
920  libgnunettransporttesting.la
921
922 test_transport_api_timeout_udp_SOURCES = \
923  test_transport_api_timeout.c
924 test_transport_api_timeout_udp_LDADD = \
925  libgnunettransport.la \
926  $(top_builddir)/src/hello/libgnunethello.la \
927  $(top_builddir)/src/util/libgnunetutil.la \
928  libgnunettransporttesting.la
929
930 test_transport_api_udp_nat_SOURCES = \
931  test_transport_api.c
932 test_transport_api_udp_nat_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_unix_SOURCES = \
939  test_transport_api.c
940 test_transport_api_unix_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_unix_abstract_SOURCES = \
947  test_transport_api.c
948 test_transport_api_unix_abstract_LDADD = \
949  libgnunettransport.la \
950  $(top_builddir)/src/hello/libgnunethello.la \
951  $(top_builddir)/src/util/libgnunetutil.la \
952  libgnunettransporttesting.la
953
954 # HTTP tests
955 test_transport_api_http_SOURCES = \
956  test_transport_api.c
957 test_transport_api_http_LDADD = \
958  libgnunettransport.la \
959  $(top_builddir)/src/hello/libgnunethello.la \
960  $(top_builddir)/src/util/libgnunetutil.la \
961  libgnunettransporttesting.la
962
963 test_transport_api_http_reverse_SOURCES = \
964  test_transport_api.c
965 test_transport_api_http_reverse_LDADD = \
966  libgnunettransport.la \
967  $(top_builddir)/src/hello/libgnunethello.la \
968  $(top_builddir)/src/util/libgnunetutil.la \
969  libgnunettransporttesting.la
970
971 test_transport_api_timeout_http_SOURCES = \
972  test_transport_api_timeout.c
973 test_transport_api_timeout_http_LDADD = \
974  libgnunettransport.la \
975  $(top_builddir)/src/hello/libgnunethello.la \
976  $(top_builddir)/src/util/libgnunetutil.la \
977  libgnunettransporttesting.la
978
979 test_transport_api_reliability_http_SOURCES = \
980  test_transport_api_reliability.c
981 test_transport_api_reliability_http_LDADD = \
982  libgnunettransport.la \
983  $(top_builddir)/src/hello/libgnunethello.la \
984  $(top_builddir)/src/util/libgnunetutil.la \
985  libgnunettransporttesting.la
986
987 test_transport_api_reliability_http_xhr_SOURCES = \
988  test_transport_api_reliability.c
989 test_transport_api_reliability_http_xhr_LDADD = \
990  libgnunettransport.la \
991  $(top_builddir)/src/hello/libgnunethello.la \
992  $(top_builddir)/src/util/libgnunetutil.la \
993  libgnunettransporttesting.la
994
995 test_quota_compliance_http_SOURCES = \
996  test_quota_compliance.c
997 test_quota_compliance_http_LDADD = \
998  libgnunettransport.la \
999  $(top_builddir)/src/hello/libgnunethello.la \
1000  $(top_builddir)/src/ats/libgnunetats.la \
1001  $(top_builddir)/src/util/libgnunetutil.la \
1002  libgnunettransporttesting.la
1003
1004 test_quota_compliance_http_asymmetric_SOURCES = \
1005  test_quota_compliance.c
1006 test_quota_compliance_http_asymmetric_LDADD = \
1007  libgnunettransport.la \
1008  $(top_builddir)/src/hello/libgnunethello.la \
1009  $(top_builddir)/src/ats/libgnunetats.la \
1010  $(top_builddir)/src/util/libgnunetutil.la \
1011  libgnunettransporttesting.la
1012
1013 test_quota_compliance_https_SOURCES = \
1014  test_quota_compliance.c
1015 test_quota_compliance_https_LDADD = \
1016  libgnunettransport.la \
1017  $(top_builddir)/src/hello/libgnunethello.la \
1018  $(top_builddir)/src/ats/libgnunetats.la \
1019  $(top_builddir)/src/util/libgnunetutil.la \
1020  libgnunettransporttesting.la
1021
1022 test_quota_compliance_https_asymmetric_SOURCES = \
1023  test_quota_compliance.c
1024 test_quota_compliance_https_asymmetric_LDADD = \
1025  libgnunettransport.la \
1026  $(top_builddir)/src/hello/libgnunethello.la \
1027  $(top_builddir)/src/ats/libgnunetats.la \
1028  $(top_builddir)/src/util/libgnunetutil.la \
1029  libgnunettransporttesting.la
1030
1031 # HTTPS tests
1032 test_transport_api_https_SOURCES = \
1033  test_transport_api.c
1034 test_transport_api_https_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_timeout_https_SOURCES = \
1041  test_transport_api_timeout.c
1042 test_transport_api_timeout_https_LDADD = \
1043  libgnunettransport.la \
1044  $(top_builddir)/src/hello/libgnunethello.la \
1045  $(top_builddir)/src/util/libgnunetutil.la \
1046  libgnunettransporttesting.la
1047
1048
1049 test_transport_api_reliability_https_SOURCES = \
1050  test_transport_api_reliability.c
1051 test_transport_api_reliability_https_LDADD = \
1052  libgnunettransport.la \
1053  $(top_builddir)/src/hello/libgnunethello.la \
1054  $(top_builddir)/src/util/libgnunetutil.la \
1055  libgnunettransporttesting.la
1056
1057 test_transport_api_reliability_https_xhr_SOURCES = \
1058  test_transport_api_reliability.c
1059 test_transport_api_reliability_https_xhr_LDADD = \
1060  libgnunettransport.la \
1061  $(top_builddir)/src/hello/libgnunethello.la \
1062  $(top_builddir)/src/util/libgnunetutil.la \
1063  libgnunettransporttesting.la
1064
1065 test_transport_api_reliability_unix_SOURCES = \
1066  test_transport_api_reliability.c
1067 test_transport_api_reliability_unix_LDADD = \
1068  libgnunettransport.la \
1069  $(top_builddir)/src/hello/libgnunethello.la \
1070  $(top_builddir)/src/util/libgnunetutil.la \
1071  libgnunettransporttesting.la
1072
1073 test_transport_api_reliability_udp_SOURCES = \
1074  test_transport_api_reliability.c
1075 test_transport_api_reliability_udp_LDADD = \
1076  libgnunettransport.la \
1077  $(top_builddir)/src/hello/libgnunethello.la \
1078  $(top_builddir)/src/util/libgnunetutil.la \
1079  libgnunettransporttesting.la
1080
1081 if LINUX
1082 test_transport_api_wlan_SOURCES = \
1083  test_transport_api.c
1084 test_transport_api_wlan_LDADD = \
1085  libgnunettransport.la \
1086  $(top_builddir)/src/hello/libgnunethello.la \
1087  $(top_builddir)/src/util/libgnunetutil.la \
1088  libgnunettransporttesting.la
1089 endif
1090
1091 if LINUX
1092 if HAVE_LIBBLUETOOTH
1093 test_transport_api_bluetooth_SOURCES = \
1094  test_transport_api.c
1095 test_transport_api_bluetooth_LDADD = \
1096  libgnunettransport.la \
1097  $(top_builddir)/src/hello/libgnunethello.la \
1098  $(top_builddir)/src/util/libgnunetutil.la \
1099  libgnunettransporttesting.la
1100 endif
1101 endif
1102
1103 test_transport_address_switch_tcp_SOURCES = \
1104  test_transport_address_switch.c
1105 test_transport_address_switch_tcp_LDADD = \
1106  libgnunettransport.la \
1107  $(top_builddir)/src/hello/libgnunethello.la \
1108  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1109  $(top_builddir)/src/util/libgnunetutil.la \
1110  libgnunettransporttesting.la
1111
1112  test_transport_address_switch_udp_SOURCES = \
1113  test_transport_address_switch.c
1114 test_transport_address_switch_udp_LDADD = \
1115  libgnunettransport.la \
1116  $(top_builddir)/src/hello/libgnunethello.la \
1117  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1118  $(top_builddir)/src/util/libgnunetutil.la \
1119  libgnunettransporttesting.la
1120
1121
1122  test_transport_address_switch_http_SOURCES = \
1123  test_transport_address_switch.c
1124 test_transport_address_switch_http_LDADD = \
1125  libgnunettransport.la \
1126  $(top_builddir)/src/hello/libgnunethello.la \
1127  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1128  $(top_builddir)/src/util/libgnunetutil.la \
1129  libgnunettransporttesting.la
1130
1131  test_transport_address_switch_https_SOURCES = \
1132  test_transport_address_switch.c
1133 test_transport_address_switch_https_LDADD = \
1134  libgnunettransport.la \
1135  $(top_builddir)/src/hello/libgnunethello.la \
1136  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1137  $(top_builddir)/src/util/libgnunetutil.la \
1138  libgnunettransporttesting.la
1139
1140 test_quota_compliance_tcp_SOURCES = \
1141  test_quota_compliance.c
1142 test_quota_compliance_tcp_LDADD = \
1143  libgnunettransport.la \
1144  $(top_builddir)/src/hello/libgnunethello.la \
1145  $(top_builddir)/src/ats/libgnunetats.la \
1146  $(top_builddir)/src/util/libgnunetutil.la \
1147  libgnunettransporttesting.la
1148
1149 test_quota_compliance_tcp_asymmetric_SOURCES = \
1150  test_quota_compliance.c
1151 test_quota_compliance_tcp_asymmetric_LDADD = \
1152  libgnunettransport.la \
1153  $(top_builddir)/src/hello/libgnunethello.la \
1154  $(top_builddir)/src/ats/libgnunetats.la \
1155  $(top_builddir)/src/util/libgnunetutil.la \
1156  libgnunettransporttesting.la
1157
1158 test_quota_compliance_udp_SOURCES = \
1159  test_quota_compliance.c
1160 test_quota_compliance_udp_LDADD = \
1161  libgnunettransport.la \
1162  $(top_builddir)/src/hello/libgnunethello.la \
1163  $(top_builddir)/src/ats/libgnunetats.la \
1164  $(top_builddir)/src/util/libgnunetutil.la \
1165  libgnunettransporttesting.la
1166
1167 test_quota_compliance_unix_SOURCES = \
1168  test_quota_compliance.c
1169 test_quota_compliance_unix_LDADD = \
1170  libgnunettransport.la \
1171  $(top_builddir)/src/hello/libgnunethello.la \
1172  $(top_builddir)/src/ats/libgnunetats.la \
1173  $(top_builddir)/src/util/libgnunetutil.la \
1174  libgnunettransporttesting.la
1175
1176 test_quota_compliance_unix_asymmetric_SOURCES = \
1177  test_quota_compliance.c
1178 test_quota_compliance_unix_asymmetric_LDADD = \
1179  libgnunettransport.la \
1180  $(top_builddir)/src/hello/libgnunethello.la \
1181  $(top_builddir)/src/ats/libgnunetats.la \
1182  $(top_builddir)/src/util/libgnunetutil.la \
1183  libgnunettransporttesting.la
1184
1185 test_quota_compliance_wlan_SOURCES = \
1186  test_quota_compliance.c
1187 test_quota_compliance_wlan_LDADD = \
1188  libgnunettransport.la \
1189  $(top_builddir)/src/hello/libgnunethello.la \
1190  $(top_builddir)/src/ats/libgnunetats.la \
1191  $(top_builddir)/src/util/libgnunetutil.la \
1192  libgnunettransporttesting.la
1193
1194 test_quota_compliance_wlan_asymmetric_SOURCES = \
1195  test_quota_compliance.c
1196 test_quota_compliance_wlan_asymmetric_LDADD = \
1197  libgnunettransport.la \
1198  $(top_builddir)/src/hello/libgnunethello.la \
1199  $(top_builddir)/src/ats/libgnunetats.la \
1200  $(top_builddir)/src/util/libgnunetutil.la \
1201  libgnunettransporttesting.la
1202
1203 test_quota_compliance_bluetooth_SOURCES = \
1204  test_quota_compliance.c
1205 test_quota_compliance_bluetooth_LDADD = \
1206  $(top_builddir)/src/nat/libgnunetnat.la \
1207  libgnunettransport.la \
1208  $(top_builddir)/src/hello/libgnunethello.la \
1209  $(top_builddir)/src/ats/libgnunetats.la \
1210  $(top_builddir)/src/util/libgnunetutil.la \
1211  libgnunettransporttesting.la
1212
1213 test_quota_compliance_bluetooth_asymmetric_SOURCES = \
1214  test_quota_compliance.c
1215 test_quota_compliance_bluetooth_asymmetric_LDADD = \
1216  libgnunettransport.la \
1217  $(top_builddir)/src/hello/libgnunethello.la \
1218  $(top_builddir)/src/ats/libgnunetats.la \
1219  $(top_builddir)/src/util/libgnunetutil.la \
1220  libgnunettransporttesting.la
1221
1222 test_transport_api_multi_SOURCES = \
1223  test_transport_api.c
1224 test_transport_api_multi_LDADD = \
1225  libgnunettransport.la \
1226  $(top_builddir)/src/hello/libgnunethello.la \
1227  $(top_builddir)/src/util/libgnunetutil.la \
1228  libgnunettransporttesting.la
1229
1230 test_transport_api_monitor_peers_SOURCES = \
1231  test_transport_api_monitor_peers.c
1232 test_transport_api_monitor_peers_LDADD = \
1233  libgnunettransport.la \
1234  $(top_builddir)/src/hello/libgnunethello.la \
1235  $(top_builddir)/src/util/libgnunetutil.la \
1236  libgnunettransporttesting.la
1237
1238 test_transport_api_monitor_validation_SOURCES = \
1239  test_transport_api_monitor_validation.c
1240 test_transport_api_monitor_validation_LDADD = \
1241  libgnunettransport.la \
1242  $(top_builddir)/src/hello/libgnunethello.la \
1243  $(top_builddir)/src/util/libgnunetutil.la \
1244  libgnunettransporttesting.la
1245
1246 test_transport_api_slow_ats_SOURCES = \
1247  test_transport_api.c
1248 test_transport_api_slow_ats_LDADD = \
1249  libgnunettransport.la \
1250  $(top_builddir)/src/hello/libgnunethello.la \
1251  $(top_builddir)/src/util/libgnunetutil.la  \
1252  libgnunettransporttesting.la
1253
1254
1255 EXTRA_DIST = \
1256 test_plugin_hostkey \
1257 test_plugin_hostkey.ecc \
1258 test_delay \
1259 template_cfg_peer1.conf\
1260 template_cfg_peer2.conf\
1261 test_plugin_transport_data.conf\
1262 test_plugin_transport_data_udp.conf\
1263 test_quota_compliance_data.conf\
1264 test_quota_compliance_http_peer1.conf\
1265 test_quota_compliance_http_peer2.conf\
1266 test_quota_compliance_https_peer1.conf\
1267 test_quota_compliance_https_peer2.conf\
1268 test_quota_compliance_tcp_peer1.conf\
1269 test_quota_compliance_tcp_peer2.conf\
1270 test_quota_compliance_udp_peer1.conf\
1271 test_quota_compliance_udp_peer2.conf\
1272 test_quota_compliance_unix_peer1.conf\
1273 test_quota_compliance_unix_peer2.conf\
1274 test_quota_compliance_wlan_peer1.conf\
1275 test_quota_compliance_wlan_peer2.conf\
1276 test_quota_compliance_bluetooth_peer1.conf\
1277 test_quota_compliance_bluetooth_peer2.conf\
1278 test_quota_compliance_http_asymmetric_peer1.conf\
1279 test_quota_compliance_http_asymmetric_peer2.conf\
1280 test_quota_compliance_https_asymmetric_peer1.conf\
1281 test_quota_compliance_https_asymmetric_peer2.conf\
1282 test_quota_compliance_tcp_asymmetric_peer1.conf\
1283 test_quota_compliance_tcp_asymmetric_peer2.conf\
1284 test_quota_compliance_unix_asymmetric_peer1.conf\
1285 test_quota_compliance_unix_asymmetric_peer2.conf\
1286 test_quota_compliance_wlan_asymmetric_peer1.conf\
1287 test_quota_compliance_wlan_asymmetric_peer2.conf\
1288 test_quota_compliance_bluetooth_asymmetric_peer1.conf\
1289 test_quota_compliance_bluetooth_asymmetric_peer2.conf\
1290 test_transport_api_data.conf\
1291 test_transport_api_http_peer1.conf\
1292 test_transport_api_http_peer2.conf\
1293 test_transport_api_https_peer1.conf\
1294 test_transport_api_https_peer2.conf\
1295 test_transport_api_limited_sockets_tcp_peer1.conf\
1296 test_transport_api_limited_sockets_tcp_peer2.conf\
1297 test_transport_api_timeout_tcp_peer1.conf\
1298 test_transport_api_timeout_tcp_peer2.conf\
1299 test_transport_api_multi_peer1.conf\
1300 test_transport_api_multi_peer2.conf\
1301 test_transport_api_reliability_http_peer1.conf\
1302 test_transport_api_reliability_http_peer2.conf\
1303 test_transport_api_reliability_https_peer1.conf\
1304 test_transport_api_reliability_https_peer2.conf\
1305 test_transport_api_reliability_tcp_nat_peer1.conf\
1306 test_transport_api_reliability_tcp_nat_peer2.conf\
1307 test_transport_api_reliability_tcp_peer1.conf\
1308 test_transport_api_reliability_tcp_peer2.conf\
1309 test_transport_api_reliability_wlan_peer1.conf\
1310 test_transport_api_reliability_wlan_peer2.conf\
1311 test_transport_api_reliability_bluetooth_peer1.conf\
1312 test_transport_api_reliability_bluetooth_peer2.conf\
1313 test_transport_api_bidirectional_connect_peer1.conf\
1314 test_transport_api_bidirectional_connect_peer2.conf\
1315 test_transport_api_manipulation_send_tcp_peer1.conf\
1316 test_transport_api_manipulation_send_tcp_peer2.conf\
1317 test_transport_api_manipulation_recv_tcp_peer1.conf\
1318 test_transport_api_manipulation_recv_tcp_peer2.conf\
1319 test_transport_api_manipulation_cfg_peer1.conf\
1320 test_transport_api_manipulation_cfg_peer2.conf\
1321 test_transport_api_tcp_nat_peer1.conf\
1322 test_transport_api_tcp_nat_peer2.conf\
1323 test_transport_api_tcp_peer1.conf\
1324 test_transport_api_tcp_peer2.conf\
1325 test_transport_api_udp_nat_peer1.conf\
1326 test_transport_api_udp_nat_peer2.conf\
1327 test_transport_api_udp_peer1.conf\
1328 test_transport_api_udp_peer2.conf\
1329 test_transport_api_timeout_udp_peer1.conf\
1330 test_transport_api_timeout_udp_peer2.conf\
1331 test_transport_api_unix_peer1.conf\
1332 test_transport_api_unix_peer2.conf\
1333 test_transport_api_unix_abstract_peer1.conf \
1334 test_transport_api_unix_abstract_peer2.conf \
1335 test_transport_api_timeout_unix_peer1.conf\
1336 test_transport_api_timeout_unix_peer2.conf\
1337 test_transport_api_timeout_wlan_peer1.conf \
1338 test_transport_api_timeout_wlan_peer2.conf \
1339 test_transport_api_timeout_bluetooth_peer1.conf\
1340 test_transport_api_timeout_bluetooth_peer2.conf\
1341 test_transport_api_reliability_udp_peer1.conf\
1342 test_transport_api_reliability_udp_peer2.conf\
1343 test_transport_api_reliability_http_xhr_peer1.conf\
1344 test_transport_api_reliability_http_xhr_peer2.conf\
1345 test_transport_api_reliability_https_xhr_peer1.conf\
1346 test_transport_api_reliability_https_xhr_peer2.conf\
1347 test_transport_api_reliability_unix_peer1.conf\
1348 test_transport_api_reliability_unix_peer2.conf\
1349 test_transport_api_reliability_wlan_peer1.conf\
1350 test_transport_api_reliability_wlan_peer2.conf\
1351 test_transport_api_unreliability_wlan_peer1.conf\
1352 test_transport_api_unreliability_wlan_peer2.conf\
1353 test_transport_api_reliability_bluetooth_peer1.conf\
1354 test_transport_api_reliability_bluetooth_peer2.conf\
1355 test_transport_api_wlan_peer1.conf\
1356 test_transport_api_wlan_peer2.conf\
1357 test_transport_api_bluetooth_peer1.conf\
1358 test_transport_api_bluetooth_peer2.conf\
1359 test_transport_api_monitor_peers_peer1.conf\
1360 test_transport_api_monitor_peers_peer2.conf\
1361 test_transport_api_monitor_validation_peer1.conf\
1362 test_transport_api_monitor_validation_peer2.conf\
1363 test_transport_defaults.conf\
1364 test_transport_startonly.conf\
1365 test_transport_api_disconnect_tcp_peer1.conf\
1366 test_transport_api_disconnect_tcp_peer2.conf\
1367 test_transport_api_timeout_http_peer1.conf\
1368 test_transport_api_timeout_http_peer2.conf\
1369 test_transport_api_timeout_https_peer1.conf\
1370 test_transport_api_timeout_https_peer2.conf\
1371 test_transport_blacklisting_cfg_peer1.conf \
1372 test_transport_blacklisting_cfg_peer2.conf \
1373 test_transport_blacklisting_cfg_blp_peer1_full.conf\
1374 test_transport_blacklisting_cfg_blp_peer1_plugin.conf \
1375 test_transport_blacklisting_cfg_blp_peer2_full.conf\
1376 test_transport_blacklisting_cfg_blp_peer2_plugin.conf \
1377 test_transport_blacklisting_cfg_blp_peer1_multiple_plugins.conf \
1378 test_transport_blacklisting_cfg_blp_peer2_multiple_plugins.conf \
1379 test_transport_api_http_reverse_peer1.conf \
1380 test_transport_api_http_reverse_peer2.conf \
1381 perf_tcp_peer1.conf \
1382 perf_tcp_peer2.conf \
1383 test_transport_api_slow_ats_peer1.conf \
1384 test_transport_api_slow_ats_peer2.conf