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