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