aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_store.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_store.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_store.c')
-rw-r--r--src/namestore/test_namestore_api_store.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_store.c b/src/namestore/test_namestore_api_store.c
index d80676770..4e51678a1 100644
--- a/src/namestore/test_namestore_api_store.c
+++ b/src/namestore/test_namestore_api_store.c
@@ -159,15 +159,23 @@ run (void *cls,
159int 159int
160main (int argc, char *argv[]) 160main (int argc, char *argv[])
161{ 161{
162 const char *plugin_name;
163 char *cfg_name;
164
165 plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]);
166 GNUNET_asprintf (&cfg_name,
167 "test_namestore_api_%s.conf",
168 plugin_name);
162 res = 1; 169 res = 1;
163 if (0 != 170 if (0 !=
164 GNUNET_TESTING_peer_run ("test-namestore-api", 171 GNUNET_TESTING_peer_run ("test-namestore-api",
165 "test_namestore_api.conf", 172 cfg_name,
166 &run, 173 &run,
167 NULL)) 174 NULL))
168 { 175 {
169 res = 1; 176 res = 1;
170 } 177 }
178 GNUNET_free (cfg_name);
171 if (NULL != directory) 179 if (NULL != directory)
172 { 180 {
173 GNUNET_DISK_directory_remove (directory); 181 GNUNET_DISK_directory_remove (directory);