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