diff options
Diffstat (limited to 'src/transport/Makefile.am')
-rw-r--r-- | src/transport/Makefile.am | 84 |
1 files changed, 69 insertions, 15 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 0498408f2..c3b90cc9d 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am | |||
@@ -43,6 +43,10 @@ endif | |||
43 | endif | 43 | endif |
44 | 44 | ||
45 | if LINUX | 45 | if LINUX |
46 | UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la | ||
47 | UNIX_PLUGIN_TEST = test_transport_api_unix | ||
48 | UNIX_REL_TEST = test_transport_api_unreliability_unix | ||
49 | UNIX_QUOTA_TEST = test_quota_compliance_unix | ||
46 | NATBIN = gnunet-nat-server gnunet-nat-client | 50 | NATBIN = gnunet-nat-server gnunet-nat-client |
47 | install-exec-hook: | 51 | install-exec-hook: |
48 | chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true | 52 | chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true |
@@ -114,6 +118,7 @@ gnunet_service_transport_DEPENDENCIES = \ | |||
114 | plugin_LTLIBRARIES = \ | 118 | plugin_LTLIBRARIES = \ |
115 | libgnunet_plugin_transport_tcp.la \ | 119 | libgnunet_plugin_transport_tcp.la \ |
116 | libgnunet_plugin_transport_udp.la \ | 120 | libgnunet_plugin_transport_udp.la \ |
121 | $(UNIX_PLUGIN_LA) \ | ||
117 | $(HTTP_PLUGIN_LA) \ | 122 | $(HTTP_PLUGIN_LA) \ |
118 | $(HTTPS_PLUGIN_LA) \ | 123 | $(HTTPS_PLUGIN_LA) \ |
119 | $(WLAN_PLUGIN_LA) \ | 124 | $(WLAN_PLUGIN_LA) \ |
@@ -157,16 +162,16 @@ libgnunet_plugin_transport_udp_la_LIBADD = \ | |||
157 | $(top_builddir)/src/util/libgnunetutil.la | 162 | $(top_builddir)/src/util/libgnunetutil.la |
158 | libgnunet_plugin_transport_udp_la_LDFLAGS = \ | 163 | libgnunet_plugin_transport_udp_la_LDFLAGS = \ |
159 | $(GN_PLUGIN_LDFLAGS) | 164 | $(GN_PLUGIN_LDFLAGS) |
160 | 165 | ||
161 | #libgnunet_plugin_transport_udp_nat_la_SOURCES = \ | 166 | libgnunet_plugin_transport_unix_la_SOURCES = \ |
162 | # plugin_transport_udp_nat.c | 167 | plugin_transport_unix.c |
163 | #libgnunet_plugin_transport_udp_nat_la_LIBADD = \ | 168 | libgnunet_plugin_transport_unix_la_LIBADD = \ |
164 | # $(top_builddir)/src/hello/libgnunethello.la \ | 169 | $(top_builddir)/src/hello/libgnunethello.la \ |
165 | # $(top_builddir)/src/statistics/libgnunetstatistics.la \ | 170 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ |
166 | # $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ | 171 | $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ |
167 | # $(top_builddir)/src/util/libgnunetutil.la | 172 | $(top_builddir)/src/util/libgnunetutil.la |
168 | #libgnunet_plugin_transport_udp_nat_la_LDFLAGS = \ | 173 | libgnunet_plugin_transport_unix_la_LDFLAGS = \ |
169 | # $(GN_PLUGIN_LDFLAGS) | 174 | $(GN_PLUGIN_LDFLAGS) |
170 | 175 | ||
171 | libgnunet_plugin_transport_http_la_SOURCES = \ | 176 | libgnunet_plugin_transport_http_la_SOURCES = \ |
172 | plugin_transport_http.c | 177 | plugin_transport_http.c |
@@ -199,6 +204,7 @@ check_PROGRAMS = \ | |||
199 | test_transport_api_tcp \ | 204 | test_transport_api_tcp \ |
200 | test_transport_api_tcp_nat \ | 205 | test_transport_api_tcp_nat \ |
201 | test_transport_api_udp \ | 206 | test_transport_api_udp \ |
207 | $(UNIX_PLUGIN_TEST) \ | ||
202 | test_transport_api_udp_nat \ | 208 | test_transport_api_udp_nat \ |
203 | $(HTTP_PLUGIN_TEST) \ | 209 | $(HTTP_PLUGIN_TEST) \ |
204 | $(HTTP_API_TEST) \ | 210 | $(HTTP_API_TEST) \ |
@@ -208,13 +214,16 @@ check_PROGRAMS = \ | |||
208 | test_transport_api_multi \ | 214 | test_transport_api_multi \ |
209 | test_transport_api_reliability_tcp \ | 215 | test_transport_api_reliability_tcp \ |
210 | test_transport_api_reliability_tcp_nat \ | 216 | test_transport_api_reliability_tcp_nat \ |
211 | test_transport_api_reliability_udp \ | 217 | test_transport_api_unreliability_udp \ |
218 | test_transport_api_unreliability_unix \ | ||
219 | $(UNIX_REL_TEST) \ | ||
212 | $(HTTP_REL_TEST) \ | 220 | $(HTTP_REL_TEST) \ |
213 | $(HTTPS_REL_TEST) \ | 221 | $(HTTPS_REL_TEST) \ |
214 | test_quota_compliance_tcp \ | 222 | test_quota_compliance_tcp \ |
215 | test_quota_compliance_tcp_asymmetric_recv_constant \ | 223 | test_quota_compliance_tcp_asymmetric_recv_constant \ |
216 | test_quota_compliance_udp \ | 224 | test_quota_compliance_udp \ |
217 | test_quota_compliance_udp_asymmetric_recv_constant \ | 225 | test_quota_compliance_udp_asymmetric_recv_constant \ |
226 | $(UNIX_QUOTA_TEST) \ | ||
218 | $(HTTP_QUOTA_TEST) \ | 227 | $(HTTP_QUOTA_TEST) \ |
219 | $(HTTPS_QUOTA_TEST) | 228 | $(HTTPS_QUOTA_TEST) |
220 | # TODO: add tests for nat, etc. | 229 | # TODO: add tests for nat, etc. |
@@ -224,6 +233,7 @@ TESTS = \ | |||
224 | test_transport_api_tcp \ | 233 | test_transport_api_tcp \ |
225 | test_transport_api_tcp_nat \ | 234 | test_transport_api_tcp_nat \ |
226 | test_transport_api_udp \ | 235 | test_transport_api_udp \ |
236 | $(UNIX_PLUGIN_TEST) \ | ||
227 | test_transport_api_udp_nat \ | 237 | test_transport_api_udp_nat \ |
228 | $(HTTP_PLUGIN_TEST) \ | 238 | $(HTTP_PLUGIN_TEST) \ |
229 | $(HTTP_API_TEST) \ | 239 | $(HTTP_API_TEST) \ |
@@ -233,12 +243,15 @@ TESTS = \ | |||
233 | test_transport_api_multi \ | 243 | test_transport_api_multi \ |
234 | test_transport_api_reliability_tcp \ | 244 | test_transport_api_reliability_tcp \ |
235 | test_transport_api_reliability_tcp_nat \ | 245 | test_transport_api_reliability_tcp_nat \ |
246 | test_transport_api_unreliability_udp \ | ||
247 | test_transport_api_unreliability_unix \ | ||
236 | $(HTTP_REL_TEST) \ | 248 | $(HTTP_REL_TEST) \ |
237 | $(HTTPS_REL_TEST) \ | 249 | $(HTTPS_REL_TEST) \ |
238 | test_quota_compliance_tcp \ | 250 | test_quota_compliance_tcp \ |
239 | test_quota_compliance_tcp_asymmetric_recv_constant \ | 251 | test_quota_compliance_tcp_asymmetric_recv_constant \ |
240 | test_quota_compliance_udp \ | 252 | test_quota_compliance_udp \ |
241 | test_quota_compliance_udp_asymmetric_recv_constant \ | 253 | test_quota_compliance_udp_asymmetric_recv_constant \ |
254 | $(UNIX_QUOTA_TEST) \ | ||
242 | $(HTTP_QUOTA_TEST) \ | 255 | $(HTTP_QUOTA_TEST) \ |
243 | $(HTTPS_QUOTA_TEST) | 256 | $(HTTPS_QUOTA_TEST) |
244 | endif | 257 | endif |
@@ -271,19 +284,31 @@ test_transport_api_reliability_udp_SOURCES = \ | |||
271 | test_transport_api_reliability.c | 284 | test_transport_api_reliability.c |
272 | test_transport_api_reliability_udp_LDADD = \ | 285 | test_transport_api_reliability_udp_LDADD = \ |
273 | $(top_builddir)/src/transport/libgnunettransport.la \ | 286 | $(top_builddir)/src/transport/libgnunettransport.la \ |
274 | $(top_builddir)/src/util/libgnunetutil.la | 287 | $(top_builddir)/src/util/libgnunetutil.la |
288 | |||
289 | test_transport_api_reliability_unix_SOURCES = \ | ||
290 | test_transport_api_reliability.c | ||
291 | test_transport_api_reliability_unix_LDADD = \ | ||
292 | $(top_builddir)/src/transport/libgnunettransport.la \ | ||
293 | $(top_builddir)/src/util/libgnunetutil.la | ||
275 | 294 | ||
276 | test_transport_api_udp_SOURCES = \ | 295 | test_transport_api_udp_SOURCES = \ |
277 | test_transport_api.c | 296 | test_transport_api.c |
278 | test_transport_api_udp_LDADD = \ | 297 | test_transport_api_udp_LDADD = \ |
279 | $(top_builddir)/src/transport/libgnunettransport.la \ | 298 | $(top_builddir)/src/transport/libgnunettransport.la \ |
280 | $(top_builddir)/src/util/libgnunetutil.la | 299 | $(top_builddir)/src/util/libgnunetutil.la |
281 | 300 | ||
282 | test_transport_api_udp_nat_SOURCES = \ | 301 | test_transport_api_udp_nat_SOURCES = \ |
283 | test_transport_api.c | 302 | test_transport_api.c |
284 | test_transport_api_udp_nat_LDADD = \ | 303 | test_transport_api_udp_nat_LDADD = \ |
285 | $(top_builddir)/src/transport/libgnunettransport.la \ | 304 | $(top_builddir)/src/transport/libgnunettransport.la \ |
286 | $(top_builddir)/src/util/libgnunetutil.la | 305 | $(top_builddir)/src/util/libgnunetutil.la |
306 | |||
307 | test_transport_api_unix_SOURCES = \ | ||
308 | test_transport_api.c | ||
309 | test_transport_api_unix_LDADD = \ | ||
310 | $(top_builddir)/src/transport/libgnunettransport.la \ | ||
311 | $(top_builddir)/src/util/libgnunetutil.la | ||
287 | 312 | ||
288 | test_plugin_transport_http_SOURCES = \ | 313 | test_plugin_transport_http_SOURCES = \ |
289 | test_plugin_transport_http.c | 314 | test_plugin_transport_http.c |
@@ -324,6 +349,18 @@ test_transport_api_reliability_https_SOURCES = \ | |||
324 | test_transport_api_reliability_https_LDADD = \ | 349 | test_transport_api_reliability_https_LDADD = \ |
325 | $(top_builddir)/src/transport/libgnunettransport.la \ | 350 | $(top_builddir)/src/transport/libgnunettransport.la \ |
326 | $(top_builddir)/src/util/libgnunetutil.la | 351 | $(top_builddir)/src/util/libgnunetutil.la |
352 | |||
353 | test_transport_api_unreliability_unix_SOURCES = \ | ||
354 | test_transport_api_unreliability.c | ||
355 | test_transport_api_unreliability_unix_LDADD = \ | ||
356 | $(top_builddir)/src/transport/libgnunettransport.la \ | ||
357 | $(top_builddir)/src/util/libgnunetutil.la | ||
358 | |||
359 | test_transport_api_unreliability_udp_SOURCES = \ | ||
360 | test_transport_api_unreliability.c | ||
361 | test_transport_api_unreliability_udp_LDADD = \ | ||
362 | $(top_builddir)/src/transport/libgnunettransport.la \ | ||
363 | $(top_builddir)/src/util/libgnunetutil.la | ||
327 | 364 | ||
328 | if HAVE_PCAP | 365 | if HAVE_PCAP |
329 | if LINUX | 366 | if LINUX |
@@ -407,6 +444,19 @@ test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \ | |||
407 | # $(top_builddir)/src/transport/libgnunettransport.la \ | 444 | # $(top_builddir)/src/transport/libgnunettransport.la \ |
408 | # $(top_builddir)/src/util/libgnunetutil.la | 445 | # $(top_builddir)/src/util/libgnunetutil.la |
409 | 446 | ||
447 | test_quota_compliance_unix_SOURCES = \ | ||
448 | test_quota_compliance.c | ||
449 | test_quota_compliance_unix_LDADD = \ | ||
450 | $(top_builddir)/src/transport/libgnunettransport.la \ | ||
451 | $(top_builddir)/src/util/libgnunetutil.la | ||
452 | |||
453 | test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \ | ||
454 | test_quota_compliance.c | ||
455 | test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \ | ||
456 | $(top_builddir)/src/transport/libgnunettransport.la \ | ||
457 | $(top_builddir)/src/util/libgnunetutil.la | ||
458 | |||
459 | |||
410 | test_transport_api_multi_SOURCES = \ | 460 | test_transport_api_multi_SOURCES = \ |
411 | test_transport_api.c | 461 | test_transport_api.c |
412 | test_transport_api_multi_LDADD = \ | 462 | test_transport_api_multi_LDADD = \ |
@@ -419,6 +469,8 @@ EXTRA_DIST = \ | |||
419 | test_transport_api_tcp_peer2.conf \ | 469 | test_transport_api_tcp_peer2.conf \ |
420 | test_transport_api_udp_peer1.conf \ | 470 | test_transport_api_udp_peer1.conf \ |
421 | test_transport_api_udp_peer2.conf \ | 471 | test_transport_api_udp_peer2.conf \ |
472 | test_transport_api_unix_peer1.conf \ | ||
473 | test_transport_api_unix_peer2.conf \ | ||
422 | test_transport_api_udp_nat_peer1.conf \ | 474 | test_transport_api_udp_nat_peer1.conf \ |
423 | test_transport_api_udp_nat_peer2.conf \ | 475 | test_transport_api_udp_nat_peer2.conf \ |
424 | test_transport_api_tcp_nat_peer1.conf \ | 476 | test_transport_api_tcp_nat_peer1.conf \ |
@@ -446,4 +498,6 @@ EXTRA_DIST = \ | |||
446 | test_quota_compliance_https_peer1.conf \ | 498 | test_quota_compliance_https_peer1.conf \ |
447 | test_quota_compliance_https_peer2.conf \ | 499 | test_quota_compliance_https_peer2.conf \ |
448 | test_quota_compliance_udp_peer1.conf \ | 500 | test_quota_compliance_udp_peer1.conf \ |
449 | test_quota_compliance_udp_peer2.conf | 501 | test_quota_compliance_udp_peer2.conf \ |
502 | test_quota_compliance_unix_peer1.conf \ | ||
503 | test_quota_compliance_unix_peer2.conf | ||