X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fcore%2FMakefile.am;h=de96167379af44a2e1546a046776ce82c8cb136c;hb=5b79d2a877b71d5e718328784fd69725efa1d38d;hp=4dba41b69f5afe77035e8c229b184626f3837ae8;hpb=4c72fa477ad226660df116c6275283833a3f5214;p=oweals%2Fgnunet.git diff --git a/src/core/Makefile.am b/src/core/Makefile.am index 4dba41b69..de9616737 100644 --- a/src/core/Makefile.am +++ b/src/core/Makefile.am @@ -5,7 +5,8 @@ if MINGW endif if USE_COVERAGE - AM_CFLAGS = -fprofile-arcs -ftest-coverage + AM_CFLAGS = --coverage -O0 + XLIB = -lgcov endif @@ -13,11 +14,11 @@ lib_LTLIBRARIES = \ libgnunetcore.la libgnunetcore_la_SOURCES = \ - core_api.c core.h + core_api.c core.h \ + core_api_iterate_peers.c libgnunetcore_la_LIBADD = \ - $(top_builddir)/src/arm/libgnunetarm.la \ $(top_builddir)/src/util/libgnunetutil.la \ - $(GN_LIBINTL) + $(GN_LIBINTL) $(XLIB) libgnunetcore_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) $(WINFLAGS) \ -version-info 0:0:0 @@ -31,33 +32,66 @@ gnunet_service_core_SOURCES = \ gnunet_service_core_LDADD = \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ + $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/transport/libgnunettransport.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) - - + check_PROGRAMS = \ test_core_api_start_only \ - test_core_api + test_core_api \ + test_core_api_reliability \ + test_core_quota_compliance_symmetric \ + test_core_quota_compliance_asymmetric_send_limited \ + test_core_quota_compliance_asymmetric_recv_limited +if !DISABLE_TEST_RUN TESTS = $(check_PROGRAMS) +endif test_core_api_SOURCES = \ test_core_api.c test_core_api_LDADD = \ - $(top_builddir)/src/arm/libgnunetarm.la \ $(top_builddir)/src/core/libgnunetcore.la \ $(top_builddir)/src/transport/libgnunettransport.la \ $(top_builddir)/src/util/libgnunetutil.la +test_core_api_reliability_SOURCES = \ + test_core_api_reliability.c +test_core_api_reliability_LDADD = \ + $(top_builddir)/src/core/libgnunetcore.la \ + $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/util/libgnunetutil.la test_core_api_start_only_SOURCES = \ test_core_api_start_only.c test_core_api_start_only_LDADD = \ - $(top_builddir)/src/arm/libgnunetarm.la \ $(top_builddir)/src/core/libgnunetcore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la + +test_core_quota_compliance_symmetric_SOURCES = \ + test_core_quota_compliance.c +test_core_quota_compliance_symmetric_LDADD = \ + $(top_builddir)/src/core/libgnunetcore.la \ + $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/statistics/libgnunetstatistics.la + +test_core_quota_compliance_asymmetric_send_limited_SOURCES = \ + test_core_quota_compliance.c +test_core_quota_compliance_asymmetric_send_limited_LDADD = \ + $(top_builddir)/src/core/libgnunetcore.la \ + $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/statistics/libgnunetstatistics.la +test_core_quota_compliance_asymmetric_recv_limited_SOURCES = \ + test_core_quota_compliance.c +test_core_quota_compliance_asymmetric_recv_limited_LDADD = \ + $(top_builddir)/src/core/libgnunetcore.la \ + $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/statistics/libgnunetstatistics.la EXTRA_DIST = \ test_core_api_data.conf \