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_lookup_private.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_lookup_private.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_private.c | 14 |
1 files changed, 11 insertions, 3 deletions
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, | |||
230 | int | 230 | int |
231 | main (int argc, char *argv[]) | 231 | main (int argc, char *argv[]) |
232 | { | 232 | { |
233 | const char *plugin_name; | ||
234 | char *cfg_name; | ||
235 | |||
236 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
237 | GNUNET_asprintf (&cfg_name, | ||
238 | "test_namestore_api_%s.conf", | ||
239 | plugin_name); | ||
233 | res = 1; | 240 | res = 1; |
234 | if (0 != | 241 | if (0 != |
235 | GNUNET_TESTING_peer_run ("test-namestore-api", | 242 | GNUNET_TESTING_peer_run ("test-namestore-api-lookup-private", |
236 | "test_namestore_api.conf", | 243 | cfg_name, |
237 | &run, | 244 | &run, |
238 | NULL)) | 245 | NULL)) |
239 | { | 246 | { |
240 | res = 1; | 247 | res = 1; |
241 | } | 248 | } |
249 | GNUNET_free (cfg_name); | ||
242 | if (NULL != directory) | 250 | if (NULL != directory) |
243 | { | 251 | { |
244 | GNUNET_DISK_directory_remove (directory); | 252 | GNUNET_DISK_directory_remove (directory); |
@@ -248,4 +256,4 @@ main (int argc, char *argv[]) | |||
248 | } | 256 | } |
249 | 257 | ||
250 | 258 | ||
251 | /* end of test_namestore_api_store.c */ | 259 | /* end of test_namestore_api_lookup_private.c */ |