psycstore: add option to perform membership test when retrieving fragment or message
[oweals/gnunet.git] / src / psycstore / Makefile.am
index 48f8d5ff7cabd704edc7eb3854b173bbaa632dfa..e27113b8155ed8e6d7585db8b0fbf56a8eb77249 100644 (file)
@@ -1,4 +1,4 @@
-INCLUDES = -I$(top_srcdir)/src/include
+AM_CPPFLAGS = -I$(top_srcdir)/src/include
 
 plugindir = $(libdir)/gnunet
 
@@ -22,7 +22,7 @@ endif
 if HAVE_SQLITE
 SQLITE_PLUGIN = libgnunet_plugin_psycstore_sqlite.la
 if HAVE_TESTING
-#SQLITE_TESTS = test_plugin_psycstore_sqlite
+SQLITE_TESTS = test_plugin_psycstore_sqlite
 endif
 endif
 
@@ -76,11 +76,12 @@ libgnunet_plugin_psycstore_sqlite_la_DEPENDENCIES = \
 
 if HAVE_TESTING
 check_PROGRAMS = \
test_psycstore \
- $(SQLITE_TESTS)
$(SQLITE_TESTS) \
+ test_psycstore
 endif
 
 if ENABLE_TEST_RUN
+AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
 TESTS = $(check_PROGRAMS)
 endif
 
@@ -99,3 +100,8 @@ EXTRA_DIST = \
   test_psycstore.conf
 
 
+test_plugin_psycstore_sqlite_SOURCES = \
+ test_plugin_psycstore.c
+test_plugin_psycstore_sqlite_LDADD = \
+ $(top_builddir)/src/testing/libgnunettesting.la \
+ $(top_builddir)/src/util/libgnunetutil.la