X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftestbed%2FMakefile.am;h=62b49af78649cc3498d971273eac170ae4e22911;hb=dfcab34c5af80c0068299bacb16ffc461bf3c1ad;hp=5977740c5fd26ec954dadfde11dbdf3a207cf3ee;hpb=c4b94034c6affa4fbb18acc63cb9402a53f30461;p=oweals%2Fgnunet.git diff --git a/src/testbed/Makefile.am b/src/testbed/Makefile.am index 5977740c5..62b49af78 100644 --- a/src/testbed/Makefile.am +++ b/src/testbed/Makefile.am @@ -1,23 +1,11 @@ -INCLUDES = -I$(top_srcdir)/src/include - -if MINGW - WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -endif +# This Makefile.am is in the public domain +AM_CPPFLAGS = -I$(top_srcdir)/src/include if USE_COVERAGE AM_CFLAGS = --coverage -O0 XLIB = -lgcov endif -if WITH_LL - CC = mpcc - ll_noinst_binaries = \ - ll-master \ - ll-monitor - ll_binaries = \ - gnunet-mpi-test -endif - libexecdir= $(pkglibdir)/libexec/ pkgcfgdir= $(pkgdatadir)/config.d/ @@ -25,38 +13,54 @@ pkgcfgdir= $(pkgdatadir)/config.d/ pkgcfg_DATA = \ testbed.conf +if HAVE_SQLITE + underlay_daemon = gnunet-daemon-testbed-underlay + latency_logger = gnunet-daemon-latency-logger + generate_underlay = generate-underlay-topology + underlay_testcases = test_testbed_underlay +endif + libexec_PROGRAMS = \ gnunet-service-testbed \ - gnunet-helper-testbed + gnunet-helper-testbed \ + gnunet-daemon-testbed-blacklist \ + $(underlay_daemon) \ + $(latency_logger) bin_PROGRAMS = \ - $(ll_binaries) + gnunet-testbed-profiler noinst_PROGRAMS = \ - gnunet-testbed-profiler \ - $(ll_noinst_binaries) + $(generate_underlay) gnunet_service_testbed_SOURCES = \ - gnunet-service-testbed.c \ - gnunet-service-testbed.h \ + gnunet-service-testbed.c gnunet-service-testbed.h \ + gnunet-service-testbed_links.c gnunet-service-testbed_links.h \ + gnunet-service-testbed_peers.c \ gnunet-service-testbed_cache.c \ - gnunet-service-testbed_oc.c + gnunet-service-testbed_oc.c \ + gnunet-service-testbed_cpustatus.c \ + gnunet-service-testbed_meminfo.c gnunet-service-testbed_meminfo.h \ + gnunet-service-testbed_barriers.c gnunet-service-testbed_barriers.h \ + gnunet-service-testbed_connectionpool.c gnunet-service-testbed_connectionpool.h gnunet_service_testbed_LDADD = $(XLIB) \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/core/libgnunetcore.la \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/testbed/libgnunettestbed.la \ - $(LTLIBINTL) -lz -gnunet_service_testbed_DEPENDENCIES = \ - libgnunettestbed.la + libgnunettestbed.la \ + $(top_builddir)/src/arm/libgnunetarm.la \ + $(LTLIBINTL) $(Z_LIBS) gnunet_testbed_profiler_SOURCES = \ gnunet-testbed-profiler.c gnunet_testbed_profiler_LDADD = $(XLIB) \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettestbed.la +gnunet_testbed_profiler_LDFLAGS = \ + $(GN_LIBINTL) gnunet_helper_testbed_SOURCES = \ gnunet-helper-testbed.c @@ -64,25 +68,25 @@ gnunet_helper_testbed_LDADD = $(XLIB) \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunettestbed.la \ - $(LTLIBINTL) -lz -gnunet_helper_testbed_DEPENDENCIES = \ - gnunet-service-testbed.$(OBJEXT) \ - libgnunettestbed.la + $(LTLIBINTL) $(Z_LIBS) -ll_master_SOURCES = \ - ll_master.c -ll_master_LDADD = $(XLIB) \ +gnunet_daemon_testbed_blacklist_SOURCES = gnunet-daemon-testbed-blacklist.c +gnunet_daemon_testbed_blacklist_LDADD = $(XLIB) \ + $(top_builddir)/src/transport/libgnunettransport.la \ $(top_builddir)/src/util/libgnunetutil.la \ - $(LTLIBINTL) -lz -lllapi + $(LTLIBINTL) -ll_monitor_SOURCES = \ - ll_monitor.c -ll_monitor_LDADD = $(XLIB) \ - $(LTLIBINTL) -lz -lllapi +gnunet_daemon_testbed_underlay_SOURCES = gnunet-daemon-testbed-underlay.c +gnunet_daemon_testbed_underlay_LDADD = $(XLIB) \ + $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(LTLIBINTL) -lsqlite3 -gnunet_mpi_test_SOURCES = gnunet_mpi_test.c -gnunet_mpi_test_LDADD = \ - $(top_builddir)/src/util/libgnunetutil.la +gnunet_daemon_latency_logger_SOURCES = gnunet-daemon-latency-logger.c +gnunet_daemon_latency_logger_LDADD = $(XLIB) \ + $(top_builddir)/src/ats/libgnunetats.la \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(LTLIBINTL) -lsqlite3 lib_LTLIBRARIES = \ libgnunettestbed.la @@ -96,13 +100,14 @@ libgnunettestbed_la_SOURCES = \ testbed_api_statistics.c \ testbed_api_testbed.c \ testbed_api_test.c \ - testbed_api_topology.c testbed_api_topology.h + testbed_api_topology.c testbed_api_topology.h \ + testbed_api_sd.c testbed_api_sd.h \ + testbed_api_barriers.c libgnunettestbed_la_LIBADD = $(XLIB) \ - $(top_builddir)/src/core/libgnunetcore.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/transport/libgnunettransport.la \ $(top_builddir)/src/hello/libgnunethello.la \ - -lm \ + -lm $(Z_LIBS) \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/testing/libgnunettesting.la \ $(LTLIBINTL) @@ -110,50 +115,75 @@ libgnunettestbed_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) \ -version-info 0:0:0 +generate_underlay_topology_SOURCES = generate-underlay-topology.c +generate_underlay_topology_LDADD = $(XLIB) \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la \ + $(LTLIBINTL) -lsqlite3 + check_PROGRAMS = \ test_testbed_api_hosts \ + test_gnunet_helper_testbed \ test_testbed_api_controllerlink \ test_testbed_api_2peers_1controller \ test_testbed_api_3peers_3controllers \ test_testbed_api \ + test_testbed_api_sd \ test_testbed_api_operations \ test_testbed_api_testbed_run \ test_testbed_api_test \ - test_gnunet_helper_testbed \ + test_testbed_api_test_timeout \ + test_testbed_api_peer_reconfiguration \ + test_testbed_api_peers_manage_services \ test_testbed_api_topology \ test_testbed_api_topology_clique \ test_testbed_api_testbed_run_topologyrandom \ test_testbed_api_testbed_run_topologyline \ + test_testbed_api_testbed_run_topologystar \ test_testbed_api_testbed_run_topologyclique \ test_testbed_api_testbed_run_topologyring \ test_testbed_api_testbed_run_topologysmallworldring \ test_testbed_api_testbed_run_topology2dtorus \ test_testbed_api_testbed_run_topologysmallworld \ test_testbed_api_testbed_run_topologyfromfile \ - test_testbed_api_testbed_run_topologyscalefree + test_testbed_api_testbed_run_topologyscalefree \ + test_testbed_api_testbed_run_waitforever \ + test_testbed_api_statistics \ + gnunet-service-test-barriers \ + test_testbed_api_barriers \ + $(underlay_testcases) if ENABLE_TEST_RUN + 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_testbed_api \ - test_testbed_api_hosts \ - test_testbed_api_2peers_1controller \ - test_testbed_api_3peers_3controllers \ + test_testbed_api_sd \ test_testbed_api_operations \ + test_testbed_api_hosts \ test_gnunet_helper_testbed \ + test_testbed_api_2peers_1controller \ test_testbed_api_controllerlink \ + test_testbed_api_3peers_3controllers \ test_testbed_api_testbed_run \ test_testbed_api_test \ + test_testbed_api_test_timeout \ + test_testbed_api_statistics \ + test_testbed_api_peer_reconfiguration \ + test_testbed_api_peers_manage_services \ test_testbed_api_topology \ test_testbed_api_topology_clique \ test_testbed_api_testbed_run_topologyrandom \ test_testbed_api_testbed_run_topologyline \ + test_testbed_api_testbed_run_topologystar \ test_testbed_api_testbed_run_topologyclique \ test_testbed_api_testbed_run_topologyring \ - test_testbed_api_testbed_run_topologysmallworldring \ test_testbed_api_testbed_run_topology2dtorus \ test_testbed_api_testbed_run_topologysmallworld \ + test_testbed_api_testbed_run_topologysmallworldring \ test_testbed_api_testbed_run_topologyfromfile \ - test_testbed_api_testbed_run_topologyscalefree + test_testbed_api_testbed_run_topologyscalefree \ + test_testbed_api_barriers \ + $(underlay_testcases) endif test_testbed_api_hosts_SOURCES = \ @@ -167,7 +197,13 @@ test_testbed_api_SOURCES = \ test_testbed_api_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/dht/libgnunetdht.la \ + $(top_builddir)/src/arm/libgnunetarm.la \ + libgnunettestbed.la + +test_testbed_api_sd_SOURCES = \ + test_testbed_api_sd.c +test_testbed_api_sd_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ libgnunettestbed.la test_testbed_api_2peers_1controller_SOURCES = \ @@ -208,6 +244,12 @@ test_testbed_api_test_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettestbed.la +test_testbed_api_test_timeout_SOURCES = \ + test_testbed_api_test_timeout.c +test_testbed_api_test_timeout_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la + test_testbed_api_topology_SOURCES = \ test_testbed_api_topology.c test_testbed_api_topology_LDADD = \ @@ -225,7 +267,7 @@ test_gnunet_helper_testbed_SOURCES = \ test_gnunet_helper_testbed_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettestbed.la \ - -lz + $(Z_LIBS) test_testbed_api_testbed_run_topologyrandom_SOURCES = \ test_testbed_api_testbed_run.c @@ -239,6 +281,12 @@ test_testbed_api_testbed_run_topologyline_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettestbed.la +test_testbed_api_testbed_run_topologystar_SOURCES = \ + test_testbed_api_testbed_run.c +test_testbed_api_testbed_run_topologystar_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la + test_testbed_api_testbed_run_topologyclique_SOURCES = \ test_testbed_api_testbed_run.c test_testbed_api_testbed_run_topologyclique_LDADD = \ @@ -281,9 +329,57 @@ test_testbed_api_testbed_run_topologyscalefree_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ libgnunettestbed.la +test_testbed_api_testbed_run_waitforever_SOURCES = \ + test_testbed_api_testbed_run.c +test_testbed_api_testbed_run_waitforever_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la + +test_testbed_api_statistics_SOURCES = \ + test_testbed_api_statistics.c +test_testbed_api_statistics_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la + +test_testbed_api_peers_manage_services_SOURCES = \ + test_testbed_api_peers_manage_services.c +test_testbed_api_peers_manage_services_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la + +test_testbed_api_peer_reconfiguration_SOURCES = \ + test_testbed_api_peer_reconfiguration.c +test_testbed_api_peer_reconfiguration_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la + +test_testbed_api_barriers_SOURCES = \ + test_testbed_api_barriers.c \ + test_testbed_api_barriers.h +test_testbed_api_barriers_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la + +gnunet_service_test_barriers_SOURCES = \ + gnunet-service-test-barriers.c \ + test_testbed_api_barriers.h +gnunet_service_test_barriers_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la + +test_testbed_underlay_SOURCES = \ + test_testbed_underlay.c +test_testbed_underlay_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + libgnunettestbed.la + EXTRA_DIST = \ test_testbed_api.conf \ + test_testbed_api_statistics.conf \ + test_testbed_api_test_timeout.conf \ + test_testbed_api_template.conf \ test_testbed_api_testbed_run_topologyring.conf \ + test_testbed_api_testbed_run_topologystar.conf \ test_testbed_api_testbed_run_topologyclique.conf \ test_testbed_api_testbed_run_topologyline.conf \ test_testbed_api_testbed_run_topologyrandom.conf \ @@ -292,6 +388,9 @@ EXTRA_DIST = \ test_testbed_api_testbed_run_topologysmallworld.conf \ test_testbed_api_testbed_run_topologyfromfile.conf \ test_testbed_api_testbed_run_topologyscalefree.conf \ + test_testbed_api_barriers.conf.in \ overlay_topology.txt \ sample_hosts.txt \ - sample.job + sample.job \ + test_testbed_underlay.conf.in \ + test-underlay.sqlite