diff options
author | Fournier Nicolas <nicolas.fournier@ensta-paristech.fr> | 2015-06-10 14:59:14 +0200 |
---|---|---|
committer | Fournier Nicolas <nicolas.fournier@ensta-paristech.fr> | 2015-06-10 14:59:14 +0200 |
commit | 7e990741dfbeadbf13a5cea7423ae088a39494d4 (patch) | |
tree | fc350b8a770fcb0f83fe07a0ec2da67789d3a6f8 /src/mintdb/perf_taler_mintdb.c | |
parent | e40cbd96dde9ee6b103db165d1b7ccc5e304efd2 (diff) | |
download | exchange-7e990741dfbeadbf13a5cea7423ae088a39494d4.tar.xz |
Commenting, cleaning and checking for return values
Diffstat (limited to 'src/mintdb/perf_taler_mintdb.c')
-rw-r--r-- | src/mintdb/perf_taler_mintdb.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mintdb/perf_taler_mintdb.c b/src/mintdb/perf_taler_mintdb.c index 35a6b51b8..832332c61 100644 --- a/src/mintdb/perf_taler_mintdb.c +++ b/src/mintdb/perf_taler_mintdb.c @@ -19,6 +19,7 @@ * @author Nicolas Fournier */ #include "perf_taler_mintdb_interpreter.h" +#include "perf_taler_mintdb_values.h" /** * Runs the performances tests for the mint database @@ -39,17 +40,17 @@ main(int argc, char ** argv) INIT_CMD_END("end") }; - struct GNUNET_CONFIGURATION_Handle *config = GNUNET_CONFIGURATION_create(); + struct GNUNET_CONFIGURATION_Handle config ; + GNUNET_CONFIGURATION_load(*config "./test-mint-db-postgres.conf"); - // FIXME Add data to the config handler to be able to connect to the database - - struct TALER_MINTDB_Plugin *plugin = TALER_MINTDB_plugin_load(config); + struct TALER_MINTDB_Plugin *plugin = TALER_MINTDB_plugin_load(&config); struct TALER_MINTDB_Session *session = plugin->get_session(plugin->cls, GNUNET_YES); - + + // creation of temporary tables plugin->create_tables(plugin->cls, GNUNET_YES); - PERF_TALER_MINTDB_interprete(plugin, session, test); + PERF_TALER_MINTDB_interpret(plugin, session, test); plugin->drop_temporary(plugin->cls, session); |