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