make clang static analysis happy
[oweals/gnunet.git] / src / fs / Makefile.am
index 82467c14ca25cbc70c4db814894c08fe3abce1ab..e1b85092a47230f19f6e52ef52b3ff1d01f40535 100644 (file)
@@ -13,8 +13,10 @@ endif
 
 lib_LTLIBRARIES = libgnunetfs.la
 
+noinst_LIBRARIES = libgnunetfstest.a
+
 libgnunetfs_la_SOURCES = \
-  fs.c \
+  fs.c fs.h \
   fs_collection.c \
   fs_directory.c \
   fs_download.c \
@@ -39,6 +41,12 @@ libgnunetfs_la_LDFLAGS = \
   -version-info 0:0:0
 
 
+libgnunetfstest_a_SOURCES = \
+  fs_test_lib.c fs_test_lib.h
+
+libgnunetfstest_a_LIBADD = \
+  $(top_builddir)/src/testing/libgnunettesting.la 
+
 bin_PROGRAMS = \
   gnunet-directory \
   gnunet-download \
@@ -74,6 +82,7 @@ gnunet_pseudonym_SOURCES = \
 gnunet_pseudonym_LDADD = \
   $(top_builddir)/src/fs/libgnunetfs.la \
   $(top_builddir)/src/util/libgnunetutil.la \
+  -lextractor \
   $(GN_LIBINTL)
 
 gnunet_search_SOURCES = \
@@ -84,10 +93,13 @@ gnunet_search_LDADD = \
   $(GN_LIBINTL)
 
 gnunet_service_fs_SOURCES =  \
- gnunet-service-fs.c         
+ gnunet-service-fs.c \
+ gnunet-service-fs_drq.c gnunet-service-fs_drq.h \
+ gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h 
 gnunet_service_fs_LDADD =  \
  $(top_builddir)/src/fs/libgnunetfs.la \
  $(top_builddir)/src/datastore/libgnunetdatastore.la \
+ $(top_builddir)/src/statistics/libgnunetstatistics.la \
  $(top_builddir)/src/core/libgnunetcore.la \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(GN_LIBINTL)
@@ -106,20 +118,42 @@ check_PROGRAMS = \
  test_fs_collection \
  test_fs_directory \
  test_fs_download \
+ test_fs_file_information \
  test_fs_getopt \
+ test_fs_list_indexed \
  test_fs_namespace \
+ test_fs_publish \
  test_fs_search \
  test_fs_start_stop \
- test_fs_uri
+ test_fs_test_lib \
+ test_fs_unindex \
+ test_fs_uri \
+ test_gnunet_service_fs_p2p
 
-TESTS = \
+if HAVE_PYTHON_PEXPECT
+check_SCRIPTS = \
+ test_gnunet_fs_psd.py \
+ test_gnunet_fs_rec.py \
+ test_gnunet_fs_ns.py \
+ test_gnunet_fs_idx.py
+endif
+
+TESTS = $(check_SCRIPTS) \
  test_fs_directory \
  test_fs_download \
+ test_fs_file_information \
+ test_fs_list_indexed \
+ test_fs_namespace \
+ test_fs_publish \
  test_fs_search \
  test_fs_start_stop \
- test_fs_uri
+ test_fs_unindex \
+ test_fs_uri \
+ test_fs_test_lib \
+ test_gnunet_service_fs_p2p
 # $(check_PROGRAMS)
 
+
 test_fs_collection_SOURCES = \
  test_fs_collection.c
 test_fs_collection_LDADD = \
@@ -139,6 +173,25 @@ test_fs_download_LDADD = \
   $(top_builddir)/src/arm/libgnunetarm.la  \
   $(top_builddir)/src/util/libgnunetutil.la  
 
+test_fs_file_information_SOURCES = \
+ test_fs_file_information.c
+test_fs_file_information_LDADD = \
+  $(top_builddir)/src/fs/libgnunetfs.la  \
+  $(top_builddir)/src/util/libgnunetutil.la  
+
+test_fs_getopt_SOURCES = \
+ test_fs_getopt.c
+test_fs_getopt_LDADD = \
+  $(top_builddir)/src/fs/libgnunetfs.la  \
+  $(top_builddir)/src/util/libgnunetutil.la  
+
+test_fs_list_indexed_SOURCES = \
+ test_fs_list_indexed.c
+test_fs_list_indexed_LDADD = \
+  $(top_builddir)/src/fs/libgnunetfs.la  \
+  $(top_builddir)/src/arm/libgnunetarm.la  \
+  $(top_builddir)/src/util/libgnunetutil.la  
+
 test_fs_namespace_SOURCES = \
  test_fs_namespace.c
 test_fs_namespace_LDADD = \
@@ -146,6 +199,13 @@ test_fs_namespace_LDADD = \
   $(top_builddir)/src/arm/libgnunetarm.la  \
   $(top_builddir)/src/util/libgnunetutil.la  
 
+test_fs_publish_SOURCES = \
+ test_fs_publish.c
+test_fs_publish_LDADD = \
+  $(top_builddir)/src/fs/libgnunetfs.la  \
+  $(top_builddir)/src/arm/libgnunetarm.la  \
+  $(top_builddir)/src/util/libgnunetutil.la  
+
 test_fs_search_SOURCES = \
  test_fs_search.c
 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la   \
@@ -159,10 +219,11 @@ test_fs_start_stop_LDADD = \
   $(top_builddir)/src/arm/libgnunetarm.la  \
   $(top_builddir)/src/util/libgnunetutil.la  
 
-test_fs_getopt_SOURCES = \
- test_fs_getopt.c
-test_fs_getopt_LDADD = \
+test_fs_unindex_SOURCES = \
+ test_fs_unindex.c
+test_fs_unindex_LDADD = \
   $(top_builddir)/src/fs/libgnunetfs.la  \
+  $(top_builddir)/src/arm/libgnunetarm.la  \
   $(top_builddir)/src/util/libgnunetutil.la  
 
 test_fs_uri_SOURCES = \
@@ -171,10 +232,39 @@ test_fs_uri_LDADD = \
   $(top_builddir)/src/fs/libgnunetfs.la  \
   $(top_builddir)/src/util/libgnunetutil.la  
 
+test_fs_test_lib_SOURCES = \
+ test_fs_test_lib.c
+test_fs_test_lib_LDADD = \
+  $(top_builddir)/src/fs/libgnunetfstest.a \
+  $(top_builddir)/src/testing/libgnunettesting.la \
+  $(top_builddir)/src/fs/libgnunetfs.la  \
+  $(top_builddir)/src/util/libgnunetutil.la  
+
+test_gnunet_service_fs_p2p_SOURCES = \
+ test_gnunet_service_fs_p2p.c
+test_gnunet_service_fs_p2p_LDADD = \
+  $(top_builddir)/src/fs/libgnunetfstest.a \
+  $(top_builddir)/src/testing/libgnunettesting.la \
+  $(top_builddir)/src/fs/libgnunetfs.la  \
+  $(top_builddir)/src/util/libgnunetutil.la  
+
+
 EXTRA_DIST = \
+  fs_test_lib_data.conf \
   test_fs_data.conf \
   test_fs_collection_data.conf \
   test_fs_download_data.conf \
+  test_fs_file_information_data.conf \
+  fs_test_lib_data.conf \
+  test_fs_list_indexed_data.conf \
   test_fs_namespace_data.conf \
+  test_fs_publish_data.conf \
   test_fs_search_data.conf \
-  test_fs_uri_data.conf
+  test_fs_unindex_data.conf \
+  test_fs_uri_data.conf \
+  test_gnunet_fs_idx_data.conf \
+  test_gnunet_fs_ns_data.conf \
+  test_gnunet_fs_psd_data.conf \
+  test_gnunet_fs_rec_data.conf \
+  test_gnunet_fs_rec_data.tgz \
+  $(check_SCRIPTS)