X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Frps%2FMakefile.am;h=b1fd3d47b841e0dacf49007590c3eb88038d0e50;hb=36fd53ed6ae7c60d4b49cea614d18aa6d58843a1;hp=488cea15202de8a953acaff552f8d78391b74483;hpb=1b4ccddc7946888fc0b66c58b1434e1814a43822;p=oweals%2Fgnunet.git diff --git a/src/rps/Makefile.am b/src/rps/Makefile.am index 488cea152..b1fd3d47b 100644 --- a/src/rps/Makefile.am +++ b/src/rps/Makefile.am @@ -40,41 +40,75 @@ libgnunetrps_la_LDFLAGS = \ libexec_PROGRAMS = \ gnunet-service-rps +if HAVE_TESTING +noinst_PROGRAMS = \ + gnunet-rps-profiler +endif + gnunet_service_rps_SOURCES = \ gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \ + rps-test_util.h rps-test_util.c \ gnunet-service-rps.c gnunet_service_rps_LDADD = \ libgnunetrps.la \ $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ $(top_builddir)/src/cadet/libgnunetcadet.la \ + $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ $(top_builddir)/src/nse/libgnunetnse.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(LIBGCRYPT_LIBS) \ -lm -lgcrypt \ $(GN_LIBINTL) + if HAVE_TESTING check_PROGRAMS = \ - test_rps_multipeer + test_rps_malicious_1 \ + test_rps_malicious_2 \ + test_rps_malicious_3 \ + test_rps_seed_request \ + test_rps_single_req endif +ld_rps_test_lib = \ + libgnunetrps.la \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/testbed/libgnunettestbed.la \ + -lm + + if ENABLE_TEST_RUN AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; TESTS = $(check_PROGRAMS) endif -test_rps_multipeer_SOURCES = \ - test_rps_multipeer.c -test_rps_multipeer_LDADD = \ - libgnunetrps.la \ - $(top_builddir)/src/util/libgnunetutil.la \ - $(top_builddir)/src/testbed/libgnunettestbed.la \ - -lm +test_rps_malicious_1_SOURCES = \ + test_rps.c +test_rps_malicious_1_LDADD = $(ld_rps_test_lib) + +test_rps_malicious_2_SOURCES = \ + test_rps.c +test_rps_malicious_2_LDADD = $(ld_rps_test_lib) +test_rps_malicious_3_SOURCES = \ + test_rps.c +test_rps_malicious_3_LDADD = $(ld_rps_test_lib) + +test_rps_single_req_SOURCES = \ + test_rps.c +test_rps_single_req_LDADD = $(ld_rps_test_lib) + +test_rps_seed_request_SOURCES = \ + test_rps.c +test_rps_seed_request_LDADD = $(ld_rps_test_lib) + +gnunet_rps_profiler_SOURCES = \ + test_rps.c +gnunet_rps_profiler_LDADD = $(ld_rps_test_lib) EXTRA_DIST = \ test_rps.conf -