error handling
[oweals/gnunet.git] / src / namestore / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)
3
4 plugindir = $(libdir)/gnunet
5
6 pkgcfgdir= $(pkgdatadir)/config.d/
7
8 libexecdir= $(pkglibdir)/libexec/
9
10 pkgcfg_DATA = \
11    namestore.conf
12
13 if USE_COVERAGE
14   AM_CFLAGS = --coverage -O0
15   XLIBS = -lgcov
16 endif
17
18 HEAP_PLUGIN = libgnunet_plugin_namestore_flat.la
19 if HAVE_TESTING
20 HEAP_TESTS = test_plugin_namestore_flat \
21  test_namestore_api_store_flat \
22  test_namestore_api_store_update_flat \
23  test_namestore_api_remove_flat \
24  test_namestore_api_zone_iteration_flat \
25  test_namestore_api_lookup_nick_flat \
26  test_namestore_api_monitoring_flat \
27  test_namestore_api_lookup_public_flat \
28  test_namestore_api_lookup_private_flat \
29  test_namestore_api_lookup_shadow_flat \
30  test_namestore_api_lookup_shadow_filter_flat \
31  test_namestore_api_remove_not_existing_record_flat \
32  test_namestore_api_zone_iteration_nick_flat \
33  test_namestore_api_zone_iteration_specific_zone_flat \
34  test_namestore_api_zone_iteration_stop_flat \
35  test_namestore_api_monitoring_existing_flat \
36  test_namestore_api_zone_to_name_flat \
37  perf_namestore_api_zone_iteration_flat
38 endif
39
40 if HAVE_SQLITE
41 SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
42 if HAVE_TESTING
43 SQLITE_TESTS = test_plugin_namestore_sqlite \
44  test_namestore_api_store_sqlite \
45  test_namestore_api_store_update_sqlite \
46  test_namestore_api_zone_iteration_sqlite \
47  test_namestore_api_remove_sqlite \
48  test_namestore_api_lookup_nick_sqlite \
49  test_namestore_api_monitoring_sqlite \
50  test_namestore_api_lookup_public_sqlite \
51  test_namestore_api_lookup_private_sqlite \
52  test_namestore_api_lookup_shadow_sqlite \
53  test_namestore_api_lookup_shadow_filter_sqlite \
54  test_namestore_api_remove_not_existing_record_sqlite \
55  test_namestore_api_zone_iteration_nick_sqlite \
56  test_namestore_api_zone_iteration_specific_zone_sqlite \
57  test_namestore_api_zone_iteration_stop_sqlite \
58  test_namestore_api_monitoring_existing_sqlite \
59  test_namestore_api_zone_to_name_sqlite \
60  perf_namestore_api_zone_iteration_sqlite
61 endif
62 endif
63
64 if HAVE_POSTGRESQL
65 POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la
66 if HAVE_TESTING
67 POSTGRES_TESTS = test_plugin_namestore_postgres \
68  test_namestore_api_store_postgres \
69  test_namestore_api_store_update_postgres \
70  test_namestore_api_remove_postgres \
71  test_namestore_api_zone_iteration_postgres \
72  test_namestore_api_lookup_nick_postgres \
73  test_namestore_api_monitoring_postgres \
74  test_namestore_api_lookup_public_postgres \
75  test_namestore_api_lookup_private_postgres \
76  test_namestore_api_lookup_shadow_postgres \
77  test_namestore_api_lookup_shadow_filter_postgres \
78  test_namestore_api_remove_not_existing_record_postgres \
79  test_namestore_api_zone_iteration_nick_postgres \
80  test_namestore_api_zone_iteration_specific_zone_postgres \
81  test_namestore_api_zone_iteration_stop_postgres \
82  test_namestore_api_monitoring_existing_postgres \
83  test_namestore_api_zone_to_name_postgres \
84  perf_namestore_api_zone_iteration_postgres
85 endif
86 endif
87
88 if HAVE_SQLITE
89 check_PROGRAMS = \
90  $(SQLITE_TESTS) \
91  $(POSTGRES_TESTS) \
92  $(HEAP_TESTS)
93 endif
94
95 if ENABLE_TEST_RUN
96 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
97 TESTS = \
98   $(check_PROGRAMS) \
99   $(check_SCRIPTS)
100 endif
101
102 if HAVE_MHD
103 if HAVE_JSON
104 REST_PLUGIN = libgnunet_plugin_rest_namestore.la
105 endif
106 endif
107
108 lib_LTLIBRARIES = \
109   libgnunetnamestore.la
110
111
112 libexec_PROGRAMS = \
113  gnunet-service-namestore
114
115 bin_PROGRAMS = \
116  gnunet-namestore \
117  gnunet-zoneimport
118
119 if HAVE_MHD
120 libexec_PROGRAMS += \
121  gnunet-namestore-fcfsd
122 endif
123
124
125 plugin_LTLIBRARIES = \
126   $(SQLITE_PLUGIN) \
127   $(POSTGRES_PLUGIN) \
128   $(HEAP_PLUGIN) \
129   $(REST_PLUGIN)
130
131
132 libgnunet_plugin_rest_namestore_la_SOURCES = \
133   plugin_rest_namestore.c
134 libgnunet_plugin_rest_namestore_la_LIBADD = \
135   libgnunetnamestore.la \
136   $(top_builddir)/src/rest/libgnunetrest.la \
137   $(top_builddir)/src/identity/libgnunetidentity.la \
138   $(top_builddir)/src/json/libgnunetjson.la \
139   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
140   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
141   $(LTLIBINTL) -ljansson $(MHD_LIBS)
142 libgnunet_plugin_rest_namestore_la_LDFLAGS = \
143  $(GN_PLUGIN_LDFLAGS)
144 libgnunet_plugin_rest_namestore_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
145
146
147 libgnunetnamestore_la_SOURCES = \
148   namestore_api.c \
149   namestore_api_monitor.c \
150   namestore.h
151 libgnunetnamestore_la_LIBADD = \
152   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
153   $(top_builddir)/src/statistics/libgnunetstatistics.la \
154   $(top_builddir)/src/util/libgnunetutil.la \
155   $(GN_LIBINTL)
156 libgnunetnamestore_la_LDFLAGS = \
157   $(GN_LIB_LDFLAGS)  \
158   -version-info 0:1:0
159
160
161
162 gnunet_zoneimport_SOURCES = \
163  gnunet-zoneimport.c
164 gnunet_zoneimport_LDADD = \
165   libgnunetnamestore.la \
166   $(top_builddir)/src/statistics/libgnunetstatistics.la \
167   $(top_builddir)/src/identity/libgnunetidentity.la \
168   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
169   $(top_builddir)/src/util/libgnunetutil.la \
170   $(GN_LIBINTL)
171
172 gnunet_namestore_SOURCES = \
173  gnunet-namestore.c
174 gnunet_namestore_LDADD = \
175   $(top_builddir)/src/identity/libgnunetidentity.la \
176   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
177   $(top_builddir)/src/util/libgnunetutil.la \
178   libgnunetnamestore.la \
179   $(GN_LIBINTL)
180
181
182 gnunet_namestore_fcfsd_SOURCES = \
183  gnunet-namestore-fcfsd.c
184 gnunet_namestore_fcfsd_LDADD = $(MHD_LIBS) \
185   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
186   $(top_builddir)/src/identity/libgnunetidentity.la \
187   libgnunetnamestore.la \
188   $(top_builddir)/src/util/libgnunetutil.la \
189   $(GN_LIBINTL)
190 gnunet_namestore_fcfsd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
191
192
193 gnunet_service_namestore_SOURCES = \
194  gnunet-service-namestore.c
195
196 gnunet_service_namestore_LDADD = \
197   $(top_builddir)/src/namecache/libgnunetnamecache.la \
198   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
199   $(top_builddir)/src/statistics/libgnunetstatistics.la \
200   $(top_builddir)/src/util/libgnunetutil.la \
201   libgnunetnamestore.la \
202   $(GN_LIBINTL)
203
204
205
206 libgnunet_plugin_namestore_flat_la_SOURCES = \
207   plugin_namestore_flat.c
208 libgnunet_plugin_namestore_flat_la_LIBADD = \
209   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
210   $(top_builddir)/src/statistics/libgnunetstatistics.la \
211   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
212   $(LTLIBINTL)
213 libgnunet_plugin_namestore_flat_la_LDFLAGS = \
214  $(GN_PLUGIN_LDFLAGS)
215
216
217 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
218   plugin_namestore_sqlite.c
219 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
220   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
221   $(top_builddir)/src/sq/libgnunetsq.la \
222   $(top_builddir)/src/statistics/libgnunetstatistics.la \
223   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
224   $(LTLIBINTL)
225 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
226  $(GN_PLUGIN_LDFLAGS)
227
228 libgnunet_plugin_namestore_postgres_la_SOURCES = \
229   plugin_namestore_postgres.c
230 libgnunet_plugin_namestore_postgres_la_LIBADD = \
231   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
232   $(top_builddir)/src/pq/libgnunetpq.la  \
233   $(top_builddir)/src/statistics/libgnunetstatistics.la \
234   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
235   $(LTLIBINTL)
236 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
237  $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
238
239 test_namestore_api_store_flat_SOURCES = \
240  test_namestore_api_store.c
241 test_namestore_api_store_flat_LDADD = \
242   $(top_builddir)/src/testing/libgnunettesting.la \
243   $(top_builddir)/src/util/libgnunetutil.la \
244   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
245   libgnunetnamestore.la
246
247 test_namestore_api_store_sqlite_SOURCES = \
248  test_namestore_api_store.c
249 test_namestore_api_store_sqlite_LDADD = \
250   $(top_builddir)/src/testing/libgnunettesting.la \
251   $(top_builddir)/src/util/libgnunetutil.la \
252   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
253   libgnunetnamestore.la
254
255 test_namestore_api_store_postgres_SOURCES = \
256  test_namestore_api_store.c
257 test_namestore_api_store_postgres_LDADD = \
258   $(top_builddir)/src/testing/libgnunettesting.la \
259   $(top_builddir)/src/util/libgnunetutil.la \
260   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
261   libgnunetnamestore.la
262
263 test_namestore_api_store_update_flat_SOURCES = \
264  test_namestore_api_store_update.c
265 test_namestore_api_store_update_flat_LDADD = \
266   $(top_builddir)/src/testing/libgnunettesting.la \
267   $(top_builddir)/src/util/libgnunetutil.la \
268   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
269   $(top_builddir)/src/namecache/libgnunetnamecache.la \
270   libgnunetnamestore.la
271
272 test_namestore_api_store_update_sqlite_SOURCES = \
273  test_namestore_api_store_update.c
274 test_namestore_api_store_update_sqlite_LDADD = \
275   $(top_builddir)/src/testing/libgnunettesting.la \
276   $(top_builddir)/src/util/libgnunetutil.la \
277   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
278   $(top_builddir)/src/namecache/libgnunetnamecache.la \
279   libgnunetnamestore.la
280
281 test_namestore_api_store_update_postgres_SOURCES = \
282  test_namestore_api_store_update.c
283 test_namestore_api_store_update_postgres_LDADD = \
284   $(top_builddir)/src/testing/libgnunettesting.la \
285   $(top_builddir)/src/util/libgnunetutil.la \
286   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
287   $(top_builddir)/src/namecache/libgnunetnamecache.la \
288   libgnunetnamestore.la
289
290 test_namestore_api_lookup_public_flat_SOURCES = \
291  test_namestore_api_lookup_public.c
292 test_namestore_api_lookup_public_flat_LDADD = \
293   $(top_builddir)/src/testing/libgnunettesting.la \
294   $(top_builddir)/src/util/libgnunetutil.la \
295   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
296   $(top_builddir)/src/namecache/libgnunetnamecache.la \
297   libgnunetnamestore.la
298
299 test_namestore_api_lookup_public_sqlite_SOURCES = \
300  test_namestore_api_lookup_public.c
301 test_namestore_api_lookup_public_sqlite_LDADD = \
302   $(top_builddir)/src/testing/libgnunettesting.la \
303   $(top_builddir)/src/util/libgnunetutil.la \
304   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
305   $(top_builddir)/src/namecache/libgnunetnamecache.la \
306   libgnunetnamestore.la
307
308 test_namestore_api_lookup_public_postgres_SOURCES = \
309  test_namestore_api_lookup_public.c
310 test_namestore_api_lookup_public_postgres_LDADD = \
311   $(top_builddir)/src/testing/libgnunettesting.la \
312   $(top_builddir)/src/util/libgnunetutil.la \
313   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
314   $(top_builddir)/src/namecache/libgnunetnamecache.la \
315   libgnunetnamestore.la
316
317 test_namestore_api_lookup_nick_sqlite_SOURCES = \
318  test_namestore_api_lookup_nick.c
319 test_namestore_api_lookup_nick_sqlite_LDADD = \
320   $(top_builddir)/src/testing/libgnunettesting.la \
321   $(top_builddir)/src/util/libgnunetutil.la \
322   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
323   $(top_builddir)/src/namecache/libgnunetnamecache.la \
324   libgnunetnamestore.la
325
326 test_namestore_api_lookup_nick_postgres_SOURCES = \
327  test_namestore_api_lookup_nick.c
328 test_namestore_api_lookup_nick_postgres_LDADD = \
329   $(top_builddir)/src/testing/libgnunettesting.la \
330   $(top_builddir)/src/util/libgnunetutil.la \
331   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
332   $(top_builddir)/src/namecache/libgnunetnamecache.la \
333   libgnunetnamestore.la
334
335 test_namestore_api_lookup_nick_flat_SOURCES = \
336  test_namestore_api_lookup_nick.c
337 test_namestore_api_lookup_nick_flat_LDADD = \
338   $(top_builddir)/src/testing/libgnunettesting.la \
339   $(top_builddir)/src/util/libgnunetutil.la \
340   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
341   $(top_builddir)/src/namecache/libgnunetnamecache.la \
342   libgnunetnamestore.la
343
344 test_namestore_api_lookup_private_flat_SOURCES = \
345  test_namestore_api_lookup_private.c
346 test_namestore_api_lookup_private_flat_LDADD = \
347   $(top_builddir)/src/testing/libgnunettesting.la \
348   $(top_builddir)/src/util/libgnunetutil.la \
349   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
350   $(top_builddir)/src/namecache/libgnunetnamecache.la \
351   libgnunetnamestore.la
352
353 test_namestore_api_lookup_private_sqlite_SOURCES = \
354  test_namestore_api_lookup_private.c
355 test_namestore_api_lookup_private_sqlite_LDADD = \
356   $(top_builddir)/src/testing/libgnunettesting.la \
357   $(top_builddir)/src/util/libgnunetutil.la \
358   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
359   $(top_builddir)/src/namecache/libgnunetnamecache.la \
360   libgnunetnamestore.la
361
362 test_namestore_api_lookup_private_postgres_SOURCES = \
363  test_namestore_api_lookup_private.c
364 test_namestore_api_lookup_private_postgres_LDADD = \
365   $(top_builddir)/src/testing/libgnunettesting.la \
366   $(top_builddir)/src/util/libgnunetutil.la \
367   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
368   $(top_builddir)/src/namecache/libgnunetnamecache.la \
369   libgnunetnamestore.la
370
371 test_namestore_api_lookup_shadow_flat_SOURCES = \
372  test_namestore_api_lookup_shadow.c
373 test_namestore_api_lookup_shadow_flat_LDADD = \
374   $(top_builddir)/src/testing/libgnunettesting.la \
375   $(top_builddir)/src/util/libgnunetutil.la \
376   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
377   $(top_builddir)/src/namecache/libgnunetnamecache.la \
378   libgnunetnamestore.la
379
380 test_namestore_api_lookup_shadow_sqlite_SOURCES = \
381  test_namestore_api_lookup_shadow.c
382 test_namestore_api_lookup_shadow_sqlite_LDADD = \
383   $(top_builddir)/src/testing/libgnunettesting.la \
384   $(top_builddir)/src/util/libgnunetutil.la \
385   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
386   $(top_builddir)/src/namecache/libgnunetnamecache.la \
387   libgnunetnamestore.la
388
389 test_namestore_api_lookup_shadow_postgres_SOURCES = \
390  test_namestore_api_lookup_shadow.c
391 test_namestore_api_lookup_shadow_postgres_LDADD = \
392   $(top_builddir)/src/testing/libgnunettesting.la \
393   $(top_builddir)/src/util/libgnunetutil.la \
394   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
395   $(top_builddir)/src/namecache/libgnunetnamecache.la \
396   libgnunetnamestore.la
397
398 test_namestore_api_lookup_shadow_filter_flat_SOURCES = \
399  test_namestore_api_lookup_shadow_filter.c
400 test_namestore_api_lookup_shadow_filter_flat_LDADD = \
401   $(top_builddir)/src/testing/libgnunettesting.la \
402   $(top_builddir)/src/util/libgnunetutil.la \
403   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
404   $(top_builddir)/src/namecache/libgnunetnamecache.la \
405   libgnunetnamestore.la
406
407 test_namestore_api_lookup_shadow_filter_sqlite_SOURCES = \
408  test_namestore_api_lookup_shadow_filter.c
409 test_namestore_api_lookup_shadow_filter_sqlite_LDADD = \
410   $(top_builddir)/src/testing/libgnunettesting.la \
411   $(top_builddir)/src/util/libgnunetutil.la \
412   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
413   $(top_builddir)/src/namecache/libgnunetnamecache.la \
414   libgnunetnamestore.la
415 test_namestore_api_lookup_shadow_filter_postgres_SOURCES = \
416  test_namestore_api_lookup_shadow_filter.c
417 test_namestore_api_lookup_shadow_filter_postgres_LDADD = \
418   $(top_builddir)/src/testing/libgnunettesting.la \
419   $(top_builddir)/src/util/libgnunetutil.la \
420   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
421   $(top_builddir)/src/namecache/libgnunetnamecache.la \
422   libgnunetnamestore.la
423
424 test_namestore_api_remove_sqlite_SOURCES = \
425  test_namestore_api_remove.c
426 test_namestore_api_remove_sqlite_LDADD = \
427   $(top_builddir)/src/testing/libgnunettesting.la \
428   $(top_builddir)/src/util/libgnunetutil.la \
429   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
430   libgnunetnamestore.la
431
432 test_namestore_api_remove_postgres_SOURCES = \
433  test_namestore_api_remove.c
434 test_namestore_api_remove_postgres_LDADD = \
435   $(top_builddir)/src/testing/libgnunettesting.la \
436   $(top_builddir)/src/util/libgnunetutil.la \
437   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
438   libgnunetnamestore.la
439
440 test_namestore_api_remove_flat_SOURCES = \
441  test_namestore_api_remove.c
442 test_namestore_api_remove_flat_LDADD = \
443   $(top_builddir)/src/testing/libgnunettesting.la \
444   $(top_builddir)/src/util/libgnunetutil.la \
445   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
446   libgnunetnamestore.la
447
448 test_namestore_api_remove_not_existing_record_flat_SOURCES = \
449  test_namestore_api_remove_not_existing_record.c
450 test_namestore_api_remove_not_existing_record_flat_LDADD = \
451   $(top_builddir)/src/testing/libgnunettesting.la \
452   $(top_builddir)/src/util/libgnunetutil.la \
453   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
454   libgnunetnamestore.la
455
456 test_namestore_api_remove_not_existing_record_sqlite_SOURCES = \
457  test_namestore_api_remove_not_existing_record.c
458 test_namestore_api_remove_not_existing_record_sqlite_LDADD = \
459   $(top_builddir)/src/testing/libgnunettesting.la \
460   $(top_builddir)/src/util/libgnunetutil.la \
461   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
462   libgnunetnamestore.la
463
464 test_namestore_api_remove_not_existing_record_postgres_SOURCES = \
465  test_namestore_api_remove_not_existing_record.c
466 test_namestore_api_remove_not_existing_record_postgres_LDADD = \
467   $(top_builddir)/src/testing/libgnunettesting.la \
468   $(top_builddir)/src/util/libgnunetutil.la \
469   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
470   libgnunetnamestore.la
471
472 test_namestore_api_zone_to_name_flat_SOURCES = \
473  test_namestore_api_zone_to_name.c
474 test_namestore_api_zone_to_name_flat_LDADD = \
475   $(top_builddir)/src/testing/libgnunettesting.la \
476   $(top_builddir)/src/util/libgnunetutil.la \
477   libgnunetnamestore.la
478
479 test_namestore_api_zone_to_name_sqlite_SOURCES = \
480  test_namestore_api_zone_to_name.c
481 test_namestore_api_zone_to_name_sqlite_LDADD = \
482   $(top_builddir)/src/testing/libgnunettesting.la \
483   $(top_builddir)/src/util/libgnunetutil.la \
484   libgnunetnamestore.la
485
486 test_namestore_api_zone_to_name_postgres_SOURCES = \
487  test_namestore_api_zone_to_name.c
488 test_namestore_api_zone_to_name_postgres_LDADD = \
489   $(top_builddir)/src/testing/libgnunettesting.la \
490   $(top_builddir)/src/util/libgnunetutil.la \
491   libgnunetnamestore.la
492
493 test_namestore_api_monitoring_flat_SOURCES = \
494  test_namestore_api_monitoring.c
495 test_namestore_api_monitoring_flat_LDADD = \
496   $(top_builddir)/src/testing/libgnunettesting.la \
497   libgnunetnamestore.la \
498   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
499   $(top_builddir)/src/util/libgnunetutil.la
500
501 test_namestore_api_monitoring_sqlite_SOURCES = \
502  test_namestore_api_monitoring.c
503 test_namestore_api_monitoring_sqlite_LDADD = \
504   $(top_builddir)/src/testing/libgnunettesting.la \
505   libgnunetnamestore.la \
506   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
507   $(top_builddir)/src/util/libgnunetutil.la
508
509 test_namestore_api_monitoring_postgres_SOURCES = \
510  test_namestore_api_monitoring.c
511 test_namestore_api_monitoring_postgres_LDADD = \
512   $(top_builddir)/src/testing/libgnunettesting.la \
513   libgnunetnamestore.la \
514   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
515   $(top_builddir)/src/util/libgnunetutil.la
516
517 test_namestore_api_monitoring_existing_flat_SOURCES = \
518  test_namestore_api_monitoring_existing.c
519 test_namestore_api_monitoring_existing_flat_LDADD = \
520   $(top_builddir)/src/testing/libgnunettesting.la \
521   libgnunetnamestore.la \
522   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
523   $(top_builddir)/src/util/libgnunetutil.la
524
525 test_namestore_api_monitoring_existing_sqlite_SOURCES = \
526  test_namestore_api_monitoring_existing.c
527 test_namestore_api_monitoring_existing_sqlite_LDADD = \
528   $(top_builddir)/src/testing/libgnunettesting.la \
529   libgnunetnamestore.la \
530   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
531   $(top_builddir)/src/util/libgnunetutil.la
532
533 test_namestore_api_monitoring_existing_postgres_SOURCES = \
534  test_namestore_api_monitoring_existing.c
535 test_namestore_api_monitoring_existing_postgres_LDADD = \
536   $(top_builddir)/src/testing/libgnunettesting.la \
537   libgnunetnamestore.la \
538   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
539   $(top_builddir)/src/util/libgnunetutil.la
540
541 test_namestore_api_zone_iteration_flat_SOURCES = \
542  test_namestore_api_zone_iteration.c
543 test_namestore_api_zone_iteration_flat_LDADD = \
544   $(top_builddir)/src/testing/libgnunettesting.la \
545   $(top_builddir)/src/util/libgnunetutil.la \
546   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
547   libgnunetnamestore.la
548
549 test_namestore_api_zone_iteration_sqlite_SOURCES = \
550  test_namestore_api_zone_iteration.c
551 test_namestore_api_zone_iteration_sqlite_LDADD = \
552   $(top_builddir)/src/testing/libgnunettesting.la \
553   $(top_builddir)/src/util/libgnunetutil.la \
554   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
555   libgnunetnamestore.la
556
557 test_namestore_api_zone_iteration_postgres_SOURCES = \
558  test_namestore_api_zone_iteration.c
559 test_namestore_api_zone_iteration_postgres_LDADD = \
560   $(top_builddir)/src/testing/libgnunettesting.la \
561   $(top_builddir)/src/util/libgnunetutil.la \
562   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
563   libgnunetnamestore.la
564
565 perf_namestore_api_zone_iteration_postgres_SOURCES = \
566  perf_namestore_api_zone_iteration.c
567 perf_namestore_api_zone_iteration_postgres_LDADD = \
568   $(top_builddir)/src/testing/libgnunettesting.la \
569   $(top_builddir)/src/util/libgnunetutil.la \
570   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
571   libgnunetnamestore.la
572
573 perf_namestore_api_zone_iteration_sqlite_SOURCES = \
574  perf_namestore_api_zone_iteration.c
575 perf_namestore_api_zone_iteration_sqlite_LDADD = \
576   $(top_builddir)/src/testing/libgnunettesting.la \
577   $(top_builddir)/src/util/libgnunetutil.la \
578   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
579   libgnunetnamestore.la
580
581 perf_namestore_api_zone_iteration_flat_SOURCES = \
582  perf_namestore_api_zone_iteration.c
583 perf_namestore_api_zone_iteration_flat_LDADD = \
584   $(top_builddir)/src/testing/libgnunettesting.la \
585   $(top_builddir)/src/util/libgnunetutil.la \
586   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
587   libgnunetnamestore.la
588
589 test_namestore_api_zone_iteration_nick_flat_SOURCES = \
590  test_namestore_api_zone_iteration_nick.c
591 test_namestore_api_zone_iteration_nick_flat_LDADD = \
592   $(top_builddir)/src/testing/libgnunettesting.la \
593   $(top_builddir)/src/util/libgnunetutil.la \
594   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
595   libgnunetnamestore.la
596
597 test_namestore_api_zone_iteration_nick_sqlite_SOURCES = \
598  test_namestore_api_zone_iteration_nick.c
599 test_namestore_api_zone_iteration_nick_sqlite_LDADD = \
600   $(top_builddir)/src/testing/libgnunettesting.la \
601   $(top_builddir)/src/util/libgnunetutil.la \
602   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
603   libgnunetnamestore.la
604
605 test_namestore_api_zone_iteration_nick_postgres_SOURCES = \
606  test_namestore_api_zone_iteration_nick.c
607 test_namestore_api_zone_iteration_nick_postgres_LDADD = \
608   $(top_builddir)/src/testing/libgnunettesting.la \
609   $(top_builddir)/src/util/libgnunetutil.la \
610   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
611   libgnunetnamestore.la
612
613 test_namestore_api_zone_iteration_specific_zone_flat_SOURCES = \
614  test_namestore_api_zone_iteration_specific_zone.c
615 test_namestore_api_zone_iteration_specific_zone_flat_LDADD = \
616   $(top_builddir)/src/testing/libgnunettesting.la \
617   $(top_builddir)/src/util/libgnunetutil.la \
618   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
619   libgnunetnamestore.la
620
621 test_namestore_api_zone_iteration_specific_zone_sqlite_SOURCES = \
622  test_namestore_api_zone_iteration_specific_zone.c
623 test_namestore_api_zone_iteration_specific_zone_sqlite_LDADD = \
624   $(top_builddir)/src/testing/libgnunettesting.la \
625   $(top_builddir)/src/util/libgnunetutil.la \
626   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
627   libgnunetnamestore.la
628
629 test_namestore_api_zone_iteration_specific_zone_postgres_SOURCES = \
630  test_namestore_api_zone_iteration_specific_zone.c
631 test_namestore_api_zone_iteration_specific_zone_postgres_LDADD = \
632   $(top_builddir)/src/testing/libgnunettesting.la \
633   $(top_builddir)/src/util/libgnunetutil.la \
634   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
635   libgnunetnamestore.la
636
637 test_namestore_api_zone_iteration_stop_flat_SOURCES = \
638  test_namestore_api_zone_iteration_stop.c
639 test_namestore_api_zone_iteration_stop_flat_LDADD = \
640   $(top_builddir)/src/testing/libgnunettesting.la \
641   $(top_builddir)/src/util/libgnunetutil.la \
642   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
643   libgnunetnamestore.la
644
645 test_namestore_api_zone_iteration_stop_sqlite_SOURCES = \
646  test_namestore_api_zone_iteration_stop.c
647 test_namestore_api_zone_iteration_stop_sqlite_LDADD = \
648   $(top_builddir)/src/testing/libgnunettesting.la \
649   $(top_builddir)/src/util/libgnunetutil.la \
650   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
651   libgnunetnamestore.la
652
653 test_namestore_api_zone_iteration_stop_postgres_SOURCES = \
654  test_namestore_api_zone_iteration_stop.c
655 test_namestore_api_zone_iteration_stop_postgres_LDADD = \
656   $(top_builddir)/src/testing/libgnunettesting.la \
657   $(top_builddir)/src/util/libgnunetutil.la \
658   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
659   libgnunetnamestore.la
660
661 test_plugin_namestore_flat_SOURCES = \
662  test_plugin_namestore.c
663 test_plugin_namestore_flat_LDADD = \
664  $(top_builddir)/src/testing/libgnunettesting.la \
665  $(top_builddir)/src/util/libgnunetutil.la
666
667 test_plugin_namestore_sqlite_SOURCES = \
668  test_plugin_namestore.c
669 test_plugin_namestore_sqlite_LDADD = \
670  $(top_builddir)/src/testing/libgnunettesting.la \
671  $(top_builddir)/src/util/libgnunetutil.la
672
673 test_plugin_namestore_postgres_SOURCES = \
674  test_plugin_namestore.c
675 test_plugin_namestore_postgres_LDADD = \
676  $(top_builddir)/src/testing/libgnunettesting.la \
677  $(top_builddir)/src/util/libgnunetutil.la
678
679 check_SCRIPTS = \
680   test_namestore_put.sh \
681   test_namestore_lookup.sh \
682   test_namestore_delete.sh
683
684 if HAVE_MHD
685 if HAVE_JSON
686 check_SCRIPTS += \
687   test_plugin_rest_namestore.sh
688 endif
689 endif
690
691 EXTRA_DIST = \
692   test_common.c \
693   test_namestore_api.conf \
694   test_namestore_api_postgres.conf \
695   test_namestore_api_sqlite.conf \
696   test_namestore_api_flat.conf \
697   perf_namestore_api_postgres.conf \
698   perf_namestore_api_sqlite.conf \
699   perf_namestore_api_flat.conf \
700   test_plugin_namestore_sqlite.conf \
701   test_plugin_namestore_postgres.conf \
702   test_plugin_namestore_flat.conf \
703   test_hostkey \
704   zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \
705   zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \
706   zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
707   zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey \
708   $(check_SCRIPTS)