aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup_public.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-01 12:44:39 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-01 12:44:39 +0200
commita5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb (patch)
tree6eec8a07a9a932d3c7b36f196ad01428e4f0ed63 /src/namestore/test_namestore_api_lookup_public.c
parent8f2f5bc2ee8ebf9b059b7b7e3104f25c5c363458 (diff)
downloadgnunet-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_public.c')
-rw-r--r--src/namestore/test_namestore_api_lookup_public.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_lookup_public.c b/src/namestore/test_namestore_api_lookup_public.c
index 09d6b302d..02ca16042 100644
--- a/src/namestore/test_namestore_api_lookup_public.c
+++ b/src/namestore/test_namestore_api_lookup_public.c
@@ -237,15 +237,23 @@ run (void *cls,
237int 237int
238main (int argc, char *argv[]) 238main (int argc, char *argv[])
239{ 239{
240 const char *plugin_name;
241 char *cfg_name;
242
243 plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]);
244 GNUNET_asprintf (&cfg_name,
245 "test_namestore_api_%s.conf",
246 plugin_name);
240 res = 1; 247 res = 1;
241 if (0 != 248 if (0 !=
242 GNUNET_TESTING_peer_run ("test-namestore-api", 249 GNUNET_TESTING_peer_run ("test-namestore-api",
243 "test_namestore_api.conf", 250 cfg_name,
244 &run, 251 &run,
245 NULL)) 252 NULL))
246 { 253 {
247 res = 1; 254 res = 1;
248 } 255 }
256 GNUNET_free (cfg_name);
249 if (NULL != directory) 257 if (NULL != directory)
250 { 258 {
251 GNUNET_DISK_directory_remove (directory); 259 GNUNET_DISK_directory_remove (directory);