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_zone_iteration_nick.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_zone_iteration_nick.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration_nick.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_nick.c b/src/namestore/test_namestore_api_zone_iteration_nick.c index 395d1854f..a88646864 100644 --- a/src/namestore/test_namestore_api_zone_iteration_nick.c +++ b/src/namestore/test_namestore_api_zone_iteration_nick.c | |||
@@ -490,15 +490,23 @@ run (void *cls, | |||
490 | int | 490 | int |
491 | main (int argc, char *argv[]) | 491 | main (int argc, char *argv[]) |
492 | { | 492 | { |
493 | const char *plugin_name; | ||
494 | char *cfg_name; | ||
495 | |||
496 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
497 | GNUNET_asprintf (&cfg_name, | ||
498 | "test_namestore_api_%s.conf", | ||
499 | plugin_name); | ||
493 | res = 1; | 500 | res = 1; |
494 | if (0 != | 501 | if (0 != |
495 | GNUNET_TESTING_peer_run ("test-namestore-api-zone-iteration", | 502 | GNUNET_TESTING_peer_run ("test-namestore-api-zone-iteration-nick", |
496 | "test_namestore_api.conf", | 503 | cfg_name, |
497 | &run, | 504 | &run, |
498 | NULL)) | 505 | NULL)) |
499 | { | 506 | { |
500 | res = 1; | 507 | res = 1; |
501 | } | 508 | } |
509 | GNUNET_free (cfg_name); | ||
502 | if (NULL != directory) | 510 | if (NULL != directory) |
503 | { | 511 | { |
504 | GNUNET_DISK_directory_remove (directory); | 512 | GNUNET_DISK_directory_remove (directory); |