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