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