dd7bedbaef9bc560ba08c62edd22ab6ae198a1a9
[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   $(top_builddir)/src/transport/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_DEPENDENCIES = \
160   libgnunettransport.la
161 libgnunettransporttesting_la_LDFLAGS = \
162  $(GN_LIB_LDFLAGS)
163
164 libgnunettransport_la_SOURCES = \
165   transport_api.c transport.h \
166   transport_api_blacklist.c \
167   transport_api_address_to_string.c \
168   transport_api_monitor_peers.c \
169   transport_api_monitor_validation.c
170 libgnunettransport_la_LIBADD = \
171   $(top_builddir)/src/hello/libgnunethello.la \
172   $(top_builddir)/src/util/libgnunetutil.la \
173   $(GN_LIBINTL)
174 libgnunettransport_la_LDFLAGS = \
175   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
176   -version-info 4:0:2
177
178 libexec_PROGRAMS = \
179  $(WLAN_BIN) \
180  $(WLAN_BIN_DUMMY) \
181  $(BT_BIN) \
182  gnunet-service-transport
183
184 bin_PROGRAMS = \
185  gnunet-transport \
186  gnunet-transport-certificate-creation
187
188 #bin_SCRIPTS = \
189 # gnunet-transport-certificate-creation
190
191 gnunet_transport_certificate_creation_SOURCES = \
192  gnunet-transport-certificate-creation.c
193 gnunet_transport_certificate_creation_LDADD = \
194   $(top_builddir)/src/util/libgnunetutil.la
195
196 gnunet_helper_transport_wlan_SOURCES = \
197  gnunet-helper-transport-wlan.c
198
199 gnunet_helper_transport_wlan_dummy_SOURCES = \
200  gnunet-helper-transport-wlan-dummy.c
201 gnunet_helper_transport_wlan_dummy_LDADD = \
202   $(top_builddir)/src/util/libgnunetutil.la
203
204 gnunet_transport_wlan_sender_SOURCES = \
205  gnunet-transport-wlan-sender.c
206 gnunet_transport_wlan_sender_LDADD = \
207   $(top_builddir)/src/util/libgnunetutil.la
208
209 gnunet_transport_wlan_receiver_SOURCES = \
210  gnunet-transport-wlan-receiver.c
211 gnunet_transport_wlan_receiver_LDADD = \
212   $(top_builddir)/src/util/libgnunetutil.la
213
214 gnunet_helper_transport_bluetooth_SOURCES = \
215  gnunet-helper-transport-bluetooth.c
216 if MINGW
217  gnunet_helper_transport_bluetooth_LDADD = \
218   $(top_builddir)/src/util/libgnunetutil.la
219  gnunet_helper_transport_bluetooth_LDFLAGS = -lws2_32
220 else
221  gnunet_helper_transport_bluetooth_LDFLAGS = -lbluetooth
222 endif
223
224 gnunet_transport_profiler_SOURCES = \
225  gnunet-transport-profiler.c
226 gnunet_transport_profiler_LDADD = \
227   $(top_builddir)/src/transport/libgnunettransport.la \
228   $(top_builddir)/src/nat/libgnunetnat.la \
229   $(top_builddir)/src/hello/libgnunethello.la \
230   $(top_builddir)/src/util/libgnunetutil.la \
231   $(GN_LIBINTL)
232 gnunet_transport_profiler_DEPENDENCIES = \
233   libgnunettransport.la
234
235 gnunet_transport_SOURCES = \
236  gnunet-transport.c
237 gnunet_transport_LDADD = \
238   $(top_builddir)/src/transport/libgnunettransport.la \
239   $(top_builddir)/src/nat/libgnunetnat.la \
240   $(top_builddir)/src/hello/libgnunethello.la \
241   $(top_builddir)/src/util/libgnunetutil.la \
242   $(GN_LIBINTL)
243 gnunet_transport_DEPENDENCIES = \
244   libgnunettransport.la
245
246 gnunet_service_transport_SOURCES = \
247  gnunet-service-transport.c gnunet-service-transport.h \
248  gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
249  gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
250  gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
251  gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
252  gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
253  gnunet-service-transport_validation.h gnunet-service-transport_validation.c \
254  gnunet-service-transport_manipulation.h gnunet-service-transport_manipulation.c
255 # Note that while gnunet-service-transport does not use libgnunetnat
256 # directly, we must link against it as GNUNET_NAT_mini_map_stop will
257 # leave a 'dangling' task to process_unmap_output which will cause
258 # a crash on unloading of a plugin unless the service links against
259 # that library as well.
260 gnunet_service_transport_LDADD = \
261   $(top_builddir)/src/transport/libgnunettransport.la \
262   $(top_builddir)/src/ats/libgnunetats.la \
263   $(top_builddir)/src/hello/libgnunethello.la \
264   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
265   $(top_builddir)/src/nat/libgnunetnat.la \
266   $(top_builddir)/src/statistics/libgnunetstatistics.la \
267   $(top_builddir)/src/util/libgnunetutil.la \
268   $(GN_GLPK) \
269   $(GN_LIBINTL)
270 gnunet_service_transport_DEPENDENCIES = \
271  libgnunettransport.la
272 gnunet_service_transport_CFLAGS = \
273   $(CFLAGS)
274 # -DANALYZE
275
276 plugin_LTLIBRARIES = \
277   libgnunet_plugin_transport_tcp.la \
278   libgnunet_plugin_transport_udp.la \
279   $(UNIX_PLUGIN_LA) \
280   $(HTTP_CLIENT_PLUGIN_LA) \
281   $(HTTPS_CLIENT_PLUGIN_LA) \
282   $(HTTP_SERVER_PLUGIN_LA) \
283   $(HTTPS_SERVER_PLUGIN_LA) \
284   $(WLAN_PLUGIN_LA) \
285   $(BT_PLUGIN_LA) \
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_testing_startstop \
426  test_transport_testing_restart \
427  test_transport_testing \
428  test_transport_startonly \
429  test_plugin_tcp \
430  test_plugin_udp \
431  $(UNIX_TEST) \
432  $(WLAN_PLUGIN_TEST) \
433  $(BT_PLUGIN_TEST) \
434  test_http_common \
435  $(HTTP_CLIENT_PLUGIN_TEST) \
436  $(HTTPS_CLIENT_PLUGIN_TEST) \
437  $(HTTP_SERVER_PLUGIN_TEST) \
438  $(HTTPS_SERVER_PLUGIN_TEST) \
439  test_transport_api_blacklisting \
440  test_transport_api_disconnect_tcp \
441  test_transport_api_bidirectional_connect \
442  test_transport_api_tcp \
443  test_transport_api_restart_1peer \
444  test_transport_api_restart_2peers \
445  test_transport_api_timeout_tcp \
446  test_transport_address_switch_tcp \
447  test_transport_api_limited_sockets_tcp \
448  test_transport_api_tcp_nat \
449  test_transport_api_udp \
450  test_transport_api_timeout_udp \
451  test_transport_address_switch_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 endif
498
499 if ENABLE_TEST_RUN
500 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
501 TESTS = \
502  test_transport_testing_startstop \
503  test_transport_testing_restart \
504  test_transport_testing \
505  test_transport_startonly \
506  test_plugin_tcp \
507  test_plugin_udp \
508  $(UNIX_TEST) \
509  $(WLAN_PLUGIN_TEST) \
510  $(BT_PLUGIN_TEST) \
511  test_transport_api_blacklisting \
512  test_transport_api_disconnect_tcp \
513  test_transport_api_bidirectional_connect \
514  test_transport_api_tcp \
515  test_transport_api_restart_1peer \
516  test_transport_api_restart_2peers \
517  test_transport_api_timeout_tcp \
518  test_transport_api_limited_sockets_tcp \
519  test_transport_api_tcp_nat \
520  test_transport_address_switch_tcp \
521  test_transport_api_udp \
522  test_transport_api_timeout_udp \
523  test_transport_address_switch_udp \
524  $(UNIX_PLUGIN_TEST) \
525  $(UNIX_PLUGIN_TIMEOUT_TEST) \
526  $(UNIX_API_ABSTRACT_TEST) \
527  test_transport_api_udp_nat \
528  $(HTTP_API_TEST) \
529  $(HTTP_API_TIMEOUT_TEST) \
530  $(HTTP_SWITCH) \
531  $(HTTPS_API_TEST) \
532  $(HTTPS_API_TIMEOUT_TEST) \
533  $(HTTPS_SWITCH) \
534  $(WLAN_API_TEST) \
535  $(WLAN_TIMEOUT_TEST) \
536  $(BT_API_TEST) \
537  $(BT_TIMEOUT_TEST) \
538  test_transport_api_multi \
539  test_transport_api_monitor_peers \
540  test_transport_api_monitor_validation \
541  test_transport_blacklisting_no_bl \
542  test_transport_blacklisting_outbound_bl_full \
543  test_transport_blacklisting_outbound_bl_plugin \
544  test_transport_blacklisting_inbound_bl_plugin \
545  test_transport_blacklisting_inbound_bl_full \
546  test_transport_blacklisting_multiple_plugins \
547  test_transport_api_manipulation_send_tcp \
548  test_transport_api_manipulation_recv_tcp \
549  test_transport_api_manipulation_cfg \
550  test_transport_api_reliability_tcp \
551  test_transport_api_reliability_tcp_nat \
552  test_transport_api_reliability_udp \
553  $(UNIX_REL_TEST) \
554  $(HTTP_REL_TEST) \
555  $(HTTPS_REL_TEST) \
556  $(WLAN_REL_TEST) \
557  $(WLAN_UREL_TEST) \
558  $(BT_REL_TEST) \
559  $(BT_UREL_TEST) \
560  test_quota_compliance_tcp \
561  test_quota_compliance_tcp_asymmetric \
562  test_quota_compliance_udp \
563  $(UNIX_QUOTA_TEST) \
564  $(HTTP_QUOTA_TEST) \
565  $(HTTPS_QUOTA_TEST)
566 endif
567
568 test_transport_testing_startstop_SOURCES = \
569  test_transport_testing_startstop.c
570 test_transport_testing_startstop_LDADD = \
571  $(top_builddir)/src/util/libgnunetutil.la \
572  $(top_builddir)/src/transport/libgnunettransport.la \
573  $(top_builddir)/src/hello/libgnunethello.la \
574  $(top_builddir)/src/transport/libgnunettransporttesting.la
575
576 test_transport_testing_restart_SOURCES = \
577  test_transport_testing_restart.c
578 test_transport_testing_restart_LDADD = \
579  $(top_builddir)/src/util/libgnunetutil.la \
580  $(top_builddir)/src/transport/libgnunettransport.la \
581  $(top_builddir)/src/hello/libgnunethello.la \
582  $(top_builddir)/src/transport/libgnunettransporttesting.la
583
584 test_transport_testing_SOURCES = \
585  test_transport_testing.c
586 test_transport_testing_LDADD = \
587  $(top_builddir)/src/util/libgnunetutil.la \
588  $(top_builddir)/src/transport/libgnunettransport.la \
589  $(top_builddir)/src/hello/libgnunethello.la \
590  $(top_builddir)/src/transport/libgnunettransporttesting.la
591
592 test_transport_api_blacklisting_SOURCES = \
593  test_transport_api_blacklisting.c
594 test_transport_api_blacklisting_LDADD = \
595  $(top_builddir)/src/transport/libgnunettransport.la \
596  $(top_builddir)/src/hello/libgnunethello.la \
597  $(top_builddir)/src/statistics/libgnunetstatistics.la \
598  $(top_builddir)/src/util/libgnunetutil.la \
599  $(top_builddir)/src/transport/libgnunettransporttesting.la
600
601 test_transport_blacklisting_no_bl_SOURCES = \
602  test_transport_blacklisting.c
603 test_transport_blacklisting_no_bl_LDADD = \
604  $(top_builddir)/src/transport/libgnunettransport.la \
605  $(top_builddir)/src/hello/libgnunethello.la \
606  $(top_builddir)/src/statistics/libgnunetstatistics.la \
607  $(top_builddir)/src/util/libgnunetutil.la \
608  $(top_builddir)/src/transport/libgnunettransporttesting.la
609
610 test_transport_blacklisting_outbound_bl_full_SOURCES = \
611  test_transport_blacklisting.c
612 test_transport_blacklisting_outbound_bl_full_LDADD = \
613  $(top_builddir)/src/transport/libgnunettransport.la \
614  $(top_builddir)/src/hello/libgnunethello.la \
615  $(top_builddir)/src/statistics/libgnunetstatistics.la \
616  $(top_builddir)/src/util/libgnunetutil.la \
617  $(top_builddir)/src/transport/libgnunettransporttesting.la
618
619 test_transport_blacklisting_outbound_bl_plugin_SOURCES = \
620  test_transport_blacklisting.c
621 test_transport_blacklisting_outbound_bl_plugin_LDADD = \
622  $(top_builddir)/src/transport/libgnunettransport.la \
623  $(top_builddir)/src/hello/libgnunethello.la \
624  $(top_builddir)/src/statistics/libgnunetstatistics.la \
625  $(top_builddir)/src/util/libgnunetutil.la \
626  $(top_builddir)/src/transport/libgnunettransporttesting.la
627
628 test_transport_blacklisting_inbound_bl_full_SOURCES = \
629  test_transport_blacklisting.c
630 test_transport_blacklisting_inbound_bl_full_LDADD = \
631  $(top_builddir)/src/transport/libgnunettransport.la \
632  $(top_builddir)/src/hello/libgnunethello.la \
633  $(top_builddir)/src/statistics/libgnunetstatistics.la \
634  $(top_builddir)/src/util/libgnunetutil.la \
635  $(top_builddir)/src/transport/libgnunettransporttesting.la
636
637 test_transport_blacklisting_inbound_bl_plugin_SOURCES = \
638  test_transport_blacklisting.c
639 test_transport_blacklisting_inbound_bl_plugin_LDADD = \
640  $(top_builddir)/src/transport/libgnunettransport.la \
641  $(top_builddir)/src/hello/libgnunethello.la \
642  $(top_builddir)/src/statistics/libgnunetstatistics.la \
643  $(top_builddir)/src/util/libgnunetutil.la \
644  $(top_builddir)/src/transport/libgnunettransporttesting.la
645
646 test_transport_blacklisting_multiple_plugins_SOURCES = \
647  test_transport_blacklisting.c
648 test_transport_blacklisting_multiple_plugins_LDADD = \
649  $(top_builddir)/src/transport/libgnunettransport.la \
650  $(top_builddir)/src/hello/libgnunethello.la \
651  $(top_builddir)/src/statistics/libgnunetstatistics.la \
652  $(top_builddir)/src/util/libgnunetutil.la \
653  $(top_builddir)/src/transport/libgnunettransporttesting.la
654
655
656 test_transport_api_disconnect_tcp_SOURCES = \
657  test_transport_api_disconnect.c
658 test_transport_api_disconnect_tcp_LDADD = \
659  $(top_builddir)/src/transport/libgnunettransport.la \
660  $(top_builddir)/src/hello/libgnunethello.la \
661  $(top_builddir)/src/statistics/libgnunetstatistics.la \
662  $(top_builddir)/src/util/libgnunetutil.la \
663  $(top_builddir)/src/transport/libgnunettransporttesting.la
664
665 test_transport_startonly_SOURCES = \
666  test_transport_startonly.c
667 test_transport_startonly_LDADD = \
668  $(top_builddir)/src/transport/libgnunettransport.la \
669  $(top_builddir)/src/hello/libgnunethello.la \
670  $(top_builddir)/src/statistics/libgnunetstatistics.la \
671  $(top_builddir)/src/util/libgnunetutil.la \
672  $(top_builddir)/src/transport/libgnunettransporttesting.la
673
674 test_plugin_tcp_SOURCES = \
675  test_plugin_transport.c
676 test_plugin_tcp_LDADD = \
677  $(top_builddir)/src/transport/libgnunettransport.la \
678  $(top_builddir)/src/statistics/libgnunetstatistics.la \
679  $(top_builddir)/src/hello/libgnunethello.la \
680  $(top_builddir)/src/util/libgnunetutil.la  \
681  $(top_builddir)/src/transport/libgnunettransporttesting.la
682
683 test_plugin_udp_SOURCES = \
684  test_plugin_transport.c
685 test_plugin_udp_LDADD = \
686  $(top_builddir)/src/transport/libgnunettransport.la \
687  $(top_builddir)/src/statistics/libgnunetstatistics.la \
688  $(top_builddir)/src/hello/libgnunethello.la \
689  $(top_builddir)/src/util/libgnunetutil.la  \
690  $(top_builddir)/src/transport/libgnunettransporttesting.la
691
692 test_plugin_unix_SOURCES = \
693  test_plugin_transport.c
694 test_plugin_unix_LDADD = \
695  $(top_builddir)/src/transport/libgnunettransport.la \
696  $(top_builddir)/src/statistics/libgnunetstatistics.la \
697  $(top_builddir)/src/hello/libgnunethello.la \
698  $(top_builddir)/src/util/libgnunetutil.la  \
699  $(top_builddir)/src/transport/libgnunettransporttesting.la
700
701 test_plugin_wlan_SOURCES = \
702  test_plugin_transport.c
703 test_plugin_wlan_LDADD = \
704  $(top_builddir)/src/transport/libgnunettransport.la \
705  $(top_builddir)/src/statistics/libgnunetstatistics.la \
706  $(top_builddir)/src/hello/libgnunethello.la \
707  $(top_builddir)/src/util/libgnunetutil.la  \
708  $(top_builddir)/src/transport/libgnunettransporttesting.la
709
710 test_plugin_bluetooth_SOURCES = \
711  test_plugin_transport.c
712 test_plugin_bluetooth_LDADD = \
713  $(top_builddir)/src/transport/libgnunettransport.la \
714  $(top_builddir)/src/statistics/libgnunetstatistics.la \
715  $(top_builddir)/src/hello/libgnunethello.la \
716  $(top_builddir)/src/util/libgnunetutil.la  \
717  $(top_builddir)/src/transport/libgnunettransporttesting.la
718
719 test_http_common_SOURCES = \
720  test_http_common.c plugin_transport_http_common.c
721 test_http_common_LDADD = \
722  $(top_builddir)/src/transport/libgnunettransport.la \
723  $(top_builddir)/src/statistics/libgnunetstatistics.la \
724  $(top_builddir)/src/hello/libgnunethello.la \
725  $(top_builddir)/src/util/libgnunetutil.la  \
726  $(top_builddir)/src/transport/libgnunettransporttesting.la
727
728 test_plugin_http_server_SOURCES = \
729  test_plugin_transport.c
730 test_plugin_http_server_LDADD = \
731  $(top_builddir)/src/transport/libgnunettransport.la \
732  $(top_builddir)/src/statistics/libgnunetstatistics.la \
733  $(top_builddir)/src/hello/libgnunethello.la \
734  $(top_builddir)/src/util/libgnunetutil.la  \
735  $(top_builddir)/src/transport/libgnunettransporttesting.la
736
737 test_plugin_https_server_SOURCES = \
738  test_plugin_transport.c
739 test_plugin_https_server_LDADD = \
740  $(top_builddir)/src/transport/libgnunettransport.la \
741  $(top_builddir)/src/statistics/libgnunetstatistics.la \
742  $(top_builddir)/src/hello/libgnunethello.la \
743  $(top_builddir)/src/util/libgnunetutil.la  \
744  $(top_builddir)/src/transport/libgnunettransporttesting.la
745
746 test_plugin_http_client_SOURCES = \
747  test_plugin_transport.c
748 test_plugin_http_client_LDADD = \
749  $(top_builddir)/src/transport/libgnunettransport.la \
750  $(top_builddir)/src/statistics/libgnunetstatistics.la \
751  $(top_builddir)/src/hello/libgnunethello.la \
752  $(top_builddir)/src/util/libgnunetutil.la  \
753  $(top_builddir)/src/transport/libgnunettransporttesting.la
754
755 test_plugin_https_client_SOURCES = \
756  test_plugin_transport.c
757 test_plugin_https_client_LDADD = \
758  $(top_builddir)/src/transport/libgnunettransport.la \
759  $(top_builddir)/src/statistics/libgnunetstatistics.la \
760  $(top_builddir)/src/hello/libgnunethello.la \
761  $(top_builddir)/src/util/libgnunetutil.la  \
762  $(top_builddir)/src/transport/libgnunettransporttesting.la
763
764 test_transport_api_tcp_SOURCES = \
765  test_transport_api.c
766 test_transport_api_tcp_LDADD = \
767  $(top_builddir)/src/transport/libgnunettransport.la \
768  $(top_builddir)/src/hello/libgnunethello.la \
769  $(top_builddir)/src/util/libgnunetutil.la  \
770  $(top_builddir)/src/transport/libgnunettransporttesting.la
771
772 test_transport_api_bidirectional_connect_SOURCES = \
773  test_transport_api_bidirectional_connect.c
774 test_transport_api_bidirectional_connect_LDADD = \
775  $(top_builddir)/src/transport/libgnunettransport.la \
776  $(top_builddir)/src/hello/libgnunethello.la \
777  $(top_builddir)/src/util/libgnunetutil.la  \
778  $(top_builddir)/src/transport/libgnunettransporttesting.la
779
780 test_transport_api_restart_1peer_SOURCES = \
781  test_transport_api_restart_1peer.c
782 test_transport_api_restart_1peer_LDADD = \
783  $(top_builddir)/src/transport/libgnunettransport.la \
784  $(top_builddir)/src/hello/libgnunethello.la \
785  $(top_builddir)/src/statistics/libgnunetstatistics.la \
786  $(top_builddir)/src/util/libgnunetutil.la \
787  $(top_builddir)/src/transport/libgnunettransporttesting.la
788
789 test_transport_api_restart_2peers_SOURCES = \
790  test_transport_api_restart_2peers.c
791 test_transport_api_restart_2peers_LDADD = \
792  $(top_builddir)/src/transport/libgnunettransport.la \
793  $(top_builddir)/src/hello/libgnunethello.la \
794  $(top_builddir)/src/statistics/libgnunetstatistics.la \
795  $(top_builddir)/src/util/libgnunetutil.la \
796  $(top_builddir)/src/transport/libgnunettransporttesting.la
797
798 test_transport_api_limited_sockets_tcp_SOURCES = \
799  test_transport_api_limited_sockets.c
800 test_transport_api_limited_sockets_tcp_LDADD = \
801  $(top_builddir)/src/transport/libgnunettransport.la \
802  $(top_builddir)/src/hello/libgnunethello.la \
803  $(top_builddir)/src/util/libgnunetutil.la  \
804  $(top_builddir)/src/transport/libgnunettransporttesting.la
805
806 test_transport_api_tcp_nat_SOURCES = \
807  test_transport_api.c
808 test_transport_api_tcp_nat_LDADD = \
809  $(top_builddir)/src/transport/libgnunettransport.la \
810  $(top_builddir)/src/hello/libgnunethello.la \
811  $(top_builddir)/src/util/libgnunetutil.la \
812  $(top_builddir)/src/transport/libgnunettransporttesting.la
813
814 test_transport_api_manipulation_send_tcp_SOURCES = \
815  test_transport_api_manipulation_send_tcp.c
816 test_transport_api_manipulation_send_tcp_LDADD = \
817  $(top_builddir)/src/transport/libgnunettransport.la \
818  $(top_builddir)/src/hello/libgnunethello.la \
819  $(top_builddir)/src/util/libgnunetutil.la \
820  $(top_builddir)/src/transport/libgnunettransporttesting.la
821
822 test_transport_api_manipulation_recv_tcp_SOURCES = \
823  test_transport_api_manipulation_recv_tcp.c
824 test_transport_api_manipulation_recv_tcp_LDADD = \
825  $(top_builddir)/src/transport/libgnunettransport.la \
826  $(top_builddir)/src/hello/libgnunethello.la \
827  $(top_builddir)/src/util/libgnunetutil.la \
828  $(top_builddir)/src/transport/libgnunettransporttesting.la
829
830 test_transport_api_manipulation_cfg_SOURCES = \
831  test_transport_api_manipulation_cfg.c
832 test_transport_api_manipulation_cfg_LDADD = \
833  $(top_builddir)/src/transport/libgnunettransport.la \
834  $(top_builddir)/src/hello/libgnunethello.la \
835  $(top_builddir)/src/util/libgnunetutil.la \
836  $(top_builddir)/src/transport/libgnunettransporttesting.la
837
838 test_transport_api_reliability_tcp_SOURCES = \
839  test_transport_api_reliability.c
840 test_transport_api_reliability_tcp_LDADD = \
841  $(top_builddir)/src/transport/libgnunettransport.la \
842  $(top_builddir)/src/hello/libgnunethello.la \
843  $(top_builddir)/src/util/libgnunetutil.la \
844  $(top_builddir)/src/transport/libgnunettransporttesting.la
845
846 test_transport_api_timeout_tcp_SOURCES = \
847  test_transport_api_timeout.c
848 test_transport_api_timeout_tcp_LDADD = \
849  $(top_builddir)/src/transport/libgnunettransport.la \
850  $(top_builddir)/src/hello/libgnunethello.la \
851  $(top_builddir)/src/util/libgnunetutil.la \
852  $(top_builddir)/src/transport/libgnunettransporttesting.la
853
854 test_transport_api_timeout_unix_SOURCES = \
855  test_transport_api_timeout.c
856 test_transport_api_timeout_unix_LDADD = \
857  $(top_builddir)/src/transport/libgnunettransport.la \
858  $(top_builddir)/src/hello/libgnunethello.la \
859  $(top_builddir)/src/util/libgnunetutil.la \
860  $(top_builddir)/src/transport/libgnunettransporttesting.la
861
862 test_transport_api_timeout_wlan_SOURCES = \
863  test_transport_api_timeout.c
864 test_transport_api_timeout_wlan_LDADD = \
865  $(top_builddir)/src/transport/libgnunettransport.la \
866  $(top_builddir)/src/hello/libgnunethello.la \
867  $(top_builddir)/src/util/libgnunetutil.la \
868  $(top_builddir)/src/transport/libgnunettransporttesting.la
869
870 test_transport_api_timeout_bluetooth_SOURCES = \
871  test_transport_api_timeout.c
872 test_transport_api_timeout_bluetooth_LDADD = \
873  $(top_builddir)/src/transport/libgnunettransport.la \
874  $(top_builddir)/src/hello/libgnunethello.la \
875  $(top_builddir)/src/util/libgnunetutil.la \
876  $(top_builddir)/src/transport/libgnunettransporttesting.la
877
878 test_transport_api_reliability_tcp_nat_SOURCES = \
879  test_transport_api_reliability.c
880 test_transport_api_reliability_tcp_nat_LDADD = \
881  $(top_builddir)/src/transport/libgnunettransport.la \
882  $(top_builddir)/src/hello/libgnunethello.la \
883  $(top_builddir)/src/util/libgnunetutil.la \
884  $(top_builddir)/src/transport/libgnunettransporttesting.la
885
886 test_transport_api_reliability_bluetooth_SOURCES = \
887  test_transport_api_reliability.c
888 test_transport_api_reliability_bluetooth_LDADD = \
889  $(top_builddir)/src/transport/libgnunettransport.la \
890  $(top_builddir)/src/hello/libgnunethello.la \
891  $(top_builddir)/src/util/libgnunetutil.la \
892  $(top_builddir)/src/transport/libgnunettransporttesting.la
893
894 test_transport_api_reliability_wlan_SOURCES = \
895  test_transport_api_reliability.c
896 test_transport_api_reliability_wlan_LDADD = \
897  $(top_builddir)/src/transport/libgnunettransport.la \
898  $(top_builddir)/src/hello/libgnunethello.la \
899  $(top_builddir)/src/util/libgnunetutil.la \
900  $(top_builddir)/src/transport/libgnunettransporttesting.la
901
902 test_transport_api_udp_SOURCES = \
903  test_transport_api.c
904 test_transport_api_udp_LDADD = \
905  $(top_builddir)/src/transport/libgnunettransport.la \
906  $(top_builddir)/src/hello/libgnunethello.la \
907  $(top_builddir)/src/util/libgnunetutil.la  \
908  $(top_builddir)/src/transport/libgnunettransporttesting.la
909
910 test_transport_api_timeout_udp_SOURCES = \
911  test_transport_api_timeout.c
912 test_transport_api_timeout_udp_LDADD = \
913  $(top_builddir)/src/transport/libgnunettransport.la \
914  $(top_builddir)/src/hello/libgnunethello.la \
915  $(top_builddir)/src/util/libgnunetutil.la \
916  $(top_builddir)/src/transport/libgnunettransporttesting.la
917
918 test_transport_api_udp_nat_SOURCES = \
919  test_transport_api.c
920 test_transport_api_udp_nat_LDADD = \
921  $(top_builddir)/src/transport/libgnunettransport.la \
922  $(top_builddir)/src/hello/libgnunethello.la \
923  $(top_builddir)/src/util/libgnunetutil.la  \
924  $(top_builddir)/src/transport/libgnunettransporttesting.la
925
926 test_transport_api_unix_SOURCES = \
927  test_transport_api.c
928 test_transport_api_unix_LDADD = \
929  $(top_builddir)/src/transport/libgnunettransport.la \
930  $(top_builddir)/src/hello/libgnunethello.la \
931  $(top_builddir)/src/util/libgnunetutil.la \
932  $(top_builddir)/src/transport/libgnunettransporttesting.la
933
934 test_transport_api_unix_abstract_SOURCES = \
935  test_transport_api.c
936 test_transport_api_unix_abstract_LDADD = \
937  $(top_builddir)/src/transport/libgnunettransport.la \
938  $(top_builddir)/src/hello/libgnunethello.la \
939  $(top_builddir)/src/util/libgnunetutil.la \
940  $(top_builddir)/src/transport/libgnunettransporttesting.la
941
942 # HTTP tests
943 test_transport_api_http_SOURCES = \
944  test_transport_api.c
945 test_transport_api_http_LDADD = \
946  $(top_builddir)/src/transport/libgnunettransport.la \
947  $(top_builddir)/src/hello/libgnunethello.la \
948  $(top_builddir)/src/util/libgnunetutil.la \
949  $(top_builddir)/src/transport/libgnunettransporttesting.la
950
951 test_transport_api_http_reverse_SOURCES = \
952  test_transport_api.c
953 test_transport_api_http_reverse_LDADD = \
954  $(top_builddir)/src/transport/libgnunettransport.la \
955  $(top_builddir)/src/hello/libgnunethello.la \
956  $(top_builddir)/src/util/libgnunetutil.la \
957  $(top_builddir)/src/transport/libgnunettransporttesting.la
958
959 test_transport_api_timeout_http_SOURCES = \
960  test_transport_api_timeout.c
961 test_transport_api_timeout_http_LDADD = \
962  $(top_builddir)/src/transport/libgnunettransport.la \
963  $(top_builddir)/src/hello/libgnunethello.la \
964  $(top_builddir)/src/util/libgnunetutil.la \
965  $(top_builddir)/src/transport/libgnunettransporttesting.la
966
967 test_transport_api_reliability_http_SOURCES = \
968  test_transport_api_reliability.c
969 test_transport_api_reliability_http_LDADD = \
970  $(top_builddir)/src/transport/libgnunettransport.la \
971  $(top_builddir)/src/hello/libgnunethello.la \
972  $(top_builddir)/src/util/libgnunetutil.la \
973  $(top_builddir)/src/transport/libgnunettransporttesting.la
974
975 test_transport_api_reliability_http_xhr_SOURCES = \
976  test_transport_api_reliability.c
977 test_transport_api_reliability_http_xhr_LDADD = \
978  $(top_builddir)/src/transport/libgnunettransport.la \
979  $(top_builddir)/src/hello/libgnunethello.la \
980  $(top_builddir)/src/util/libgnunetutil.la \
981  $(top_builddir)/src/transport/libgnunettransporttesting.la
982
983 test_quota_compliance_http_SOURCES = \
984  test_quota_compliance.c
985 test_quota_compliance_http_LDADD = \
986  $(top_builddir)/src/transport/libgnunettransport.la \
987  $(top_builddir)/src/hello/libgnunethello.la \
988  $(top_builddir)/src/util/libgnunetutil.la \
989  $(top_builddir)/src/transport/libgnunettransporttesting.la
990
991 test_quota_compliance_http_asymmetric_SOURCES = \
992  test_quota_compliance.c
993 test_quota_compliance_http_asymmetric_LDADD = \
994  $(top_builddir)/src/transport/libgnunettransport.la \
995  $(top_builddir)/src/hello/libgnunethello.la \
996  $(top_builddir)/src/util/libgnunetutil.la \
997  $(top_builddir)/src/transport/libgnunettransporttesting.la
998
999 test_quota_compliance_https_SOURCES = \
1000  test_quota_compliance.c
1001 test_quota_compliance_https_LDADD = \
1002  $(top_builddir)/src/transport/libgnunettransport.la \
1003  $(top_builddir)/src/hello/libgnunethello.la \
1004  $(top_builddir)/src/util/libgnunetutil.la \
1005  $(top_builddir)/src/transport/libgnunettransporttesting.la
1006
1007 test_quota_compliance_https_asymmetric_SOURCES = \
1008  test_quota_compliance.c
1009 test_quota_compliance_https_asymmetric_LDADD = \
1010  $(top_builddir)/src/transport/libgnunettransport.la \
1011  $(top_builddir)/src/hello/libgnunethello.la \
1012  $(top_builddir)/src/util/libgnunetutil.la \
1013  $(top_builddir)/src/transport/libgnunettransporttesting.la
1014
1015 # HTTPS tests
1016 test_transport_api_https_SOURCES = \
1017  test_transport_api.c
1018 test_transport_api_https_LDADD = \
1019  $(top_builddir)/src/transport/libgnunettransport.la \
1020  $(top_builddir)/src/hello/libgnunethello.la \
1021  $(top_builddir)/src/util/libgnunetutil.la  \
1022  $(top_builddir)/src/transport/libgnunettransporttesting.la
1023
1024 test_transport_api_timeout_https_SOURCES = \
1025  test_transport_api_timeout.c
1026 test_transport_api_timeout_https_LDADD = \
1027  $(top_builddir)/src/transport/libgnunettransport.la \
1028  $(top_builddir)/src/hello/libgnunethello.la \
1029  $(top_builddir)/src/util/libgnunetutil.la \
1030  $(top_builddir)/src/transport/libgnunettransporttesting.la
1031
1032
1033 test_transport_api_reliability_https_SOURCES = \
1034  test_transport_api_reliability.c
1035 test_transport_api_reliability_https_LDADD = \
1036  $(top_builddir)/src/transport/libgnunettransport.la \
1037  $(top_builddir)/src/hello/libgnunethello.la \
1038  $(top_builddir)/src/util/libgnunetutil.la \
1039  $(top_builddir)/src/transport/libgnunettransporttesting.la
1040
1041 test_transport_api_reliability_https_xhr_SOURCES = \
1042  test_transport_api_reliability.c
1043 test_transport_api_reliability_https_xhr_LDADD = \
1044  $(top_builddir)/src/transport/libgnunettransport.la \
1045  $(top_builddir)/src/hello/libgnunethello.la \
1046  $(top_builddir)/src/util/libgnunetutil.la \
1047  $(top_builddir)/src/transport/libgnunettransporttesting.la
1048
1049 test_transport_api_reliability_unix_SOURCES = \
1050  test_transport_api_reliability.c
1051 test_transport_api_reliability_unix_LDADD = \
1052  $(top_builddir)/src/transport/libgnunettransport.la \
1053  $(top_builddir)/src/hello/libgnunethello.la \
1054  $(top_builddir)/src/util/libgnunetutil.la \
1055  $(top_builddir)/src/transport/libgnunettransporttesting.la
1056
1057 test_transport_api_reliability_udp_SOURCES = \
1058  test_transport_api_reliability.c
1059 test_transport_api_reliability_udp_LDADD = \
1060  $(top_builddir)/src/transport/libgnunettransport.la \
1061  $(top_builddir)/src/hello/libgnunethello.la \
1062  $(top_builddir)/src/util/libgnunetutil.la \
1063  $(top_builddir)/src/transport/libgnunettransporttesting.la
1064
1065 if LINUX
1066 test_transport_api_wlan_SOURCES = \
1067  test_transport_api.c
1068 test_transport_api_wlan_LDADD = \
1069  $(top_builddir)/src/transport/libgnunettransport.la \
1070  $(top_builddir)/src/hello/libgnunethello.la \
1071  $(top_builddir)/src/util/libgnunetutil.la \
1072  $(top_builddir)/src/transport/libgnunettransporttesting.la
1073 endif
1074
1075 if LINUX
1076 if HAVE_LIBBLUETOOTH
1077 test_transport_api_bluetooth_SOURCES = \
1078  test_transport_api.c
1079 test_transport_api_bluetooth_LDADD = \
1080  $(top_builddir)/src/transport/libgnunettransport.la \
1081  $(top_builddir)/src/hello/libgnunethello.la \
1082  $(top_builddir)/src/util/libgnunetutil.la \
1083  $(top_builddir)/src/transport/libgnunettransporttesting.la
1084 endif
1085 endif
1086
1087 test_transport_address_switch_tcp_SOURCES = \
1088  test_transport_address_switch.c
1089 test_transport_address_switch_tcp_LDADD = \
1090  $(top_builddir)/src/transport/libgnunettransport.la \
1091  $(top_builddir)/src/hello/libgnunethello.la \
1092  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1093  $(top_builddir)/src/util/libgnunetutil.la \
1094  $(top_builddir)/src/transport/libgnunettransporttesting.la
1095
1096  test_transport_address_switch_udp_SOURCES = \
1097  test_transport_address_switch.c
1098 test_transport_address_switch_udp_LDADD = \
1099  $(top_builddir)/src/transport/libgnunettransport.la \
1100  $(top_builddir)/src/hello/libgnunethello.la \
1101  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1102  $(top_builddir)/src/util/libgnunetutil.la \
1103  $(top_builddir)/src/transport/libgnunettransporttesting.la
1104
1105
1106  test_transport_address_switch_http_SOURCES = \
1107  test_transport_address_switch.c
1108 test_transport_address_switch_http_LDADD = \
1109  $(top_builddir)/src/transport/libgnunettransport.la \
1110  $(top_builddir)/src/hello/libgnunethello.la \
1111  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1112  $(top_builddir)/src/util/libgnunetutil.la \
1113  $(top_builddir)/src/transport/libgnunettransporttesting.la
1114
1115  test_transport_address_switch_https_SOURCES = \
1116  test_transport_address_switch.c
1117 test_transport_address_switch_https_LDADD = \
1118  $(top_builddir)/src/transport/libgnunettransport.la \
1119  $(top_builddir)/src/hello/libgnunethello.la \
1120  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1121  $(top_builddir)/src/util/libgnunetutil.la \
1122  $(top_builddir)/src/transport/libgnunettransporttesting.la
1123
1124 test_quota_compliance_tcp_SOURCES = \
1125  test_quota_compliance.c
1126 test_quota_compliance_tcp_LDADD = \
1127  $(top_builddir)/src/transport/libgnunettransport.la \
1128  $(top_builddir)/src/hello/libgnunethello.la \
1129  $(top_builddir)/src/util/libgnunetutil.la \
1130  $(top_builddir)/src/transport/libgnunettransporttesting.la
1131
1132 test_quota_compliance_tcp_asymmetric_SOURCES = \
1133  test_quota_compliance.c
1134 test_quota_compliance_tcp_asymmetric_LDADD = \
1135  $(top_builddir)/src/transport/libgnunettransport.la \
1136  $(top_builddir)/src/hello/libgnunethello.la \
1137  $(top_builddir)/src/util/libgnunetutil.la \
1138  $(top_builddir)/src/transport/libgnunettransporttesting.la
1139
1140 test_quota_compliance_udp_SOURCES = \
1141  test_quota_compliance.c
1142 test_quota_compliance_udp_LDADD = \
1143  $(top_builddir)/src/transport/libgnunettransport.la \
1144  $(top_builddir)/src/hello/libgnunethello.la \
1145  $(top_builddir)/src/util/libgnunetutil.la \
1146  $(top_builddir)/src/transport/libgnunettransporttesting.la
1147
1148 test_quota_compliance_unix_SOURCES = \
1149  test_quota_compliance.c
1150 test_quota_compliance_unix_LDADD = \
1151  $(top_builddir)/src/transport/libgnunettransport.la \
1152  $(top_builddir)/src/hello/libgnunethello.la \
1153  $(top_builddir)/src/util/libgnunetutil.la \
1154  $(top_builddir)/src/transport/libgnunettransporttesting.la
1155
1156 test_quota_compliance_unix_asymmetric_SOURCES = \
1157  test_quota_compliance.c
1158 test_quota_compliance_unix_asymmetric_LDADD = \
1159  $(top_builddir)/src/transport/libgnunettransport.la \
1160  $(top_builddir)/src/hello/libgnunethello.la \
1161  $(top_builddir)/src/util/libgnunetutil.la \
1162  $(top_builddir)/src/transport/libgnunettransporttesting.la
1163
1164 test_quota_compliance_wlan_SOURCES = \
1165  test_quota_compliance.c
1166 test_quota_compliance_wlan_LDADD = \
1167  $(top_builddir)/src/transport/libgnunettransport.la \
1168  $(top_builddir)/src/hello/libgnunethello.la \
1169  $(top_builddir)/src/util/libgnunetutil.la \
1170  $(top_builddir)/src/transport/libgnunettransporttesting.la
1171
1172 test_quota_compliance_wlan_asymmetric_SOURCES = \
1173  test_quota_compliance.c
1174 test_quota_compliance_wlan_asymmetric_LDADD = \
1175  $(top_builddir)/src/transport/libgnunettransport.la \
1176  $(top_builddir)/src/hello/libgnunethello.la \
1177  $(top_builddir)/src/util/libgnunetutil.la \
1178  $(top_builddir)/src/transport/libgnunettransporttesting.la
1179
1180 test_quota_compliance_bluetooth_SOURCES = \
1181  test_quota_compliance.c
1182 test_quota_compliance_bluetooth_LDADD = \
1183  $(top_builddir)/src/nat/libgnunetnat.la \
1184  $(top_builddir)/src/transport/libgnunettransport.la \
1185  $(top_builddir)/src/hello/libgnunethello.la \
1186  $(top_builddir)/src/util/libgnunetutil.la \
1187  $(top_builddir)/src/transport/libgnunettransporttesting.la
1188
1189 test_quota_compliance_bluetooth_asymmetric_SOURCES = \
1190  test_quota_compliance.c
1191 test_quota_compliance_bluetooth_asymmetric_LDADD = \
1192  $(top_builddir)/src/transport/libgnunettransport.la \
1193  $(top_builddir)/src/hello/libgnunethello.la \
1194  $(top_builddir)/src/util/libgnunetutil.la \
1195  $(top_builddir)/src/transport/libgnunettransporttesting.la
1196
1197 test_transport_api_multi_SOURCES = \
1198  test_transport_api.c
1199 test_transport_api_multi_LDADD = \
1200  $(top_builddir)/src/transport/libgnunettransport.la \
1201  $(top_builddir)/src/hello/libgnunethello.la \
1202  $(top_builddir)/src/util/libgnunetutil.la \
1203  $(top_builddir)/src/transport/libgnunettransporttesting.la
1204
1205 test_transport_api_monitor_peers_SOURCES = \
1206  test_transport_api_monitor_peers.c
1207 test_transport_api_monitor_peers_LDADD = \
1208  $(top_builddir)/src/transport/libgnunettransport.la \
1209  $(top_builddir)/src/hello/libgnunethello.la \
1210  $(top_builddir)/src/util/libgnunetutil.la \
1211  $(top_builddir)/src/transport/libgnunettransporttesting.la
1212
1213 test_transport_api_monitor_validation_SOURCES = \
1214  test_transport_api_monitor_validation.c
1215 test_transport_api_monitor_validation_LDADD = \
1216  $(top_builddir)/src/transport/libgnunettransport.la \
1217  $(top_builddir)/src/hello/libgnunethello.la \
1218  $(top_builddir)/src/util/libgnunetutil.la \
1219  $(top_builddir)/src/transport/libgnunettransporttesting.la
1220
1221
1222 EXTRA_DIST = \
1223 test_plugin_hostkey \
1224 test_plugin_hostkey.ecc \
1225 template_cfg_peer1.conf\
1226 template_cfg_peer2.conf\
1227 test_plugin_transport_data.conf\
1228 test_plugin_transport_data_udp.conf\
1229 test_quota_compliance_data.conf\
1230 test_quota_compliance_http_peer1.conf\
1231 test_quota_compliance_http_peer2.conf\
1232 test_quota_compliance_https_peer1.conf\
1233 test_quota_compliance_https_peer2.conf\
1234 test_quota_compliance_tcp_peer1.conf\
1235 test_quota_compliance_tcp_peer2.conf\
1236 test_quota_compliance_udp_peer1.conf\
1237 test_quota_compliance_udp_peer2.conf\
1238 test_quota_compliance_unix_peer1.conf\
1239 test_quota_compliance_unix_peer2.conf\
1240 test_quota_compliance_wlan_peer1.conf\
1241 test_quota_compliance_wlan_peer2.conf\
1242 test_quota_compliance_bluetooth_peer1.conf\
1243 test_quota_compliance_bluetooth_peer2.conf\
1244 test_quota_compliance_http_asymmetric_peer1.conf\
1245 test_quota_compliance_http_asymmetric_peer2.conf\
1246 test_quota_compliance_https_asymmetric_peer1.conf\
1247 test_quota_compliance_https_asymmetric_peer2.conf\
1248 test_quota_compliance_tcp_asymmetric_peer1.conf\
1249 test_quota_compliance_tcp_asymmetric_peer2.conf\
1250 test_quota_compliance_unix_asymmetric_peer1.conf\
1251 test_quota_compliance_unix_asymmetric_peer2.conf\
1252 test_quota_compliance_wlan_asymmetric_peer1.conf\
1253 test_quota_compliance_wlan_asymmetric_peer2.conf\
1254 test_quota_compliance_bluetooth_asymmetric_peer1.conf\
1255 test_quota_compliance_bluetooth_asymmetric_peer2.conf\
1256 test_transport_api_data.conf\
1257 test_transport_api_http_peer1.conf\
1258 test_transport_api_http_peer2.conf\
1259 test_transport_api_https_peer1.conf\
1260 test_transport_api_https_peer2.conf\
1261 test_transport_api_limited_sockets_tcp_peer1.conf\
1262 test_transport_api_limited_sockets_tcp_peer2.conf\
1263 test_transport_api_timeout_tcp_peer1.conf\
1264 test_transport_api_timeout_tcp_peer2.conf\
1265 test_transport_api_multi_peer1.conf\
1266 test_transport_api_multi_peer2.conf\
1267 test_transport_api_reliability_http_peer1.conf\
1268 test_transport_api_reliability_http_peer2.conf\
1269 test_transport_api_reliability_https_peer1.conf\
1270 test_transport_api_reliability_https_peer2.conf\
1271 test_transport_api_reliability_tcp_nat_peer1.conf\
1272 test_transport_api_reliability_tcp_nat_peer2.conf\
1273 test_transport_api_reliability_tcp_peer1.conf\
1274 test_transport_api_reliability_tcp_peer2.conf\
1275 test_transport_api_reliability_wlan_peer1.conf\
1276 test_transport_api_reliability_wlan_peer2.conf\
1277 test_transport_api_reliability_bluetooth_peer1.conf\
1278 test_transport_api_reliability_bluetooth_peer2.conf\
1279 test_transport_api_bidirectional_connect_peer1.conf\
1280 test_transport_api_bidirectional_connect_peer2.conf\
1281 test_transport_api_manipulation_send_tcp_peer1.conf\
1282 test_transport_api_manipulation_send_tcp_peer2.conf\
1283 test_transport_api_manipulation_recv_tcp_peer1.conf\
1284 test_transport_api_manipulation_recv_tcp_peer2.conf\
1285 test_transport_api_manipulation_cfg_peer1.conf\
1286 test_transport_api_manipulation_cfg_peer2.conf\
1287 test_transport_api_tcp_nat_peer1.conf\
1288 test_transport_api_tcp_nat_peer2.conf\
1289 test_transport_api_tcp_peer1.conf\
1290 test_transport_api_tcp_peer2.conf\
1291 test_transport_api_udp_nat_peer1.conf\
1292 test_transport_api_udp_nat_peer2.conf\
1293 test_transport_api_udp_peer1.conf\
1294 test_transport_api_udp_peer2.conf\
1295 test_transport_api_timeout_udp_peer1.conf\
1296 test_transport_api_timeout_udp_peer2.conf\
1297 test_transport_api_unix_peer1.conf\
1298 test_transport_api_unix_peer2.conf\
1299 test_transport_api_unix_abstract_peer1.conf \
1300 test_transport_api_unix_abstract_peer2.conf \
1301 test_transport_api_timeout_unix_peer1.conf\
1302 test_transport_api_timeout_unix_peer2.conf\
1303 test_transport_api_timeout_wlan_peer1.conf \
1304 test_transport_api_timeout_wlan_peer2.conf \
1305 test_transport_api_timeout_bluetooth_peer1.conf\
1306 test_transport_api_timeout_bluetooth_peer2.conf\
1307 test_transport_api_reliability_udp_peer1.conf\
1308 test_transport_api_reliability_udp_peer2.conf\
1309 test_transport_api_reliability_unix_peer1.conf\
1310 test_transport_api_reliability_unix_peer2.conf\
1311 test_transport_api_reliability_wlan_peer1.conf\
1312 test_transport_api_reliability_wlan_peer2.conf\
1313 test_transport_api_reliability_bluetooth_peer1.conf\
1314 test_transport_api_reliability_bluetooth_peer2.conf\
1315 test_transport_test_transport_address_switch_http_peer1.conf\
1316 test_transport_test_transport_address_switch_http_peer2.conf\
1317 test_transport_test_transport_address_switch_https_peer1.conf\
1318 test_transport_test_transport_address_switch_https_peer2.conf\
1319 test_transport_test_transport_address_switch_udp_peer1.conf\
1320 test_transport_test_transport_address_switch_udp_peer2.conf\
1321 test_transport_test_transport_address_switch_tcp_peer1.conf\
1322 test_transport_test_transport_address_switch_tcp_peer2.conf\
1323 test_transport_api_wlan_peer1.conf\
1324 test_transport_api_wlan_peer2.conf\
1325 test_transport_api_bluetooth_peer1.conf\
1326 test_transport_api_bluetooth_peer2.conf\
1327 test_transport_api_monitor_peers_peer1.conf\
1328 test_transport_api_monitor_peers_peer2.conf\
1329 test_transport_api_monitor_validation_peer1.conf\
1330 test_transport_api_monitor_validation_peer2.conf\
1331 test_transport_defaults.conf\
1332 test_transport_startonly.conf\
1333 test_transport_api_disconnect_tcp_peer1.conf\
1334 test_transport_api_disconnect_tcp_peer2.conf\
1335 test_transport_api_timeout_http_peer1.conf\
1336 test_transport_api_timeout_http_peer2.conf\
1337 test_transport_api_timeout_https_peer1.conf\
1338 test_transport_api_timeout_https_peer2.conf\
1339 test_transport_blacklisting_cfg_peer1.conf \
1340 test_transport_blacklisting_cfg_peer2.conf \
1341 test_transport_blacklisting_cfg_blp_peer1_full.conf\
1342 test_transport_blacklisting_cfg_blp_peer1_plugin.conf \
1343 test_transport_blacklisting_cfg_blp_peer2_full.conf\
1344 test_transport_blacklisting_cfg_blp_peer2_plugin.conf \
1345 test_transport_blacklisting_cfg_blp_peer1_multiple_plugins.conf \
1346 test_transport_blacklisting_cfg_blp_peer2_multiple_plugins.conf \
1347 test_transport_api_http_reverse_peer1.conf \
1348 test_transport_api_http_reverse_peer2.conf \
1349 perf_tcp_peer1.conf \
1350 perf_tcp_peer2.conf
1351