diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-10 11:43:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-10 11:43:20 +0000 |
commit | dadbf4c950bf4cd459c95ac4ab61a02af7b3668b (patch) | |
tree | ddaf0644dcd97fbef7f67a68eff2a5cf204b0bb7 /src/datastore/perf_datastore_api.c | |
parent | 8efaae301b29ec7cbdb921ac5e6b30ae2c143568 (diff) | |
download | gnunet-dadbf4c950bf4cd459c95ac4ab61a02af7b3668b.tar.gz gnunet-dadbf4c950bf4cd459c95ac4ab61a02af7b3668b.zip |
-using new testing api to determine plugin name
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r-- | src/datastore/perf_datastore_api.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index e236b6235..fa2ee52dc 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c | |||
@@ -322,17 +322,9 @@ run (void *cls, | |||
322 | int | 322 | int |
323 | main (int argc, char *argv[]) | 323 | main (int argc, char *argv[]) |
324 | { | 324 | { |
325 | char *pos; | ||
326 | char cfg_name[128]; | 325 | char cfg_name[128]; |
327 | 326 | ||
328 | /* determine name of plugin to use */ | 327 | plugin_name = GNUNET_TESTING_get_testname_from_underscoare (argv[0]); |
329 | plugin_name = argv[0]; | ||
330 | while (NULL != (pos = strstr (plugin_name, "_"))) | ||
331 | plugin_name = pos + 1; | ||
332 | if (NULL != (pos = strstr (plugin_name, "."))) | ||
333 | pos[0] = '\0'; | ||
334 | else | ||
335 | pos = (char *) plugin_name; | ||
336 | GNUNET_snprintf (cfg_name, sizeof (cfg_name), | 328 | GNUNET_snprintf (cfg_name, sizeof (cfg_name), |
337 | "test_datastore_api_data_%s.conf", plugin_name); | 329 | "test_datastore_api_data_%s.conf", plugin_name); |
338 | if (0 != | 330 | if (0 != |