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_monitoring.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_monitoring.c')
-rw-r--r-- | src/namestore/test_namestore_api_monitoring.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_monitoring.c b/src/namestore/test_namestore_api_monitoring.c index 68a3e4fb8..f6d4fe226 100644 --- a/src/namestore/test_namestore_api_monitoring.c +++ b/src/namestore/test_namestore_api_monitoring.c | |||
@@ -374,15 +374,23 @@ run (void *cls, | |||
374 | int | 374 | int |
375 | main (int argc, char *argv[]) | 375 | main (int argc, char *argv[]) |
376 | { | 376 | { |
377 | const char *plugin_name; | ||
378 | char *cfg_name; | ||
379 | |||
380 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
381 | GNUNET_asprintf (&cfg_name, | ||
382 | "test_namestore_api_%s.conf", | ||
383 | plugin_name); | ||
377 | res = 1; | 384 | res = 1; |
378 | if (0 != | 385 | if (0 != |
379 | GNUNET_TESTING_peer_run ("test-namestore-api-monitoring", | 386 | GNUNET_TESTING_peer_run ("test-namestore-api-monitoring", |
380 | "test_namestore_api.conf", | 387 | cfg_name, |
381 | &run, | 388 | &run, |
382 | NULL)) | 389 | NULL)) |
383 | { | 390 | { |
384 | res = 1; | 391 | res = 1; |
385 | } | 392 | } |
393 | GNUNET_free (cfg_name); | ||
386 | if (NULL != directory) | 394 | if (NULL != directory) |
387 | { | 395 | { |
388 | GNUNET_DISK_directory_remove (directory); | 396 | GNUNET_DISK_directory_remove (directory); |