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_nick.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_nick.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_nick.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/namestore/test_namestore_api_lookup_nick.c b/src/namestore/test_namestore_api_lookup_nick.c index de958cee2..50d1fd9a9 100644 --- a/src/namestore/test_namestore_api_lookup_nick.c +++ b/src/namestore/test_namestore_api_lookup_nick.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02110-1301, USA. | 18 | Boston, MA 02110-1301, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file namestore/test_namestore_api_store.c | 21 | * @file namestore/test_namestore_api_lookup_nick.c |
22 | * @brief testcase for namestore_api.c: store a record | 22 | * @brief testcase for namestore_api.c: NICK records |
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
@@ -317,15 +317,23 @@ run (void *cls, | |||
317 | int | 317 | int |
318 | main (int argc, char *argv[]) | 318 | main (int argc, char *argv[]) |
319 | { | 319 | { |
320 | const char *plugin_name; | ||
321 | char *cfg_name; | ||
322 | |||
323 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
324 | GNUNET_asprintf (&cfg_name, | ||
325 | "test_namestore_api_%s.conf", | ||
326 | plugin_name); | ||
320 | res = 1; | 327 | res = 1; |
321 | if (0 != | 328 | if (0 != |
322 | GNUNET_TESTING_peer_run ("test-namestore-api", | 329 | GNUNET_TESTING_peer_run ("test-namestore-api-lookup-nick", |
323 | "test_namestore_api.conf", | 330 | cfg_name, |
324 | &run, | 331 | &run, |
325 | NULL)) | 332 | NULL)) |
326 | { | 333 | { |
327 | res = 1; | 334 | res = 1; |
328 | } | 335 | } |
336 | GNUNET_free (cfg_name); | ||
329 | if (NULL != directory) | 337 | if (NULL != directory) |
330 | { | 338 | { |
331 | GNUNET_DISK_directory_remove (directory); | 339 | GNUNET_DISK_directory_remove (directory); |