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