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