- remove adjust
[oweals/gnunet.git] / src / revocation / Makefile.am
index 91610b4f078c2980a621dc10d03e76f0acaa40ae..18d379b0b586c13adbc1b9f42dc561b64e2abee9 100644 (file)
@@ -1,7 +1,7 @@
 AM_CPPFLAGS = -I$(top_srcdir)/src/include
 
 if MINGW
- WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
+ WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
 endif
 
 if USE_COVERAGE
@@ -17,11 +17,11 @@ pkgcfg_DATA = \
   revocation.conf
 
 bin_PROGRAMS = \
- gnunet-revocation 
+ gnunet-revocation
 
 
 gnunet_revocation_SOURCES = \
- gnunet-revocation.c         
+ gnunet-revocation.c
 gnunet_revocation_LDADD = \
   libgnunetrevocation.la \
   $(top_builddir)/src/identity/libgnunetidentity.la \
@@ -34,17 +34,18 @@ 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) \
   -version-info 0:0:0
 
 libexec_PROGRAMS = \
- gnunet-service-revocation 
+ gnunet-service-revocation
 
 
 gnunet_service_revocation_SOURCES = \
- gnunet-service-revocation.c         
+ gnunet-service-revocation.c
 gnunet_service_revocation_LDADD = \
   $(top_builddir)/src/revocation/libgnunetrevocation.la \
   $(top_builddir)/src/core/libgnunetcore.la \
@@ -56,6 +57,34 @@ gnunet_service_revocation_LDADD = \
 gnunet_service_revocation_DEPENDENCIES = \
   libgnunetrevocation.la
 
+test_revocation_SOURCES = \
+ test_revocation.c
+test_revocation_LDADD = \
+ $(top_builddir)/src/identity/libgnunetidentity.la \
+ $(top_builddir)/src/revocation/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.py
+
+if ENABLE_TEST_RUN
+ TESTS = \
+ $(check_SCRIPTS) \
+ $(check_PROGRAMS)
+endif
+
+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
 
-#EXTRA_DIST =