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