From a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 1 May 2018 12:44:39 +0200 Subject: more extensive namestore tests for the non-sqlite plugins, with bugfixes --- src/namestore/test_namestore_api_lookup_private.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/namestore/test_namestore_api_lookup_private.c') diff --git a/src/namestore/test_namestore_api_lookup_private.c b/src/namestore/test_namestore_api_lookup_private.c index 57505c48b..7866749f1 100644 --- a/src/namestore/test_namestore_api_lookup_private.c +++ b/src/namestore/test_namestore_api_lookup_private.c @@ -230,15 +230,23 @@ run (void *cls, int main (int argc, char *argv[]) { + const char *plugin_name; + char *cfg_name; + + plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); + GNUNET_asprintf (&cfg_name, + "test_namestore_api_%s.conf", + plugin_name); res = 1; if (0 != - GNUNET_TESTING_peer_run ("test-namestore-api", - "test_namestore_api.conf", + GNUNET_TESTING_peer_run ("test-namestore-api-lookup-private", + cfg_name, &run, NULL)) { res = 1; } + GNUNET_free (cfg_name); if (NULL != directory) { GNUNET_DISK_directory_remove (directory); @@ -248,4 +256,4 @@ main (int argc, char *argv[]) } -/* end of test_namestore_api_store.c */ +/* end of test_namestore_api_lookup_private.c */ -- cgit v1.2.3