aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-21 20:07:01 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-21 20:14:51 +0100
commita1ea03e3ac15bf02d6772d3207059957cbfce0e8 (patch)
treecdba6a2a7719856de6d7dda51a47af8dce5da201 /src/namestore
parent961e98d2772d434e911d8f00690715958614676b (diff)
downloadgnunet-a1ea03e3ac15bf02d6772d3207059957cbfce0e8.tar.gz
gnunet-a1ea03e3ac15bf02d6772d3207059957cbfce0e8.zip
enforce sequential test order (#4860)
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/Makefile.am111
1 files changed, 65 insertions, 46 deletions
diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am
index a441f5d70..e9b0f179a 100644
--- a/src/namestore/Makefile.am
+++ b/src/namestore/Makefile.am
@@ -45,24 +45,43 @@ endif
45# testcases do not even build yet; thus: experimental! 45# testcases do not even build yet; thus: experimental!
46if HAVE_TESTING 46if HAVE_TESTING
47TESTING_TESTS = \ 47TESTING_TESTS = \
48 test_namestore_api_store \ 48 test_namestore_api_store.nc \
49 test_namestore_api_store_update \ 49 test_namestore_api_store_update.nc \
50 test_namestore_api_lookup_public \ 50 test_namestore_api_lookup_public.nc \
51 test_namestore_api_lookup_private \ 51 test_namestore_api_lookup_private.nc \
52 test_namestore_api_lookup_nick \ 52 test_namestore_api_lookup_nick.nc \
53 test_namestore_api_lookup_shadow \ 53 test_namestore_api_lookup_shadow.nc \
54 test_namestore_api_lookup_shadow_filter \ 54 test_namestore_api_lookup_shadow_filter.nc \
55 test_namestore_api_remove \ 55 test_namestore_api_remove.nc \
56 test_namestore_api_remove_not_existing_record \ 56 test_namestore_api_remove_not_existing_record.nc \
57 test_namestore_api_zone_iteration \ 57 test_namestore_api_zone_iteration.nc \
58 test_namestore_api_zone_iteration_nick \ 58 test_namestore_api_zone_iteration_nick.nc \
59 test_namestore_api_zone_iteration_specific_zone \ 59 test_namestore_api_zone_iteration_specific_zone.nc \
60 test_namestore_api_zone_iteration_stop \ 60 test_namestore_api_zone_iteration_stop.nc \
61 test_namestore_api_monitoring \ 61 test_namestore_api_monitoring.nc \
62 test_namestore_api_monitoring_existing 62 test_namestore_api_monitoring_existing.nc
63# test_namestore_api_zone_to_name 63# test_namestore_api_zone_to_name
64endif 64endif
65 65
66# Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
67# sequential execution order for them
68TEST_EXTENSIONS = .nc
69test_namestore_api_store.log: test_namestore_api_store_update.log
70test_namestore_api_store_update.log: test_namestore_api_lookup_public.log
71test_namestore_api_lookup_public.log: test_namestore_api_lookup_private.log
72test_namestore_api_lookup_private.log: test_namestore_api_lookup_nick.log
73test_namestore_api_lookup_nick.log: test_namestore_api_lookup_shadow.log
74test_namestore_api_lookup_shadow.log: test_namestore_api_lookup_shadow_filter.log
75test_namestore_api_lookup_shadow_filter.log: test_namestore_api_remove.log
76test_namestore_api_remove.log: test_namestore_api_remove_not_existing_record.log
77test_namestore_api_remove_not_existing_record.log: test_namestore_api_zone_iteration.log
78test_namestore_api_zone_iteration.log: test_namestore_api_zone_iteration_nick.log
79test_namestore_api_zone_iteration_nick.log: test_namestore_api_zone_iteration_specific_zone.log
80test_namestore_api_zone_iteration_specific_zone.log: test_namestore_api_zone_iteration_stop.log
81test_namestore_api_zone_iteration_stop.log: test_namestore_api_monitoring.log
82test_namestore_api_monitoring.log: test_namestore_api_monitoring_existing.log
83
84
66if HAVE_SQLITE 85if HAVE_SQLITE
67check_PROGRAMS = \ 86check_PROGRAMS = \
68 $(SQLITE_TESTS) \ 87 $(SQLITE_TESTS) \
@@ -202,79 +221,79 @@ libgnunet_plugin_rest_namestore_la_LDFLAGS = \
202 $(GN_PLUGIN_LDFLAGS) 221 $(GN_PLUGIN_LDFLAGS)
203 222
204 223
205test_namestore_api_store_SOURCES = \ 224test_namestore_api_store_nc_SOURCES = \
206 test_namestore_api_store.c 225 test_namestore_api_store.c
207test_namestore_api_store_LDADD = \ 226test_namestore_api_store_nc_LDADD = \
208 $(top_builddir)/src/testing/libgnunettesting.la \ 227 $(top_builddir)/src/testing/libgnunettesting.la \
209 $(top_builddir)/src/util/libgnunetutil.la \ 228 $(top_builddir)/src/util/libgnunetutil.la \
210 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 229 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
211 libgnunetnamestore.la 230 libgnunetnamestore.la
212 231
213test_namestore_api_store_update_SOURCES = \ 232test_namestore_api_store_update_nc_SOURCES = \
214 test_namestore_api_store_update.c 233 test_namestore_api_store_update.c
215test_namestore_api_store_update_LDADD = \ 234test_namestore_api_store_update_nc_LDADD = \
216 $(top_builddir)/src/testing/libgnunettesting.la \ 235 $(top_builddir)/src/testing/libgnunettesting.la \
217 $(top_builddir)/src/util/libgnunetutil.la \ 236 $(top_builddir)/src/util/libgnunetutil.la \
218 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 237 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
219 $(top_builddir)/src/namecache/libgnunetnamecache.la \ 238 $(top_builddir)/src/namecache/libgnunetnamecache.la \
220 libgnunetnamestore.la 239 libgnunetnamestore.la
221 240
222test_namestore_api_lookup_public_SOURCES = \ 241test_namestore_api_lookup_public_nc_SOURCES = \
223 test_namestore_api_lookup_public.c 242 test_namestore_api_lookup_public.c
224test_namestore_api_lookup_public_LDADD = \ 243test_namestore_api_lookup_public_nc_LDADD = \
225 $(top_builddir)/src/testing/libgnunettesting.la \ 244 $(top_builddir)/src/testing/libgnunettesting.la \
226 $(top_builddir)/src/util/libgnunetutil.la \ 245 $(top_builddir)/src/util/libgnunetutil.la \
227 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 246 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
228 $(top_builddir)/src/namecache/libgnunetnamecache.la \ 247 $(top_builddir)/src/namecache/libgnunetnamecache.la \
229 libgnunetnamestore.la 248 libgnunetnamestore.la
230 249
231test_namestore_api_lookup_nick_SOURCES = \ 250test_namestore_api_lookup_nick_nc_SOURCES = \
232 test_namestore_api_lookup_nick.c 251 test_namestore_api_lookup_nick.c
233test_namestore_api_lookup_nick_LDADD = \ 252test_namestore_api_lookup_nick_nc_LDADD = \
234 $(top_builddir)/src/testing/libgnunettesting.la \ 253 $(top_builddir)/src/testing/libgnunettesting.la \
235 $(top_builddir)/src/util/libgnunetutil.la \ 254 $(top_builddir)/src/util/libgnunetutil.la \
236 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 255 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
237 $(top_builddir)/src/namecache/libgnunetnamecache.la \ 256 $(top_builddir)/src/namecache/libgnunetnamecache.la \
238 libgnunetnamestore.la 257 libgnunetnamestore.la
239 258
240test_namestore_api_lookup_private_SOURCES = \ 259test_namestore_api_lookup_private_nc_SOURCES = \
241 test_namestore_api_lookup_private.c 260 test_namestore_api_lookup_private.c
242test_namestore_api_lookup_private_LDADD = \ 261test_namestore_api_lookup_private_nc_LDADD = \
243 $(top_builddir)/src/testing/libgnunettesting.la \ 262 $(top_builddir)/src/testing/libgnunettesting.la \
244 $(top_builddir)/src/util/libgnunetutil.la \ 263 $(top_builddir)/src/util/libgnunetutil.la \
245 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 264 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
246 $(top_builddir)/src/namecache/libgnunetnamecache.la \ 265 $(top_builddir)/src/namecache/libgnunetnamecache.la \
247 libgnunetnamestore.la 266 libgnunetnamestore.la
248 267
249test_namestore_api_lookup_shadow_SOURCES = \ 268test_namestore_api_lookup_shadow_nc_SOURCES = \
250 test_namestore_api_lookup_shadow.c 269 test_namestore_api_lookup_shadow.c
251test_namestore_api_lookup_shadow_LDADD = \ 270test_namestore_api_lookup_shadow_nc_LDADD = \
252 $(top_builddir)/src/testing/libgnunettesting.la \ 271 $(top_builddir)/src/testing/libgnunettesting.la \
253 $(top_builddir)/src/util/libgnunetutil.la \ 272 $(top_builddir)/src/util/libgnunetutil.la \
254 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 273 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
255 $(top_builddir)/src/namecache/libgnunetnamecache.la \ 274 $(top_builddir)/src/namecache/libgnunetnamecache.la \
256 libgnunetnamestore.la 275 libgnunetnamestore.la
257 276
258test_namestore_api_lookup_shadow_filter_SOURCES = \ 277test_namestore_api_lookup_shadow_filter_nc_SOURCES = \
259 test_namestore_api_lookup_shadow_filter.c 278 test_namestore_api_lookup_shadow_filter.c
260test_namestore_api_lookup_shadow_filter_LDADD = \ 279test_namestore_api_lookup_shadow_filter_nc_LDADD = \
261 $(top_builddir)/src/testing/libgnunettesting.la \ 280 $(top_builddir)/src/testing/libgnunettesting.la \
262 $(top_builddir)/src/util/libgnunetutil.la \ 281 $(top_builddir)/src/util/libgnunetutil.la \
263 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 282 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
264 $(top_builddir)/src/namecache/libgnunetnamecache.la \ 283 $(top_builddir)/src/namecache/libgnunetnamecache.la \
265 libgnunetnamestore.la 284 libgnunetnamestore.la
266 285
267test_namestore_api_remove_SOURCES = \ 286test_namestore_api_remove_nc_SOURCES = \
268 test_namestore_api_remove.c 287 test_namestore_api_remove.c
269test_namestore_api_remove_LDADD = \ 288test_namestore_api_remove_nc_LDADD = \
270 $(top_builddir)/src/testing/libgnunettesting.la \ 289 $(top_builddir)/src/testing/libgnunettesting.la \
271 $(top_builddir)/src/util/libgnunetutil.la \ 290 $(top_builddir)/src/util/libgnunetutil.la \
272 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 291 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
273 libgnunetnamestore.la 292 libgnunetnamestore.la
274 293
275test_namestore_api_remove_not_existing_record_SOURCES = \ 294test_namestore_api_remove_not_existing_record_nc_SOURCES = \
276 test_namestore_api_remove_not_existing_record.c 295 test_namestore_api_remove_not_existing_record.c
277test_namestore_api_remove_not_existing_record_LDADD = \ 296test_namestore_api_remove_not_existing_record_nc_LDADD = \
278 $(top_builddir)/src/testing/libgnunettesting.la \ 297 $(top_builddir)/src/testing/libgnunettesting.la \
279 $(top_builddir)/src/util/libgnunetutil.la \ 298 $(top_builddir)/src/util/libgnunetutil.la \
280 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 299 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
@@ -287,50 +306,50 @@ test_namestore_api_remove_not_existing_record_LDADD = \
287# $(top_builddir)/src/util/libgnunetutil.la \ 306# $(top_builddir)/src/util/libgnunetutil.la \
288# libgnunetnamestore.la 307# libgnunetnamestore.la
289 308
290test_namestore_api_monitoring_SOURCES = \ 309test_namestore_api_monitoring_nc_SOURCES = \
291 test_namestore_api_monitoring.c 310 test_namestore_api_monitoring.c
292test_namestore_api_monitoring_LDADD = \ 311test_namestore_api_monitoring_nc_LDADD = \
293 $(top_builddir)/src/testing/libgnunettesting.la \ 312 $(top_builddir)/src/testing/libgnunettesting.la \
294 libgnunetnamestore.la \ 313 libgnunetnamestore.la \
295 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 314 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
296 $(top_builddir)/src/util/libgnunetutil.la 315 $(top_builddir)/src/util/libgnunetutil.la
297 316
298test_namestore_api_monitoring_existing_SOURCES = \ 317test_namestore_api_monitoring_existing_nc_SOURCES = \
299 test_namestore_api_monitoring_existing.c 318 test_namestore_api_monitoring_existing.c
300test_namestore_api_monitoring_existing_LDADD = \ 319test_namestore_api_monitoring_existing_nc_LDADD = \
301 $(top_builddir)/src/testing/libgnunettesting.la \ 320 $(top_builddir)/src/testing/libgnunettesting.la \
302 libgnunetnamestore.la \ 321 libgnunetnamestore.la \
303 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 322 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
304 $(top_builddir)/src/util/libgnunetutil.la 323 $(top_builddir)/src/util/libgnunetutil.la
305 324
306test_namestore_api_zone_iteration_SOURCES = \ 325test_namestore_api_zone_iteration_nc_SOURCES = \
307 test_namestore_api_zone_iteration.c 326 test_namestore_api_zone_iteration.c
308test_namestore_api_zone_iteration_LDADD = \ 327test_namestore_api_zone_iteration_nc_LDADD = \
309 $(top_builddir)/src/testing/libgnunettesting.la \ 328 $(top_builddir)/src/testing/libgnunettesting.la \
310 $(top_builddir)/src/util/libgnunetutil.la \ 329 $(top_builddir)/src/util/libgnunetutil.la \
311 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 330 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
312 libgnunetnamestore.la 331 libgnunetnamestore.la
313 332
314test_namestore_api_zone_iteration_nick_SOURCES = \ 333test_namestore_api_zone_iteration_nick_nc_SOURCES = \
315 test_namestore_api_zone_iteration_nick.c 334 test_namestore_api_zone_iteration_nick.c
316test_namestore_api_zone_iteration_nick_LDADD = \ 335test_namestore_api_zone_iteration_nick_nc_LDADD = \
317 $(top_builddir)/src/testing/libgnunettesting.la \ 336 $(top_builddir)/src/testing/libgnunettesting.la \
318 $(top_builddir)/src/util/libgnunetutil.la \ 337 $(top_builddir)/src/util/libgnunetutil.la \
319 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 338 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
320 libgnunetnamestore.la 339 libgnunetnamestore.la
321 340
322 341
323test_namestore_api_zone_iteration_specific_zone_SOURCES = \ 342test_namestore_api_zone_iteration_specific_zone_nc_SOURCES = \
324 test_namestore_api_zone_iteration_specific_zone.c 343 test_namestore_api_zone_iteration_specific_zone.c
325test_namestore_api_zone_iteration_specific_zone_LDADD = \ 344test_namestore_api_zone_iteration_specific_zone_nc_LDADD = \
326 $(top_builddir)/src/testing/libgnunettesting.la \ 345 $(top_builddir)/src/testing/libgnunettesting.la \
327 $(top_builddir)/src/util/libgnunetutil.la \ 346 $(top_builddir)/src/util/libgnunetutil.la \
328 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 347 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
329 libgnunetnamestore.la 348 libgnunetnamestore.la
330 349
331test_namestore_api_zone_iteration_stop_SOURCES = \ 350test_namestore_api_zone_iteration_stop_nc_SOURCES = \
332 test_namestore_api_zone_iteration_stop.c 351 test_namestore_api_zone_iteration_stop.c
333test_namestore_api_zone_iteration_stop_LDADD = \ 352test_namestore_api_zone_iteration_stop_nc_LDADD = \
334 $(top_builddir)/src/testing/libgnunettesting.la \ 353 $(top_builddir)/src/testing/libgnunettesting.la \
335 $(top_builddir)/src/util/libgnunetutil.la \ 354 $(top_builddir)/src/util/libgnunetutil.la \
336 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 355 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
@@ -363,7 +382,7 @@ EXTRA_DIST = \
363 test_namestore_api.conf \ 382 test_namestore_api.conf \
364 test_plugin_namestore_sqlite.conf \ 383 test_plugin_namestore_sqlite.conf \
365 test_plugin_namestore_postgres.conf \ 384 test_plugin_namestore_postgres.conf \
366 test_plugin_namestore_flat.conf \ 385 test_plugin_namestore_flat.conf \
367 test_hostkey \ 386 test_hostkey \
368 zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \ 387 zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \
369 zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \ 388 zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \