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_store_update.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_store_update.c')
-rw-r--r-- | src/namestore/test_namestore_api_store_update.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_store_update.c b/src/namestore/test_namestore_api_store_update.c index ed5a399bd..0a4551f21 100644 --- a/src/namestore/test_namestore_api_store_update.c +++ b/src/namestore/test_namestore_api_store_update.c | |||
@@ -274,15 +274,23 @@ run (void *cls, | |||
274 | int | 274 | int |
275 | main (int argc, char *argv[]) | 275 | main (int argc, char *argv[]) |
276 | { | 276 | { |
277 | const char *plugin_name; | ||
278 | char *cfg_name; | ||
279 | |||
280 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
281 | GNUNET_asprintf (&cfg_name, | ||
282 | "test_namestore_api_%s.conf", | ||
283 | plugin_name); | ||
277 | res = 1; | 284 | res = 1; |
278 | if (0 != | 285 | if (0 != |
279 | GNUNET_TESTING_peer_run ("test-namestore-api-store-update", | 286 | GNUNET_TESTING_peer_run ("test-namestore-api-store-update", |
280 | "test_namestore_api.conf", | 287 | cfg_name, |
281 | &run, | 288 | &run, |
282 | NULL)) | 289 | NULL)) |
283 | { | 290 | { |
284 | res = 1; | 291 | res = 1; |
285 | } | 292 | } |
293 | GNUNET_free (cfg_name); | ||
286 | if (NULL != directory) | 294 | if (NULL != directory) |
287 | { | 295 | { |
288 | GNUNET_DISK_directory_remove (directory); | 296 | GNUNET_DISK_directory_remove (directory); |