X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Frevocation%2FMakefile.am;h=541c7120d8685d2a34367e5e82ef496778c02c4f;hb=7c8c596991f6397ec3ca1911638acb2de721c7a7;hp=02e10c77d23c154ead0a3ce77b7520333169dee9;hpb=fa05c4a3e2371239b7c80a04fdf551b19845f2a6;p=oweals%2Fgnunet.git diff --git a/src/revocation/Makefile.am b/src/revocation/Makefile.am index 02e10c77d..541c7120d 100644 --- a/src/revocation/Makefile.am +++ b/src/revocation/Makefile.am @@ -1,3 +1,4 @@ +# This Makefile.am is in the public domain AM_CPPFLAGS = -I$(top_srcdir)/src/include if MINGW @@ -34,6 +35,7 @@ libgnunetrevocation_la_SOURCES = \ revocation_api.c revocation.h libgnunetrevocation_la_LIBADD = \ $(top_builddir)/src/util/libgnunetutil.la \ + $(LIBGCRYPT_LIBS) \ $(GN_LIBINTL) $(XLIB) -lgcrypt libgnunetrevocation_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) $(WINFLAGS) \ @@ -46,22 +48,42 @@ libexec_PROGRAMS = \ gnunet_service_revocation_SOURCES = \ gnunet-service-revocation.c gnunet_service_revocation_LDADD = \ - $(top_builddir)/src/revocation/libgnunetrevocation.la \ + libgnunetrevocation.la \ $(top_builddir)/src/core/libgnunetcore.la \ $(top_builddir)/src/set/libgnunetset.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/util/libgnunetutil.la \ -lm \ $(GN_LIBINTL) -gnunet_service_revocation_DEPENDENCIES = \ - libgnunetrevocation.la + +test_revocation_SOURCES = \ + test_revocation.c +test_revocation_LDADD = \ + $(top_builddir)/src/identity/libgnunetidentity.la \ + libgnunetrevocation.la \ + $(top_builddir)/src//core/libgnunetcore.la \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/testbed/libgnunettestbed.la + +check_PROGRAMS = \ + test_revocation check_SCRIPTS = \ - test_local_revocation.sh + test_local_revocation.py if ENABLE_TEST_RUN - TESTS = $(check_SCRIPTS) + 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 = \ + $(check_SCRIPTS) \ + $(check_PROGRAMS) endif -EXTRA_DIST = test_revocation.conf +do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' + +test_local_revocation.py: test_local_revocation.py.in Makefile + $(do_subst) < $(srcdir)/test_local_revocation.py.in > test_local_revocation.py + chmod +x test_local_revocation.py + +EXTRA_DIST = test_revocation.conf \ + test_local_revocation.py.in