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