X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftransport%2FMakefile.am;h=7687f2348703ed8babe5783d1593eaefb0d4a2ca;hb=5a7cef0202631204485cbcb1e36671e4321a936f;hp=02dcc978b84759cf1a4b49f965b4d2060a66cb2f;hpb=1b4ccddc7946888fc0b66c58b1434e1814a43822;p=oweals%2Fgnunet.git diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 02dcc978b..7687f2348 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am @@ -95,9 +95,9 @@ endif if LINUX install-exec-hook: - $(top_srcdir)/src/transport/install-wlan-helper.sh $(libexecdir) $(SUDO_BINARY) || true + $(top_srcdir)/src/transport/install-wlan-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true if HAVE_LIBBLUETOOTH - $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(libexecdir) $(SUDO_BINARY) || true + $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true endif else install-exec-hook: @@ -150,10 +150,15 @@ lib_LTLIBRARIES = \ $(TESTING_LIBS) libgnunettransporttesting_la_SOURCES = \ - transport-testing.c transport-testing.h + transport-testing.c transport-testing.h \ + transport-testing-filenames.c \ + transport-testing-loggers.c \ + transport-testing-main.c \ + transport-testing-send.c libgnunettransporttesting_la_LIBADD = \ libgnunettransport.la \ $(top_builddir)/src/hello/libgnunethello.la \ + $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/testing/libgnunettesting.la \ $(GN_LIBINTL) @@ -161,14 +166,19 @@ libgnunettransporttesting_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) libgnunettransport_la_SOURCES = \ - transport_api.c transport.h \ - transport_api_blacklist.c \ + transport.h \ transport_api_address_to_string.c \ + transport_api_blacklist.c \ + transport_api_core.c \ + transport_api_hello_get.c \ + transport_api_manipulation.c \ transport_api_monitor_peers.c \ transport_api_monitor_plugins.c \ - transport_api_monitor_validation.c + transport_api_offer_hello.c + libgnunettransport_la_LIBADD = \ $(top_builddir)/src/hello/libgnunethello.la \ + $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) libgnunettransport_la_LDFLAGS = \ @@ -181,6 +191,8 @@ libexec_PROGRAMS = \ $(BT_BIN) \ gnunet-service-transport + + bin_PROGRAMS = \ gnunet-transport \ gnunet-transport-certificate-creation @@ -225,8 +237,8 @@ gnunet_transport_profiler_SOURCES = \ gnunet-transport-profiler.c gnunet_transport_profiler_LDADD = \ libgnunettransport.la \ - $(top_builddir)/src/nat/libgnunetnat.la \ $(top_builddir)/src/hello/libgnunethello.la \ + $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) @@ -234,7 +246,6 @@ gnunet_transport_SOURCES = \ gnunet-transport.c gnunet_transport_LDADD = \ libgnunettransport.la \ - $(top_builddir)/src/nat/libgnunetnat.la \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) @@ -242,8 +253,6 @@ gnunet_transport_LDADD = \ gnunet_service_transport_SOURCES = \ gnunet-service-transport.c gnunet-service-transport.h \ gnunet-service-transport_ats.h gnunet-service-transport_ats.c \ - gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \ - gnunet-service-transport_clients.h gnunet-service-transport_clients.c \ gnunet-service-transport_hello.h gnunet-service-transport_hello.c \ gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \ gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \ @@ -259,7 +268,6 @@ gnunet_service_transport_LDADD = \ $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ - $(top_builddir)/src/nat/libgnunetnat.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_GLPK) \ @@ -277,7 +285,11 @@ plugin_LTLIBRARIES = \ $(HTTP_SERVER_PLUGIN_LA) \ $(HTTPS_SERVER_PLUGIN_LA) \ $(WLAN_PLUGIN_LA) \ - $(BT_PLUGIN_LA) \ + $(BT_PLUGIN_LA) + +# Note: real plugins of course need to be added +# to the plugin_LTLIBRARIES above +noinst_LTLIBRARIES = \ libgnunet_plugin_transport_template.la libgnunet_plugin_transport_tcp_la_SOURCES = \ @@ -286,7 +298,7 @@ libgnunet_plugin_transport_tcp_la_LIBADD = \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ - $(top_builddir)/src/nat/libgnunetnat.la \ + $(top_builddir)/src/nat/libgnunetnatnew.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(LTLIBINTL) libgnunet_plugin_transport_tcp_la_LDFLAGS = \ @@ -334,7 +346,7 @@ libgnunet_plugin_transport_udp_la_LIBADD = \ $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ - $(top_builddir)/src/nat/libgnunetnat.la \ + $(top_builddir)/src/nat/libgnunetnatnew.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(LTLIBINTL) libgnunet_plugin_transport_udp_la_LDFLAGS = \ @@ -359,7 +371,6 @@ libgnunet_plugin_transport_http_client_la_LIBADD = \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ $(LIB_GNURL) \ - $(top_builddir)/src/nat/libgnunetnat.la \ $(top_builddir)/src/util/libgnunetutil.la libgnunet_plugin_transport_http_client_la_LDFLAGS = \ $(GN_PLUGIN_LDFLAGS) @@ -375,7 +386,7 @@ libgnunet_plugin_transport_http_server_la_LIBADD = \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ - $(top_builddir)/src/nat/libgnunetnat.la \ + $(top_builddir)/src/nat/libgnunetnatnew.la \ $(top_builddir)/src/util/libgnunetutil.la libgnunet_plugin_transport_http_server_la_LDFLAGS = \ $(GN_LIBMHD) \ @@ -390,7 +401,6 @@ libgnunet_plugin_transport_https_client_la_LIBADD = \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ $(LIB_GNURL) \ - $(top_builddir)/src/nat/libgnunetnat.la \ $(top_builddir)/src/util/libgnunetutil.la libgnunet_plugin_transport_https_client_la_LDFLAGS = \ $(GN_PLUGIN_LDFLAGS) @@ -406,7 +416,7 @@ libgnunet_plugin_transport_https_server_la_LIBADD = \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ - $(top_builddir)/src/nat/libgnunetnat.la \ + $(top_builddir)/src/nat/libgnunetnatnew.la \ $(top_builddir)/src/util/libgnunetutil.la libgnunet_plugin_transport_https_server_la_LDFLAGS = \ $(GN_LIBMHD) \ @@ -417,13 +427,10 @@ libgnunet_plugin_transport_https_server_la_CFLAGS = \ if HAVE_TESTING check_PROGRAMS = \ - test_transport_api_restart_2peers \ test_transport_address_switch_tcp \ test_transport_address_switch_udp \ test_transport_testing_startstop \ test_transport_testing_restart \ - test_transport_testing \ - test_transport_startonly \ test_plugin_tcp \ test_plugin_udp \ $(UNIX_TEST) \ @@ -434,11 +441,11 @@ check_PROGRAMS = \ $(HTTPS_CLIENT_PLUGIN_TEST) \ $(HTTP_SERVER_PLUGIN_TEST) \ $(HTTPS_SERVER_PLUGIN_TEST) \ - test_transport_api_blacklisting \ + test_transport_api_blacklisting_tcp \ test_transport_api_disconnect_tcp \ - test_transport_api_bidirectional_connect \ test_transport_api_tcp \ test_transport_api_restart_1peer \ + test_transport_api_restart_2peers \ test_transport_api_timeout_tcp \ test_transport_api_limited_sockets_tcp \ test_transport_api_tcp_nat \ @@ -461,7 +468,6 @@ check_PROGRAMS = \ $(BT_TIMEOUT_TEST) \ test_transport_api_multi \ test_transport_api_monitor_peers \ - test_transport_api_monitor_validation \ test_transport_blacklisting_no_bl \ test_transport_blacklisting_outbound_bl_full \ test_transport_blacklisting_outbound_bl_plugin \ @@ -488,52 +494,44 @@ check_PROGRAMS = \ $(HTTP_QUOTA_TEST) \ $(HTTPS_QUOTA_TEST) \ $(WLAN_QUOTA_TEST) \ - $(BT_QUOTA_TEST) \ - test_transport_api_slow_ats + $(BT_QUOTA_TEST) +if HAVE_GETOPT_BINARY +check_PROGRAMS += \ +test_transport_api_slow_ats +endif endif if ENABLE_TEST_RUN -AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; +AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; TESTS = \ + test_transport_address_switch_tcp \ + test_transport_address_switch_udp \ + $(HTTP_SWITCH) \ + $(HTTPS_SWITCH) \ test_transport_testing_startstop \ test_transport_testing_restart \ - test_transport_testing \ - test_transport_startonly \ test_plugin_tcp \ test_plugin_udp \ $(UNIX_TEST) \ $(WLAN_PLUGIN_TEST) \ $(BT_PLUGIN_TEST) \ - test_transport_api_blacklisting \ + test_transport_api_blacklisting_tcp \ test_transport_api_disconnect_tcp \ - test_transport_api_bidirectional_connect \ test_transport_api_tcp \ test_transport_api_restart_1peer \ test_transport_api_restart_2peers \ - test_transport_api_timeout_tcp \ test_transport_api_limited_sockets_tcp \ test_transport_api_tcp_nat \ - test_transport_address_switch_tcp \ test_transport_api_udp \ - test_transport_api_timeout_udp \ - test_transport_address_switch_udp \ $(UNIX_PLUGIN_TEST) \ - $(UNIX_PLUGIN_TIMEOUT_TEST) \ $(UNIX_API_ABSTRACT_TEST) \ test_transport_api_udp_nat \ $(HTTP_API_TEST) \ - $(HTTP_API_TIMEOUT_TEST) \ - $(HTTP_SWITCH) \ $(HTTPS_API_TEST) \ - $(HTTPS_API_TIMEOUT_TEST) \ - $(HTTPS_SWITCH) \ $(WLAN_API_TEST) \ - $(WLAN_TIMEOUT_TEST) \ $(BT_API_TEST) \ - $(BT_TIMEOUT_TEST) \ test_transport_api_multi \ test_transport_api_monitor_peers \ - test_transport_api_monitor_validation \ test_transport_blacklisting_no_bl \ test_transport_blacklisting_outbound_bl_full \ test_transport_blacklisting_outbound_bl_plugin \ @@ -559,7 +557,17 @@ TESTS = \ $(UNIX_QUOTA_TEST) \ $(HTTP_QUOTA_TEST) \ $(HTTPS_QUOTA_TEST) \ - test_transport_api_slow_ats + test_transport_api_timeout_tcp \ + test_transport_api_timeout_udp \ + $(UNIX_PLUGIN_TIMEOUT_TEST) \ + $(HTTP_API_TIMEOUT_TEST) \ + $(HTTPS_API_TIMEOUT_TEST) \ + $(WLAN_TIMEOUT_TEST) \ + $(BT_TIMEOUT_TEST) +if HAVE_GETOPT_BINARY +TESTS += \ +test_transport_api_slow_ats +endif endif test_transport_testing_startstop_SOURCES = \ @@ -578,17 +586,9 @@ test_transport_testing_restart_LDADD = \ $(top_builddir)/src/hello/libgnunethello.la \ libgnunettransporttesting.la -test_transport_testing_SOURCES = \ - test_transport_testing.c -test_transport_testing_LDADD = \ - $(top_builddir)/src/util/libgnunetutil.la \ - libgnunettransport.la \ - $(top_builddir)/src/hello/libgnunethello.la \ - libgnunettransporttesting.la - -test_transport_api_blacklisting_SOURCES = \ +test_transport_api_blacklisting_tcp_SOURCES = \ test_transport_api_blacklisting.c -test_transport_api_blacklisting_LDADD = \ +test_transport_api_blacklisting_tcp_LDADD = \ libgnunettransport.la \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ @@ -659,15 +659,6 @@ test_transport_api_disconnect_tcp_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettransporttesting.la -test_transport_startonly_SOURCES = \ - test_transport_startonly.c -test_transport_startonly_LDADD = \ - libgnunettransport.la \ - $(top_builddir)/src/hello/libgnunethello.la \ - $(top_builddir)/src/statistics/libgnunetstatistics.la \ - $(top_builddir)/src/util/libgnunetutil.la \ - libgnunettransporttesting.la - test_plugin_tcp_SOURCES = \ test_plugin_transport.c test_plugin_tcp_LDADD = \ @@ -766,29 +757,23 @@ test_transport_api_tcp_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettransporttesting.la -test_transport_api_bidirectional_connect_SOURCES = \ - test_transport_api_bidirectional_connect.c -test_transport_api_bidirectional_connect_LDADD = \ - libgnunettransport.la \ - $(top_builddir)/src/hello/libgnunethello.la \ - $(top_builddir)/src/util/libgnunetutil.la \ - libgnunettransporttesting.la - test_transport_api_restart_1peer_SOURCES = \ - test_transport_api_restart_1peer.c + test_transport_api_restart_reconnect.c test_transport_api_restart_1peer_LDADD = \ libgnunettransport.la \ $(top_builddir)/src/hello/libgnunethello.la \ + $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettransporttesting.la test_transport_api_restart_2peers_SOURCES = \ - test_transport_api_restart_2peers.c + test_transport_api_restart_reconnect.c test_transport_api_restart_2peers_LDADD = \ libgnunettransport.la \ $(top_builddir)/src/hello/libgnunethello.la \ - $(top_builddir)/src/statistics/libgnunetstatistics.la \ + $(top_builddir)/src/ats/libgnunetats.la \ +$(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettransporttesting.la @@ -1188,7 +1173,6 @@ test_quota_compliance_wlan_asymmetric_LDADD = \ test_quota_compliance_bluetooth_SOURCES = \ test_quota_compliance.c test_quota_compliance_bluetooth_LDADD = \ - $(top_builddir)/src/nat/libgnunetnat.la \ libgnunettransport.la \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/ats/libgnunetats.la \ @@ -1220,14 +1204,6 @@ test_transport_api_monitor_peers_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettransporttesting.la -test_transport_api_monitor_validation_SOURCES = \ - test_transport_api_monitor_validation.c -test_transport_api_monitor_validation_LDADD = \ - libgnunettransport.la \ - $(top_builddir)/src/hello/libgnunethello.la \ - $(top_builddir)/src/util/libgnunetutil.la \ - libgnunettransporttesting.la - test_transport_api_slow_ats_SOURCES = \ test_transport_api.c test_transport_api_slow_ats_LDADD = \ @@ -1273,6 +1249,8 @@ test_quota_compliance_wlan_asymmetric_peer2.conf\ test_quota_compliance_bluetooth_asymmetric_peer1.conf\ test_quota_compliance_bluetooth_asymmetric_peer2.conf\ test_transport_api_data.conf\ +test_transport_api_blacklisting_tcp_peer1.conf \ +test_transport_api_blacklisting_tcp_peer2.conf \ test_transport_api_http_peer1.conf\ test_transport_api_http_peer2.conf\ test_transport_api_https_peer1.conf\ @@ -1283,6 +1261,8 @@ test_transport_api_timeout_tcp_peer1.conf\ test_transport_api_timeout_tcp_peer2.conf\ test_transport_api_multi_peer1.conf\ test_transport_api_multi_peer2.conf\ +test_transport_api_restart_1peer_peer1.conf\ +test_transport_api_restart_1peer_peer2.conf\ test_transport_api_reliability_http_peer1.conf\ test_transport_api_reliability_http_peer2.conf\ test_transport_api_reliability_https_peer1.conf\ @@ -1295,14 +1275,16 @@ test_transport_api_reliability_wlan_peer1.conf\ test_transport_api_reliability_wlan_peer2.conf\ test_transport_api_reliability_bluetooth_peer1.conf\ test_transport_api_reliability_bluetooth_peer2.conf\ -test_transport_api_bidirectional_connect_peer1.conf\ -test_transport_api_bidirectional_connect_peer2.conf\ test_transport_api_manipulation_send_tcp_peer1.conf\ test_transport_api_manipulation_send_tcp_peer2.conf\ test_transport_api_manipulation_recv_tcp_peer1.conf\ test_transport_api_manipulation_recv_tcp_peer2.conf\ test_transport_api_manipulation_cfg_peer1.conf\ test_transport_api_manipulation_cfg_peer2.conf\ +test_transport_api_restart_1peer_peer1.conf\ +test_transport_api_restart_1peer_peer2.conf\ +test_transport_api_restart_2peers_peer1.conf\ +test_transport_api_restart_2peers_peer2.conf\ test_transport_api_tcp_nat_peer1.conf\ test_transport_api_tcp_nat_peer2.conf\ test_transport_api_tcp_peer1.conf\ @@ -1325,20 +1307,18 @@ test_transport_api_timeout_bluetooth_peer1.conf\ test_transport_api_timeout_bluetooth_peer2.conf\ test_transport_api_reliability_udp_peer1.conf\ test_transport_api_reliability_udp_peer2.conf\ +test_transport_api_reliability_http_xhr_peer1.conf\ +test_transport_api_reliability_http_xhr_peer2.conf\ +test_transport_api_reliability_https_xhr_peer1.conf\ +test_transport_api_reliability_https_xhr_peer2.conf\ test_transport_api_reliability_unix_peer1.conf\ test_transport_api_reliability_unix_peer2.conf\ test_transport_api_reliability_wlan_peer1.conf\ test_transport_api_reliability_wlan_peer2.conf\ +test_transport_api_unreliability_wlan_peer1.conf\ +test_transport_api_unreliability_wlan_peer2.conf\ test_transport_api_reliability_bluetooth_peer1.conf\ test_transport_api_reliability_bluetooth_peer2.conf\ -test_transport_test_transport_address_switch_http_peer1.conf\ -test_transport_test_transport_address_switch_http_peer2.conf\ -test_transport_test_transport_address_switch_https_peer1.conf\ -test_transport_test_transport_address_switch_https_peer2.conf\ -test_transport_test_transport_address_switch_udp_peer1.conf\ -test_transport_test_transport_address_switch_udp_peer2.conf\ -test_transport_test_transport_address_switch_tcp_peer1.conf\ -test_transport_test_transport_address_switch_tcp_peer2.conf\ test_transport_api_wlan_peer1.conf\ test_transport_api_wlan_peer2.conf\ test_transport_api_bluetooth_peer1.conf\