Don't run unix test on W32
[oweals/gnunet.git] / src / transport / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 pkgcfgdir= $(pkgdatadir)/config.d/
6
7 pkgcfg_DATA = \
8   transport.conf
9
10
11 if HAVE_MHD
12  GN_LIBMHD = -lmicrohttpd
13  HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la
14  HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la
15  
16  HTTP_SERVER_PLUGIN_TEST = test_plugin_http_server
17  HTTPS_SERVER_PLUGIN_TEST = test_plugin_https_server
18 endif
19
20 if HAVE_LIBCURL
21  HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la
22  HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la
23 endif
24
25 if FALSE 
26  HTTP_API_TEST = test_transport_api_http
27  HTTP_NAT_API_TEST = test_transport_api_http_nat
28  HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http
29  HTTP_REL_TEST = test_transport_api_reliability_http
30  HTTP_NAT_REL_TEST = test_transport_api_reliability_http_nat
31  HTTP_QUOTA_TEST = test_quota_compliance_http \
32                    test_quota_compliance_http_asymmetric
33
34  HTTPS_API_TEST = test_transport_api_https
35  HTTPS_NAT_API_TEST = test_transport_api_https_nat
36  HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
37  HTTPS_REL_TEST = test_transport_api_reliability_https
38  HTTPS_NAT_REL_TEST = test_transport_api_reliability_https_nat
39  HTTPS_QUOTA_TEST = test_quota_compliance_https \
40                 test_quota_compliance_https_asymmetric
41 endif
42
43
44 if USE_COVERAGE
45   AM_CFLAGS = --coverage -O0
46 endif
47
48 if LINUX
49  WLAN_BIN = gnunet-helper-transport-wlan
50  WLAN_BIN_DUMMY = gnunet-helper-transport-wlan-dummy
51  WLAN_BIN_SENDER = gnunet-transport-wlan-sender
52  WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
53  WLAN_PLUGIN_TEST = test_plugin_wlan
54  WLAN_API_TEST = test_transport_api_wlan
55  WLAN_REL_TEST = test_transport_api_reliability_wlan
56  WLAN_UREL_TEST = test_transport_api_unreliability_wlan
57  WLAN_QUOTA_TEST = test_quota_compliance_wlan \
58                 test_quota_compliance_wlan_asymmetric
59 endif
60
61
62 if LINUX
63 install-exec-hook:
64         $(top_srcdir)/src/transport/install-wlan-helper.sh $(bindir) $(SUDO_BINARY) || true
65 else
66 install-exec-hook:
67 endif
68
69 if !MINGW
70 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
71 UNIX_PLUGIN_TEST = test_transport_api_unix 
72 UNIX_TEST = test_plugin_unix
73 UNIX_PLUGIN_TIMEOUT_TEST = test_transport_api_timeout_unix
74 UNIX_REL_TEST = test_transport_api_unreliability_unix
75 UNIX_QUOTA_TEST = test_quota_compliance_unix \
76      test_quota_compliance_unix_asymmetric
77 endif
78
79 noinst_PROGRAMS = \
80  $(WLAN_BIN_SENDER)
81
82 lib_LTLIBRARIES = \
83   libgnunettransport.la \
84   libgnunettransporttesting.la
85
86 libgnunettransporttesting_la_SOURCES = \
87   transport-testing.c transport-testing.h
88 libgnunettransporttesting_la_LIBADD = \
89   $(top_builddir)/src/transport/libgnunettransport.la \
90   $(top_builddir)/src/hello/libgnunethello.la \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   $(top_builddir)/src/testing/libgnunettesting.la \
93   $(GN_LIBINTL) 
94 libgnunettransporttesting_la_DEPENDENCIES = \
95   libgnunettransport.la
96 libgnunettransporttesting_la_LDFLAGS = \
97  $(GN_LIB_LDFLAGS)
98
99 libgnunettransport_la_SOURCES = \
100   transport_api.c transport.h \
101   transport_api_blacklist.c \
102   transport_api_address_to_string.c \
103   transport_api_address_lookup.c
104 libgnunettransport_la_LIBADD = \
105   $(top_builddir)/src/hello/libgnunethello.la \
106   $(top_builddir)/src/util/libgnunetutil.la \
107   $(GN_LIBINTL) 
108 libgnunettransport_la_LDFLAGS = \
109   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
110   -version-info 1:0:0
111
112 bin_PROGRAMS = \
113  gnunet-transport \
114  $(WLAN_BIN) \
115  $(WLAN_BIN_DUMMY) \
116  gnunet-service-transport \
117  gnunet-transport-certificate-creation
118
119 #bin_SCRIPTS = \
120 # gnunet-transport-certificate-creation
121
122 gnunet_transport_certificate_creation_SOURCES = \
123  gnunet-transport-certificate-creation.c
124 gnunet_transport_certificate_creation_LDADD = \
125   $(top_builddir)/src/util/libgnunetutil.la
126
127 gnunet_helper_transport_wlan_SOURCES = \
128  gnunet-helper-transport-wlan.c
129
130 gnunet_helper_transport_wlan_dummy_SOURCES = \
131  gnunet-helper-transport-wlan-dummy.c
132 gnunet_helper_transport_wlan_dummy_LDADD = \
133   $(top_builddir)/src/util/libgnunetutil.la 
134
135 gnunet_transport_wlan_sender_SOURCES = \
136  gnunet-transport-wlan-sender.c
137 gnunet_transport_wlan_sender_LDADD = \
138   $(top_builddir)/src/util/libgnunetutil.la 
139
140 gnunet_transport_SOURCES = \
141  gnunet-transport.c         
142 gnunet_transport_LDADD = \
143   $(top_builddir)/src/transport/libgnunettransport.la \
144   $(top_builddir)/src/nat/libgnunetnat.la \
145   $(top_builddir)/src/hello/libgnunethello.la \
146   $(top_builddir)/src/util/libgnunetutil.la \
147   $(GN_LIBINTL)
148 gnunet_transport_DEPENDENCIES = \
149   libgnunettransport.la                         
150
151 gnunet_service_transport_SOURCES = \
152  gnunet-service-transport.c gnunet-service-transport.h \
153  gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
154  gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
155  gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
156  gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
157  gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
158  gnunet-service-transport_validation.h gnunet-service-transport_validation.c 
159 gnunet_service_transport_LDADD = \
160   $(top_builddir)/src/ats/libgnunetats.la \
161   $(top_builddir)/src/hello/libgnunethello.la \
162   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
163   $(top_builddir)/src/statistics/libgnunetstatistics.la \
164   $(top_builddir)/src/util/libgnunetutil.la \
165   $(GN_GLPK) \
166   $(GN_LIBINTL)
167
168 plugin_LTLIBRARIES = \
169   libgnunet_plugin_transport_tcp.la \
170   libgnunet_plugin_transport_udp.la \
171   $(UNIX_PLUGIN_LA) \
172   $(HTTP_CLIENT_PLUGIN_LA) \
173   $(HTTPS_CLIENT_PLUGIN_LA) \
174   $(HTTP_SERVER_PLUGIN_LA) \
175   $(HTTPS_SERVER_PLUGIN_LA) \
176   $(WLAN_PLUGIN_LA) \
177   libgnunet_plugin_transport_template.la
178
179 libgnunet_plugin_transport_tcp_la_SOURCES = \
180   plugin_transport_tcp.c
181 libgnunet_plugin_transport_tcp_la_LIBADD = \
182   $(top_builddir)/src/hello/libgnunethello.la \
183   $(top_builddir)/src/statistics/libgnunetstatistics.la \
184   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
185   $(top_builddir)/src/nat/libgnunetnat.la \
186   $(top_builddir)/src/util/libgnunetutil.la \
187   $(LTLIBINTL)
188 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
189  $(GN_PLUGIN_LDFLAGS)
190
191 libgnunet_plugin_transport_template_la_SOURCES = \
192   plugin_transport_template.c
193 libgnunet_plugin_transport_template_la_LIBADD = \
194   $(top_builddir)/src/util/libgnunetutil.la \
195   $(LTLIBINTL)
196 libgnunet_plugin_transport_template_la_LDFLAGS = \
197  $(GN_PLUGIN_LDFLAGS)
198
199 libgnunet_plugin_transport_wlan_la_SOURCES = \
200   plugin_transport_wlan.c plugin_transport_wlan.h
201 libgnunet_plugin_transport_wlan_la_LIBADD = \
202   $(top_builddir)/src/hello/libgnunethello.la \
203   $(top_builddir)/src/statistics/libgnunetstatistics.la \
204   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
205   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
206   $(top_builddir)/src/util/libgnunetutil.la 
207 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
208   $(GN_PLUGIN_LDFLAGS)
209
210 libgnunet_plugin_transport_udp_la_SOURCES = \
211   plugin_transport_udp.c plugin_transport_udp.h \
212   plugin_transport_udp_broadcasting.c
213 libgnunet_plugin_transport_udp_la_LIBADD = \
214   $(top_builddir)/src/hello/libgnunethello.la \
215   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
216   $(top_builddir)/src/statistics/libgnunetstatistics.la \
217   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
218   $(top_builddir)/src/nat/libgnunetnat.la \
219   $(top_builddir)/src/util/libgnunetutil.la \
220   $(LTLIBINTL)
221 libgnunet_plugin_transport_udp_la_LDFLAGS = \
222  $(GN_PLUGIN_LDFLAGS)
223
224 libgnunet_plugin_transport_unix_la_SOURCES = \
225   plugin_transport_unix.c
226 libgnunet_plugin_transport_unix_la_LIBADD = \
227   $(top_builddir)/src/hello/libgnunethello.la \
228   $(top_builddir)/src/statistics/libgnunetstatistics.la \
229   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
230   $(top_builddir)/src/util/libgnunetutil.la \
231   $(LTLIBINTL)
232 libgnunet_plugin_transport_unix_la_LDFLAGS = \
233  $(GN_PLUGIN_LDFLAGS)
234  
235  
236 libgnunet_plugin_transport_http_client_la_SOURCES = \
237   plugin_transport_http_client.c plugin_transport_http_common.c
238 libgnunet_plugin_transport_http_client_la_LIBADD = \
239   $(top_builddir)/src/hello/libgnunethello.la \
240   $(top_builddir)/src/statistics/libgnunetstatistics.la \
241   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
242   @LIBCURL@ \
243   $(top_builddir)/src/nat/libgnunetnat.la \
244   $(top_builddir)/src/util/libgnunetutil.la 
245 libgnunet_plugin_transport_http_client_laLDFLAGS = \
246  $(GN_PLUGIN_LDFLAGS)
247 libgnunet_plugin_transport_http_client_la_CFLAGS = \
248  $(CFLAGS) 
249 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
250  @LIBCURL_CPPFLAGS@
251  
252  
253 libgnunet_plugin_transport_http_server_la_SOURCES = \
254   plugin_transport_http_server.c plugin_transport_http_common.c
255 libgnunet_plugin_transport_http_server_la_LIBADD = \
256   $(top_builddir)/src/hello/libgnunethello.la \
257   $(top_builddir)/src/statistics/libgnunetstatistics.la \
258   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
259   $(top_builddir)/src/nat/libgnunetnat.la \
260   $(top_builddir)/src/util/libgnunetutil.la 
261 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
262  $(GN_LIBMHD) \
263  $(GN_PLUGIN_LDFLAGS)
264 libgnunet_plugin_transport_http_server_la_CFLAGS = \
265  $(CFLAGS) 
266
267 libgnunet_plugin_transport_https_client_la_SOURCES = \
268   plugin_transport_http_client.c plugin_transport_http_common.c
269 libgnunet_plugin_transport_https_client_la_LIBADD = \
270   $(top_builddir)/src/hello/libgnunethello.la \
271   $(top_builddir)/src/statistics/libgnunetstatistics.la \
272   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
273   @LIBCURL@ \
274   $(top_builddir)/src/nat/libgnunetnat.la \
275   $(top_builddir)/src/util/libgnunetutil.la 
276 libgnunet_plugin_transport_https_client_laLDFLAGS = \
277  $(GN_PLUGIN_LDFLAGS)
278 libgnunet_plugin_transport_https_client_la_CFLAGS = \
279  $(CFLAGS) -DBUILD_HTTPS 
280 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
281  @LIBCURL_CPPFLAGS@
282  
283  
284 libgnunet_plugin_transport_https_server_la_SOURCES = \
285   plugin_transport_http_server.c plugin_transport_http_common.c
286 libgnunet_plugin_transport_https_server_la_LIBADD = \
287   $(top_builddir)/src/hello/libgnunethello.la \
288   $(top_builddir)/src/statistics/libgnunetstatistics.la \
289   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
290   $(top_builddir)/src/nat/libgnunetnat.la \
291   $(top_builddir)/src/util/libgnunetutil.la 
292 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
293  $(GN_LIBMHD) \
294  $(GN_PLUGIN_LDFLAGS)
295 libgnunet_plugin_transport_https_server_la_CFLAGS = \
296  $(CFLAGS) -DBUILD_HTTPS 
297
298 check_PROGRAMS = \
299  test_transport_testing_startstop \
300  test_transport_testing_restart \
301  test_transport_testing \
302  test_transport_startonly \
303  test_plugin_tcp \
304  test_plugin_udp \
305  $(UNIX_TEST) \
306  $(WLAN_PLUGIN_TEST) \
307  $(HTTP_SERVER_PLUGIN_TEST) \
308  $(HTTPS_SERVER_PLUGIN_TEST) \
309  test_transport_api_blacklisting \
310  test_transport_api_disconnect_tcp \
311  test_transport_api_bidirectional_connect \
312  test_transport_api_tcp \
313  test_transport_api_restart_1peer \
314  test_transport_api_restart_2peers \
315  test_transport_api_timeout_tcp \
316  test_transport_api_limited_sockets_tcp \
317  test_transport_api_tcp_nat \
318  test_transport_api_udp \
319  test_transport_api_timeout_udp \
320  $(UNIX_PLUGIN_TEST) \
321  $(UNIX_PLUGIN_TIMEOUT_TEST) \
322  test_transport_api_udp_nat \
323  $(HTTP_API_TEST) \
324  $(HTTP_NAT_API_TEST) \
325  $(HTTP_API_TIMEOUT_TEST) \
326  $(HTTPS_API_TEST) \
327  $(HTTPS_NAT_API_TEST) \
328  $(HTTPS_API_TIMEOUT_TEST) \
329  $(WLAN_API_TEST) \
330  test_transport_api_multi \
331  test_transport_api_reliability_tcp \
332  test_transport_api_reliability_tcp_nat \
333  test_transport_api_unreliability_udp \
334  test_transport_api_unreliability_constant_udp \
335  $(UNIX_REL_TEST) \
336  $(HTTP_REL_TEST) \
337  $(HTTP_NAT_REL_TEST) \
338  $(HTTPS_REL_TEST) \
339  $(HTTPS_NAT_REL_TEST) \
340  $(WLAN_REL_TEST) \
341  $(WLAN_UREL_TEST) \
342  test_quota_compliance_tcp \
343  test_quota_compliance_tcp_asymmetric \
344  test_quota_compliance_udp \
345  $(UNIX_QUOTA_TEST) \
346  $(HTTP_QUOTA_TEST) \
347  $(HTTPS_QUOTA_TEST) \
348  $(WLAN_QUOTA_TEST)
349
350 if ENABLE_TEST_RUN
351 TESTS = \
352  test_transport_testing_startstop \
353  test_transport_testing_restart \
354  test_transport_testing \
355  test_transport_startonly \
356  test_plugin_tcp \
357  test_plugin_udp \
358  $(UNIX_TEST) \
359  $(WLAN_PLUGIN_TEST) \
360  test_transport_api_blacklisting \
361  test_transport_api_disconnect_tcp \
362  test_transport_api_bidirectional_connect \
363  test_transport_api_tcp \
364  test_transport_api_restart_1peer \
365  test_transport_api_restart_2peers \
366  test_transport_api_timeout_tcp \
367  test_transport_api_limited_sockets_tcp \
368  test_transport_api_tcp_nat \
369  test_transport_api_udp \
370  test_transport_api_timeout_udp \
371  $(UNIX_PLUGIN_TEST) \
372  $(UNIX_PLUGIN_TIMEOUT_TEST) \
373  test_transport_api_udp_nat \
374  $(HTTP_API_TEST) \
375  $(HTTP_NAT_API_TEST) \
376  $(HTTP_API_TIMEOUT_TEST) \
377  $(HTTPS_API_TEST) \
378  $(HTTPS_NAT_API_TEST) \
379  $(HTTPS_API_TIMEOUT_TEST) \
380  $(WLAN_API_TEST) \
381  test_transport_api_multi \
382  test_transport_api_reliability_tcp \
383  test_transport_api_reliability_tcp_nat \
384  test_transport_api_unreliability_udp \
385  test_transport_api_unreliability_constant_udp \
386  $(UNIX_REL_TEST) \
387  $(HTTP_REL_TEST) \
388  $(HTTP_NAT_REL_TEST) \
389  $(HTTPS_REL_TEST) \
390  $(HTTPS_NAT_REL_TEST) \
391  $(WLAN_REL_TEST) \
392  $(WLAN_UREL_TEST) \
393  test_quota_compliance_tcp \
394  test_quota_compliance_tcp_asymmetric \
395  test_quota_compliance_udp \
396  $(UNIX_QUOTA_TEST) \
397  $(HTTP_QUOTA_TEST) \
398  $(HTTPS_QUOTA_TEST)
399 endif
400
401 test_transport_testing_startstop_SOURCES = \
402  test_transport_testing_startstop.c
403 test_transport_testing_startstop_LDADD = \
404  $(top_builddir)/src/util/libgnunetutil.la \
405  $(top_builddir)/src/transport/libgnunettransport.la \
406  $(top_builddir)/src/hello/libgnunethello.la \
407  $(top_builddir)/src/transport/libgnunettransporttesting.la 
408
409 test_transport_testing_restart_SOURCES = \
410  test_transport_testing_restart.c
411 test_transport_testing_restart_LDADD = \
412  $(top_builddir)/src/util/libgnunetutil.la \
413  $(top_builddir)/src/transport/libgnunettransport.la \
414  $(top_builddir)/src/hello/libgnunethello.la \
415  $(top_builddir)/src/transport/libgnunettransporttesting.la 
416
417 test_transport_testing_SOURCES = \
418  test_transport_testing.c
419 test_transport_testing_LDADD = \
420  $(top_builddir)/src/util/libgnunetutil.la \
421  $(top_builddir)/src/transport/libgnunettransport.la \
422  $(top_builddir)/src/hello/libgnunethello.la \
423  $(top_builddir)/src/transport/libgnunettransporttesting.la 
424
425
426 test_transport_api_blacklisting_SOURCES = \
427  test_transport_api_blacklisting.c
428 test_transport_api_blacklisting_LDADD = \
429  $(top_builddir)/src/transport/libgnunettransport.la \
430  $(top_builddir)/src/hello/libgnunethello.la \
431  $(top_builddir)/src/statistics/libgnunetstatistics.la \
432  $(top_builddir)/src/util/libgnunetutil.la \
433  $(top_builddir)/src/transport/libgnunettransporttesting.la 
434
435 test_transport_api_disconnect_tcp_SOURCES = \
436  test_transport_api_disconnect.c
437 test_transport_api_disconnect_tcp_LDADD = \
438  $(top_builddir)/src/transport/libgnunettransport.la \
439  $(top_builddir)/src/hello/libgnunethello.la \
440  $(top_builddir)/src/statistics/libgnunetstatistics.la \
441  $(top_builddir)/src/util/libgnunetutil.la \
442  $(top_builddir)/src/transport/libgnunettransporttesting.la 
443
444 test_transport_startonly_SOURCES = \
445  test_transport_startonly.c
446 test_transport_startonly_LDADD = \
447  $(top_builddir)/src/transport/libgnunettransport.la \
448  $(top_builddir)/src/hello/libgnunethello.la \
449  $(top_builddir)/src/statistics/libgnunetstatistics.la \
450  $(top_builddir)/src/util/libgnunetutil.la \
451  $(top_builddir)/src/transport/libgnunettransporttesting.la 
452
453 test_plugin_tcp_SOURCES = \
454  test_plugin_transport.c
455 test_plugin_tcp_LDADD = \
456  $(top_builddir)/src/transport/libgnunettransport.la \
457  $(top_builddir)/src/statistics/libgnunetstatistics.la \
458  $(top_builddir)/src/hello/libgnunethello.la \
459  $(top_builddir)/src/util/libgnunetutil.la  \
460  $(top_builddir)/src/transport/libgnunettransporttesting.la
461  
462 test_plugin_udp_SOURCES = \
463  test_plugin_transport.c
464 test_plugin_udp_LDADD = \
465  $(top_builddir)/src/transport/libgnunettransport.la \
466  $(top_builddir)/src/statistics/libgnunetstatistics.la \
467  $(top_builddir)/src/hello/libgnunethello.la \
468  $(top_builddir)/src/util/libgnunetutil.la  \
469  $(top_builddir)/src/transport/libgnunettransporttesting.la
470
471 test_plugin_unix_SOURCES = \
472  test_plugin_transport.c
473 test_plugin_unix_LDADD = \
474  $(top_builddir)/src/transport/libgnunettransport.la \
475  $(top_builddir)/src/statistics/libgnunetstatistics.la \
476  $(top_builddir)/src/hello/libgnunethello.la \
477  $(top_builddir)/src/util/libgnunetutil.la  \
478  $(top_builddir)/src/transport/libgnunettransporttesting.la
479
480 test_plugin_wlan_SOURCES = \
481  test_plugin_transport.c
482 test_plugin_wlan_LDADD = \
483  $(top_builddir)/src/transport/libgnunettransport.la \
484  $(top_builddir)/src/statistics/libgnunetstatistics.la \
485  $(top_builddir)/src/hello/libgnunethello.la \
486  $(top_builddir)/src/util/libgnunetutil.la  \
487  $(top_builddir)/src/transport/libgnunettransporttesting.la 
488
489 test_plugin_http_server_SOURCES = \
490  test_plugin_transport.c
491 test_plugin_http_server_LDADD = \
492  $(top_builddir)/src/transport/libgnunettransport.la \
493  $(top_builddir)/src/statistics/libgnunetstatistics.la \
494  $(top_builddir)/src/hello/libgnunethello.la \
495  $(top_builddir)/src/util/libgnunetutil.la  \
496  $(top_builddir)/src/transport/libgnunettransporttesting.la 
497  
498 test_plugin_https_server_SOURCES = \
499  test_plugin_transport.c
500 test_plugin_https_server_LDADD = \
501  $(top_builddir)/src/transport/libgnunettransport.la \
502  $(top_builddir)/src/statistics/libgnunetstatistics.la \
503  $(top_builddir)/src/hello/libgnunethello.la \
504  $(top_builddir)/src/util/libgnunetutil.la  \
505  $(top_builddir)/src/transport/libgnunettransporttesting.la 
506
507 test_transport_api_tcp_SOURCES = \
508  test_transport_api.c
509 test_transport_api_tcp_LDADD = \
510  $(top_builddir)/src/transport/libgnunettransport.la \
511  $(top_builddir)/src/hello/libgnunethello.la \
512  $(top_builddir)/src/util/libgnunetutil.la  \
513  $(top_builddir)/src/transport/libgnunettransporttesting.la
514
515 test_transport_api_bidirectional_connect_SOURCES = \
516  test_transport_api_bidirectional_connect.c
517 test_transport_api_bidirectional_connect_LDADD = \
518  $(top_builddir)/src/transport/libgnunettransport.la \
519  $(top_builddir)/src/hello/libgnunethello.la \
520  $(top_builddir)/src/util/libgnunetutil.la  \
521  $(top_builddir)/src/transport/libgnunettransporttesting.la
522
523 test_transport_api_restart_1peer_SOURCES = \
524  test_transport_api_restart_1peer.c
525 test_transport_api_restart_1peer_LDADD = \
526  $(top_builddir)/src/transport/libgnunettransport.la \
527  $(top_builddir)/src/hello/libgnunethello.la \
528  $(top_builddir)/src/statistics/libgnunetstatistics.la \
529  $(top_builddir)/src/util/libgnunetutil.la \
530  $(top_builddir)/src/transport/libgnunettransporttesting.la 
531
532 test_transport_api_restart_2peers_SOURCES = \
533  test_transport_api_restart_2peers.c
534 test_transport_api_restart_2peers_LDADD = \
535  $(top_builddir)/src/transport/libgnunettransport.la \
536  $(top_builddir)/src/hello/libgnunethello.la \
537  $(top_builddir)/src/statistics/libgnunetstatistics.la \
538  $(top_builddir)/src/util/libgnunetutil.la \
539  $(top_builddir)/src/transport/libgnunettransporttesting.la 
540
541 test_transport_api_limited_sockets_tcp_SOURCES = \
542  test_transport_api_limited_sockets.c
543 test_transport_api_limited_sockets_tcp_LDADD = \
544  $(top_builddir)/src/transport/libgnunettransport.la \
545  $(top_builddir)/src/hello/libgnunethello.la \
546  $(top_builddir)/src/util/libgnunetutil.la  \
547  $(top_builddir)/src/transport/libgnunettransporttesting.la
548
549 test_transport_api_tcp_nat_SOURCES = \
550  test_transport_api.c
551 test_transport_api_tcp_nat_LDADD = \
552  $(top_builddir)/src/transport/libgnunettransport.la \
553  $(top_builddir)/src/hello/libgnunethello.la \
554  $(top_builddir)/src/util/libgnunetutil.la \
555  $(top_builddir)/src/transport/libgnunettransporttesting.la 
556
557 test_transport_api_reliability_tcp_SOURCES = \
558  test_transport_api_reliability.c
559 test_transport_api_reliability_tcp_LDADD = \
560  $(top_builddir)/src/transport/libgnunettransport.la \
561  $(top_builddir)/src/hello/libgnunethello.la \
562  $(top_builddir)/src/util/libgnunetutil.la \
563  $(top_builddir)/src/transport/libgnunettransporttesting.la 
564
565 test_transport_api_timeout_tcp_SOURCES = \
566  test_transport_api_timeout.c
567 test_transport_api_timeout_tcp_LDADD = \
568  $(top_builddir)/src/transport/libgnunettransport.la \
569  $(top_builddir)/src/hello/libgnunethello.la \
570  $(top_builddir)/src/util/libgnunetutil.la \
571  $(top_builddir)/src/transport/libgnunettransporttesting.la 
572
573 test_transport_api_timeout_unix_SOURCES = \
574  test_transport_api_timeout.c
575 test_transport_api_timeout_unix_LDADD = \
576  $(top_builddir)/src/transport/libgnunettransport.la \
577  $(top_builddir)/src/hello/libgnunethello.la \
578  $(top_builddir)/src/util/libgnunetutil.la \
579  $(top_builddir)/src/transport/libgnunettransporttesting.la 
580
581 test_transport_api_reliability_tcp_nat_SOURCES = \
582  test_transport_api_reliability.c
583 test_transport_api_reliability_tcp_nat_LDADD = \
584  $(top_builddir)/src/transport/libgnunettransport.la \
585  $(top_builddir)/src/hello/libgnunethello.la \
586  $(top_builddir)/src/util/libgnunetutil.la \
587  $(top_builddir)/src/transport/libgnunettransporttesting.la 
588
589 test_transport_api_reliability_wlan_SOURCES = \
590  test_transport_api_reliability.c
591 test_transport_api_reliability_wlan_LDADD = \
592  $(top_builddir)/src/transport/libgnunettransport.la \
593  $(top_builddir)/src/hello/libgnunethello.la \
594  $(top_builddir)/src/util/libgnunetutil.la \
595  $(top_builddir)/src/transport/libgnunettransporttesting.la 
596
597 test_transport_api_unreliability_wlan_SOURCES = \
598  test_transport_api_unreliability.c
599 test_transport_api_unreliability_wlan_LDADD = \
600  $(top_builddir)/src/transport/libgnunettransport.la \
601  $(top_builddir)/src/hello/libgnunethello.la \
602  $(top_builddir)/src/util/libgnunetutil.la \
603  $(top_builddir)/src/transport/libgnunettransporttesting.la 
604
605 test_transport_api_udp_SOURCES = \
606  test_transport_api.c
607 test_transport_api_udp_LDADD = \
608  $(top_builddir)/src/transport/libgnunettransport.la \
609  $(top_builddir)/src/hello/libgnunethello.la \
610  $(top_builddir)/src/util/libgnunetutil.la  \
611  $(top_builddir)/src/transport/libgnunettransporttesting.la
612
613 test_transport_api_timeout_udp_SOURCES = \
614  test_transport_api_timeout.c
615 test_transport_api_timeout_udp_LDADD = \
616  $(top_builddir)/src/transport/libgnunettransport.la \
617  $(top_builddir)/src/hello/libgnunethello.la \
618  $(top_builddir)/src/util/libgnunetutil.la \
619  $(top_builddir)/src/transport/libgnunettransporttesting.la  
620
621 test_transport_api_udp_nat_SOURCES = \
622  test_transport_api.c
623 test_transport_api_udp_nat_LDADD = \
624  $(top_builddir)/src/transport/libgnunettransport.la \
625  $(top_builddir)/src/hello/libgnunethello.la \
626  $(top_builddir)/src/util/libgnunetutil.la  \
627  $(top_builddir)/src/transport/libgnunettransporttesting.la  
628
629 test_transport_api_unix_SOURCES = \
630  test_transport_api.c
631 test_transport_api_unix_LDADD = \
632  $(top_builddir)/src/transport/libgnunettransport.la \
633  $(top_builddir)/src/hello/libgnunethello.la \
634  $(top_builddir)/src/util/libgnunetutil.la \
635  $(top_builddir)/src/transport/libgnunettransporttesting.la 
636
637 # HTTP/S tests
638 if FALSE
639
640 test_transport_api_timeout_http_SOURCES = \
641  test_transport_api_timeout.c
642 test_transport_api_timeout_http_LDADD = \
643  $(top_builddir)/src/transport/libgnunettransport.la \
644  $(top_builddir)/src/hello/libgnunethello.la \
645  $(top_builddir)/src/util/libgnunetutil.la \
646  $(top_builddir)/src/transport/libgnunettransporttesting.la 
647
648 test_transport_api_timeout_https_SOURCES = \
649  test_transport_api_timeout.c
650 test_transport_api_timeout_https_LDADD = \
651  $(top_builddir)/src/transport/libgnunettransport.la \
652  $(top_builddir)/src/hello/libgnunethello.la \
653  $(top_builddir)/src/util/libgnunetutil.la \
654  $(top_builddir)/src/transport/libgnunettransporttesting.la 
655
656
657 test_transport_api_http_SOURCES = \
658  test_transport_api.c
659 test_transport_api_http_LDADD = \
660  $(top_builddir)/src/transport/libgnunettransport.la \
661  $(top_builddir)/src/hello/libgnunethello.la \
662  $(top_builddir)/src/util/libgnunetutil.la \
663  $(top_builddir)/src/transport/libgnunettransporttesting.la 
664
665 test_transport_api_http_nat_SOURCES = \
666  test_transport_api.c
667 test_transport_api_http_nat_LDADD = \
668  $(top_builddir)/src/transport/libgnunettransport.la \
669  $(top_builddir)/src/hello/libgnunethello.la \
670  $(top_builddir)/src/util/libgnunetutil.la \
671  $(top_builddir)/src/transport/libgnunettransporttesting.la 
672
673 test_transport_api_reliability_http_SOURCES = \
674  test_transport_api_reliability.c
675 test_transport_api_reliability_http_LDADD = \
676  $(top_builddir)/src/transport/libgnunettransport.la \
677  $(top_builddir)/src/hello/libgnunethello.la \
678  $(top_builddir)/src/util/libgnunetutil.la \
679  $(top_builddir)/src/transport/libgnunettransporttesting.la 
680
681 test_transport_api_reliability_http_nat_SOURCES = \
682  test_transport_api_reliability.c
683 test_transport_api_reliability_http_nat_LDADD = \
684  $(top_builddir)/src/transport/libgnunettransport.la \
685  $(top_builddir)/src/hello/libgnunethello.la \
686  $(top_builddir)/src/util/libgnunetutil.la \
687  $(top_builddir)/src/transport/libgnunettransporttesting.la 
688
689 test_transport_api_https_SOURCES = \
690  test_transport_api.c
691 test_transport_api_https_LDADD = \
692  $(top_builddir)/src/transport/libgnunettransport.la \
693  $(top_builddir)/src/hello/libgnunethello.la \
694  $(top_builddir)/src/util/libgnunetutil.la  \
695  $(top_builddir)/src/transport/libgnunettransporttesting.la 
696
697 test_transport_api_https_nat_SOURCES = \
698  test_transport_api.c
699 test_transport_api_https_nat_LDADD = \
700  $(top_builddir)/src/transport/libgnunettransport.la \
701  $(top_builddir)/src/hello/libgnunethello.la \
702  $(top_builddir)/src/util/libgnunetutil.la \
703  $(top_builddir)/src/transport/libgnunettransporttesting.la 
704
705 test_transport_api_reliability_https_SOURCES = \
706  test_transport_api_reliability.c
707 test_transport_api_reliability_https_LDADD = \
708  $(top_builddir)/src/transport/libgnunettransport.la \
709  $(top_builddir)/src/hello/libgnunethello.la \
710  $(top_builddir)/src/util/libgnunetutil.la \
711  $(top_builddir)/src/transport/libgnunettransporttesting.la 
712
713 test_transport_api_reliability_https_nat_SOURCES = \
714  test_transport_api_reliability.c
715 test_transport_api_reliability_https_nat_LDADD = \
716  $(top_builddir)/src/transport/libgnunettransport.la \
717  $(top_builddir)/src/hello/libgnunethello.la \
718  $(top_builddir)/src/util/libgnunetutil.la \
719  $(top_builddir)/src/transport/libgnunettransporttesting.la 
720
721 test_quota_compliance_http_SOURCES = \
722  test_quota_compliance.c
723 test_quota_compliance_http_LDADD = \
724  $(top_builddir)/src/transport/libgnunettransport.la \
725  $(top_builddir)/src/hello/libgnunethello.la \
726  $(top_builddir)/src/util/libgnunetutil.la \
727  $(top_builddir)/src/transport/libgnunettransporttesting.la 
728
729 test_quota_compliance_http_asymmetric_SOURCES = \
730  test_quota_compliance.c
731 test_quota_compliance_http_asymmetric_LDADD = \
732  $(top_builddir)/src/transport/libgnunettransport.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_quota_compliance_https_SOURCES = \
738  test_quota_compliance.c
739 test_quota_compliance_https_LDADD = \
740  $(top_builddir)/src/transport/libgnunettransport.la \
741  $(top_builddir)/src/hello/libgnunethello.la \
742  $(top_builddir)/src/util/libgnunetutil.la \
743  $(top_builddir)/src/transport/libgnunettransporttesting.la
744
745 test_quota_compliance_https_asymmetric_SOURCES = \
746  test_quota_compliance.c
747 test_quota_compliance_https_asymmetric_LDADD = \
748  $(top_builddir)/src/transport/libgnunettransport.la \
749  $(top_builddir)/src/hello/libgnunethello.la \
750  $(top_builddir)/src/util/libgnunetutil.la \
751  $(top_builddir)/src/transport/libgnunettransporttesting.la
752
753
754 endif
755
756 test_transport_api_unreliability_unix_SOURCES = \
757  test_transport_api_unreliability.c
758 test_transport_api_unreliability_unix_LDADD = \
759  $(top_builddir)/src/transport/libgnunettransport.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_unreliability_udp_SOURCES = \
765  test_transport_api_unreliability.c
766 test_transport_api_unreliability_udp_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_unreliability_constant_udp_SOURCES = \
773  test_transport_api_unreliability_constant.c
774 test_transport_api_unreliability_constant_udp_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 if LINUX
781 test_transport_api_wlan_SOURCES = \
782  test_transport_api.c
783 test_transport_api_wlan_LDADD = \
784  $(top_builddir)/src/transport/libgnunettransport.la \
785  $(top_builddir)/src/hello/libgnunethello.la \
786  $(top_builddir)/src/util/libgnunetutil.la \
787  $(top_builddir)/src/transport/libgnunettransporttesting.la  
788 endif
789
790 test_quota_compliance_tcp_SOURCES = \
791  test_quota_compliance.c
792 test_quota_compliance_tcp_LDADD = \
793  $(top_builddir)/src/transport/libgnunettransport.la \
794  $(top_builddir)/src/hello/libgnunethello.la \
795  $(top_builddir)/src/util/libgnunetutil.la \
796  $(top_builddir)/src/transport/libgnunettransporttesting.la 
797
798 test_quota_compliance_tcp_asymmetric_SOURCES = \
799  test_quota_compliance.c
800 test_quota_compliance_tcp_asymmetric_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_quota_compliance_udp_SOURCES = \
807  test_quota_compliance.c
808 test_quota_compliance_udp_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_quota_compliance_unix_SOURCES = \
815  test_quota_compliance.c
816 test_quota_compliance_unix_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_quota_compliance_unix_asymmetric_SOURCES = \
823  test_quota_compliance.c
824 test_quota_compliance_unix_asymmetric_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_quota_compliance_wlan_SOURCES = \
831  test_quota_compliance.c
832 test_quota_compliance_wlan_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_quota_compliance_wlan_asymmetric_SOURCES = \
839  test_quota_compliance.c
840 test_quota_compliance_wlan_asymmetric_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_multi_SOURCES = \
847  test_transport_api.c
848 test_transport_api_multi_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
855 EXTRA_DIST = \
856 gnunet-transport-certificate-creation \
857 template_cfg_peer1.conf\
858 template_cfg_peer2.conf\
859 test_plugin_transport_data.conf\
860 test_plugin_transport_data_udp.conf\
861 test_quota_compliance_data.conf\
862 test_quota_compliance_http_peer1.conf\
863 test_quota_compliance_http_peer2.conf\
864 test_quota_compliance_https_peer1.conf\
865 test_quota_compliance_https_peer2.conf\
866 test_quota_compliance_tcp_peer1.conf\
867 test_quota_compliance_tcp_peer2.conf\
868 test_quota_compliance_udp_peer1.conf\
869 test_quota_compliance_udp_peer2.conf\
870 test_quota_compliance_unix_peer1.conf\
871 test_quota_compliance_unix_peer2.conf\
872 test_quota_compliance_http_asymmetric_peer1.conf\
873 test_quota_compliance_http_asymmetric_peer2.conf\
874 test_quota_compliance_https_asymmetric_peer1.conf\
875 test_quota_compliance_https_asymmetric_peer2.conf\
876 test_quota_compliance_tcp_asymmetric_peer1.conf\
877 test_quota_compliance_tcp_asymmetric_peer2.conf\
878 test_quota_compliance_unix_asymmetric_peer1.conf\
879 test_quota_compliance_unix_asymmetric_peer2.conf\
880 test_transport_api_data.conf\
881 test_transport_api_http_peer1.conf\
882 test_transport_api_http_peer2.conf\
883 test_transport_api_https_peer1.conf\
884 test_transport_api_https_peer2.conf\
885 test_transport_api_limited_sockets_tcp_peer1.conf\
886 test_transport_api_limited_sockets_tcp_peer2.conf\
887 test_transport_api_timeout_tcp_peer1.conf\
888 test_transport_api_timeout_tcp_peer2.conf\
889 test_transport_api_multi_peer1.conf\
890 test_transport_api_multi_peer2.conf\
891 test_transport_api_reliability_http_peer1.conf\
892 test_transport_api_reliability_http_peer2.conf\
893 test_transport_api_reliability_https_peer1.conf\
894 test_transport_api_reliability_https_peer2.conf\
895 test_transport_api_reliability_tcp_nat_peer1.conf\
896 test_transport_api_reliability_tcp_nat_peer2.conf\
897 test_transport_api_reliability_tcp_peer1.conf\
898 test_transport_api_reliability_tcp_peer2.conf\
899 test_transport_api_reliability_wlan_peer1.conf\
900 test_transport_api_reliability_wlan_peer2.conf\
901 test_transport_api_bidirectional_connect_peer1.conf\
902 test_transport_api_bidirectional_connect_peer2.conf\
903 test_transport_api_tcp_nat_peer1.conf\
904 test_transport_api_tcp_nat_peer2.conf\
905 test_transport_api_tcp_peer1.conf\
906 test_transport_api_tcp_peer2.conf\
907 test_transport_api_udp_nat_peer1.conf\
908 test_transport_api_udp_nat_peer2.conf\
909 test_transport_api_udp_peer1.conf\
910 test_transport_api_udp_peer2.conf\
911 test_transport_api_timeout_udp_peer1.conf\
912 test_transport_api_timeout_udp_peer2.conf\
913 test_transport_api_unix_peer1.conf\
914 test_transport_api_unix_peer2.conf\
915 test_transport_api_timeout_unix_peer1.conf\
916 test_transport_api_timeout_unix_peer2.conf\
917 test_transport_api_unreliability_udp_peer1.conf\
918 test_transport_api_unreliability_udp_peer2.conf\
919 test_transport_api_unreliability_unix_peer1.conf\
920 test_transport_api_unreliability_unix_peer2.conf\
921 test_transport_api_unreliability_wlan_peer1.conf\
922 test_transport_api_unreliability_wlan_peer2.conf\
923 test_transport_api_wlan_peer1.conf\
924 test_transport_api_wlan_peer2.conf\
925 test_transport_defaults.conf\
926 test_transport_startonly.conf\
927 test_transport_api_disconnect_tcp_peer1.conf\
928 test_transport_api_disconnect_tcp_peer2.conf\
929 test_transport_api_http_nat_peer1.conf\
930 test_transport_api_http_nat_peer2.conf\
931 test_transport_api_https_nat_peer1.conf\
932 test_transport_api_https_nat_peer2.conf\
933 test_transport_api_reliability_http_nat_peer1.conf\
934 test_transport_api_reliability_http_nat_peer2.conf\
935 test_transport_api_reliability_https_nat_peer1.conf\
936 test_transport_api_reliability_https_nat_peer2.conf\
937 test_transport_api_timeout_http_peer1.conf\
938 test_transport_api_timeout_http_peer2.conf\
939 test_transport_api_timeout_https_peer1.conf\
940 test_transport_api_timeout_https_peer2.conf\
941 test_transport_api_unreliability_constant_udp_peer1.conf\
942 test_transport_api_unreliability_constant_udp_peer2.conf\
943 test_transport_api_http_reverse_proxy.conf