diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-01 12:44:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-01 12:44:39 +0200 |
commit | a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb (patch) | |
tree | 6eec8a07a9a932d3c7b36f196ad01428e4f0ed63 /src/namestore/test_namestore_api_lookup_shadow_filter.c | |
parent | 8f2f5bc2ee8ebf9b059b7b7e3104f25c5c363458 (diff) | |
download | gnunet-a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb.tar.gz gnunet-a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb.zip |
more extensive namestore tests for the non-sqlite plugins, with bugfixes
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_shadow_filter.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_shadow_filter.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_lookup_shadow_filter.c b/src/namestore/test_namestore_api_lookup_shadow_filter.c index a22baa17b..5b8811a23 100644 --- a/src/namestore/test_namestore_api_lookup_shadow_filter.c +++ b/src/namestore/test_namestore_api_lookup_shadow_filter.c | |||
@@ -345,15 +345,23 @@ run (void *cls, | |||
345 | int | 345 | int |
346 | main (int argc, char *argv[]) | 346 | main (int argc, char *argv[]) |
347 | { | 347 | { |
348 | const char *plugin_name; | ||
349 | char *cfg_name; | ||
350 | |||
351 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
352 | GNUNET_asprintf (&cfg_name, | ||
353 | "test_namestore_api_%s.conf", | ||
354 | plugin_name); | ||
348 | res = 1; | 355 | res = 1; |
349 | if (0 != | 356 | if (0 != |
350 | GNUNET_TESTING_peer_run ("test-namestore-api", | 357 | GNUNET_TESTING_peer_run ("test-namestore-api-lookup-shadow-filter", |
351 | "test_namestore_api.conf", | 358 | cfg_name, |
352 | &run, | 359 | &run, |
353 | NULL)) | 360 | NULL)) |
354 | { | 361 | { |
355 | res = 1; | 362 | res = 1; |
356 | } | 363 | } |
364 | GNUNET_free (cfg_name); | ||
357 | if (NULL != directory) | 365 | if (NULL != directory) |
358 | { | 366 | { |
359 | GNUNET_DISK_directory_remove (directory); | 367 | GNUNET_DISK_directory_remove (directory); |