indexing test
[oweals/gnunet.git] / src / fs / Makefile.am
1
2 INCLUDES = -I$(top_srcdir)/src/include
3
4 if MINGW
5  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10   XLIB = -lgcov
11 endif
12
13
14 lib_LTLIBRARIES = libgnunetfs.la
15
16 noinst_LIBRARIES = libgnunetfstest.a
17
18 libgnunetfs_la_SOURCES = \
19   fs.c fs.h \
20   fs_collection.c \
21   fs_directory.c \
22   fs_download.c \
23   fs_file_information.c \
24   fs_getopt.c \
25   fs_list_indexed.c \
26   fs_publish.c \
27   fs_namespace.c \
28   fs_search.c \
29   fs_tree.c fs_tree.h \
30   fs_unindex.c \
31   fs_uri.c 
32
33 libgnunetfs_la_LIBADD = \
34   $(top_builddir)/src/datastore/libgnunetdatastore.la \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   -lextractor \
37   $(GN_LIBINTL) $(XLIB)
38
39 libgnunetfs_la_LDFLAGS = \
40   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
41   -version-info 0:0:0
42
43
44 libgnunetfstest_a_SOURCES = \
45   fs_test_lib.c fs_test_lib.h
46
47 libgnunetfstest_a_LIBADD = \
48   $(top_builddir)/src/testing/libgnunettesting.la 
49
50 bin_PROGRAMS = \
51   gnunet-directory \
52   gnunet-download \
53   gnunet-publish \
54   gnunet-pseudonym \
55   gnunet-search \
56   gnunet-service-fs \
57   gnunet-unindex 
58
59 gnunet_directory_SOURCES = \
60  gnunet-directory.c
61 gnunet_directory_LDADD = \
62   $(top_builddir)/src/fs/libgnunetfs.la \
63   $(top_builddir)/src/util/libgnunetutil.la \
64   $(GN_LIBINTL)
65
66 gnunet_download_SOURCES =  \
67  gnunet-download.c         
68 gnunet_download_LDADD =  \
69  $(top_builddir)/src/fs/libgnunetfs.la \
70  $(top_builddir)/src/util/libgnunetutil.la \
71  $(GN_LIBINTL)
72
73 gnunet_publish_SOURCES =  \
74  gnunet-publish.c         
75 gnunet_publish_LDADD =  \
76  $(top_builddir)/src/fs/libgnunetfs.la \
77  $(top_builddir)/src/util/libgnunetutil.la \
78  $(GN_LIBINTL)
79
80 gnunet_pseudonym_SOURCES = \
81  gnunet-pseudonym.c
82 gnunet_pseudonym_LDADD = \
83   $(top_builddir)/src/fs/libgnunetfs.la \
84   $(top_builddir)/src/util/libgnunetutil.la \
85   -lextractor \
86   $(GN_LIBINTL)
87
88 gnunet_search_SOURCES = \
89  gnunet-search.c         
90 gnunet_search_LDADD = \
91   $(top_builddir)/src/fs/libgnunetfs.la \
92   $(top_builddir)/src/util/libgnunetutil.la \
93   $(GN_LIBINTL)
94
95 gnunet_service_fs_SOURCES =  \
96  gnunet-service-fs.c \
97  gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h 
98 gnunet_service_fs_LDADD =  \
99  $(top_builddir)/src/fs/libgnunetfs.la \
100  $(top_builddir)/src/block/libgnunetblock.la \
101  $(top_builddir)/src/datastore/libgnunetdatastore.la \
102  $(top_builddir)/src/statistics/libgnunetstatistics.la \
103  $(top_builddir)/src/core/libgnunetcore.la \
104  $(top_builddir)/src/util/libgnunetutil.la \
105  $(GN_LIBINTL)
106
107 gnunet_unindex_SOURCES = \
108  gnunet-unindex.c         
109 gnunet_unindex_LDADD = \
110   $(top_builddir)/src/fs/libgnunetfs.la \
111   $(top_builddir)/src/util/libgnunetutil.la \
112   $(GN_LIBINTL)
113
114
115
116
117 check_PROGRAMS = \
118  test_fs_collection \
119  test_fs_directory \
120  test_fs_download \
121  test_fs_download_indexed \
122  test_fs_download_persistence \
123  test_fs_file_information \
124  test_fs_getopt \
125  test_fs_list_indexed \
126  test_fs_namespace \
127  test_fs_publish \
128  test_fs_publish_persistence \
129  test_fs_search \
130  test_fs_search_persistence \
131  test_fs_start_stop \
132  test_fs_test_lib \
133  test_fs_unindex \
134  test_fs_unindex_persistence \
135  test_fs_uri \
136  test_gnunet_service_fs_p2p
137
138
139 if HAVE_PYTHON_PEXPECT
140 check_SCRIPTS = \
141  test_gnunet_fs_psd.py \
142  test_gnunet_fs_rec.py \
143  test_gnunet_fs_ns.py \
144  test_gnunet_fs_idx.py
145 endif
146
147 TESTS = \
148  test_fs_directory \
149  test_fs_download \
150  test_fs_download_indexed \
151  test_fs_download_persistence \
152  test_fs_file_information \
153  test_fs_list_indexed \
154  test_fs_namespace \
155  test_fs_publish \
156  test_fs_publish_persistence \
157  test_fs_search \
158  test_fs_search_persistence \
159  test_fs_start_stop \
160  test_fs_unindex \
161  test_fs_unindex_persistence \
162  test_fs_uri \
163  test_fs_test_lib \
164  test_gnunet_service_fs_p2p \
165  $(check_SCRIPTS) 
166 # $(check_PROGRAMS)
167
168
169 test_fs_collection_SOURCES = \
170  test_fs_collection.c
171 test_fs_collection_LDADD = \
172   $(top_builddir)/src/fs/libgnunetfs.la  \
173   $(top_builddir)/src/util/libgnunetutil.la  
174
175 test_fs_directory_SOURCES = \
176  test_fs_directory.c
177 test_fs_directory_LDADD = \
178   $(top_builddir)/src/fs/libgnunetfs.la  \
179   $(top_builddir)/src/util/libgnunetutil.la  
180
181 test_fs_download_SOURCES = \
182  test_fs_download.c
183 test_fs_download_LDADD = \
184   $(top_builddir)/src/fs/libgnunetfs.la  \
185   $(top_builddir)/src/util/libgnunetutil.la  
186
187 test_fs_download_indexed_SOURCES = \
188  test_fs_download_indexed.c
189 test_fs_download_indexed_LDADD = \
190   $(top_builddir)/src/fs/libgnunetfs.la  \
191   $(top_builddir)/src/util/libgnunetutil.la  
192
193 test_fs_download_persistence_SOURCES = \
194  test_fs_download_persistence.c
195 test_fs_download_persistence_LDADD = \
196   $(top_builddir)/src/fs/libgnunetfs.la  \
197   $(top_builddir)/src/util/libgnunetutil.la  
198
199 test_fs_file_information_SOURCES = \
200  test_fs_file_information.c
201 test_fs_file_information_LDADD = \
202   $(top_builddir)/src/fs/libgnunetfs.la  \
203   $(top_builddir)/src/util/libgnunetutil.la  
204
205 test_fs_getopt_SOURCES = \
206  test_fs_getopt.c
207 test_fs_getopt_LDADD = \
208   $(top_builddir)/src/fs/libgnunetfs.la  \
209   $(top_builddir)/src/util/libgnunetutil.la  
210
211 test_fs_list_indexed_SOURCES = \
212  test_fs_list_indexed.c
213 test_fs_list_indexed_LDADD = \
214   $(top_builddir)/src/fs/libgnunetfs.la  \
215   $(top_builddir)/src/util/libgnunetutil.la  
216
217 test_fs_namespace_SOURCES = \
218  test_fs_namespace.c
219 test_fs_namespace_LDADD = \
220   $(top_builddir)/src/fs/libgnunetfs.la  \
221   $(top_builddir)/src/util/libgnunetutil.la  
222
223 test_fs_publish_SOURCES = \
224  test_fs_publish.c
225 test_fs_publish_LDADD = \
226   $(top_builddir)/src/fs/libgnunetfs.la  \
227   $(top_builddir)/src/util/libgnunetutil.la  
228
229 test_fs_publish_persistence_SOURCES = \
230  test_fs_publish_persistence.c
231 test_fs_publish_persistence_LDADD = \
232   $(top_builddir)/src/fs/libgnunetfs.la  \
233   $(top_builddir)/src/util/libgnunetutil.la  
234
235 test_fs_search_SOURCES = \
236  test_fs_search.c
237 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
238   $(top_builddir)/src/util/libgnunetutil.la
239
240 test_fs_search_persistence_SOURCES = \
241  test_fs_search_persistence.c
242 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la        \
243   $(top_builddir)/src/util/libgnunetutil.la
244
245 test_fs_start_stop_SOURCES = \
246  test_fs_start_stop.c
247 test_fs_start_stop_LDADD = \
248   $(top_builddir)/src/fs/libgnunetfs.la  \
249   $(top_builddir)/src/util/libgnunetutil.la  
250
251 test_fs_unindex_SOURCES = \
252  test_fs_unindex.c
253 test_fs_unindex_LDADD = \
254   $(top_builddir)/src/fs/libgnunetfs.la  \
255   $(top_builddir)/src/util/libgnunetutil.la  
256
257 test_fs_unindex_persistence_SOURCES = \
258  test_fs_unindex_persistence.c
259 test_fs_unindex_persistence_LDADD = \
260   $(top_builddir)/src/fs/libgnunetfs.la  \
261   $(top_builddir)/src/util/libgnunetutil.la  
262
263 test_fs_uri_SOURCES = \
264  test_fs_uri.c
265 test_fs_uri_LDADD = \
266   $(top_builddir)/src/fs/libgnunetfs.la  \
267   $(top_builddir)/src/util/libgnunetutil.la  
268
269 test_fs_test_lib_SOURCES = \
270  test_fs_test_lib.c
271 test_fs_test_lib_LDADD = \
272   $(top_builddir)/src/fs/libgnunetfstest.a \
273   $(top_builddir)/src/testing/libgnunettesting.la \
274   $(top_builddir)/src/fs/libgnunetfs.la  \
275   $(top_builddir)/src/util/libgnunetutil.la  
276
277 test_gnunet_service_fs_p2p_SOURCES = \
278  test_gnunet_service_fs_p2p.c
279 test_gnunet_service_fs_p2p_LDADD = \
280   $(top_builddir)/src/fs/libgnunetfstest.a \
281   $(top_builddir)/src/testing/libgnunettesting.la \
282   $(top_builddir)/src/fs/libgnunetfs.la  \
283   $(top_builddir)/src/util/libgnunetutil.la  
284
285 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
286
287 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
288         $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
289         chmod +x test_gnunet_fs_psd.py
290
291 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
292         $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
293         chmod +x test_gnunet_fs_rec.py
294
295 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
296         $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
297         chmod +x test_gnunet_fs_ns.py
298
299 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
300         $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
301         chmod +x test_gnunet_fs_idx.py
302
303
304 EXTRA_DIST = \
305   fs_test_lib_data.conf \
306   test_fs_data.conf \
307   test_fs_collection_data.conf \
308   test_fs_download_data.conf \
309   test_fs_file_information_data.conf \
310   fs_test_lib_data.conf \
311   test_fs_list_indexed_data.conf \
312   test_fs_namespace_data.conf \
313   test_fs_publish_data.conf \
314   test_fs_search_data.conf \
315   test_fs_unindex_data.conf \
316   test_fs_uri_data.conf \
317   test_gnunet_fs_idx_data.conf \
318   test_gnunet_fs_ns_data.conf \
319   test_gnunet_fs_psd_data.conf \
320   test_gnunet_fs_rec_data.conf \
321   test_gnunet_fs_rec_data.tgz \
322   test_gnunet_fs_psd.py.in \
323   test_gnunet_fs_rec.py.in \
324   test_gnunet_fs_ns.py.in \
325   test_gnunet_fs_idx.py.in
326
327 CLEANFILES = $(check_SCRIPTS)