From a252daa6a1b3fe5b22757e7aeffc502e7f098261 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Jan 2018 19:11:27 +0100 Subject: factor out more helpers --- src/include/taler_testing_lib.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 8e1191685..5643572ff 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -43,6 +43,28 @@ TALER_TESTING_find_pk (const struct TALER_EXCHANGE_Keys *keys, const struct TALER_Amount *amount); +/** + * Prepare launching an exchange. Checks that the configured + * port is available, runs taler-exchange-keyup, + * taler-auditor-sign and taler-exchange-dbinit. Does not + * launch the exchange process itself. + * + * @param config_filename configuration file to use + * @return #GNUNET_OK on success, #GNUNET_NO if test should be skipped, + * #GNUNET_SYSERR on test failure + */ +int +TALER_TESTING_prepare_exchange (const char *config_filename); + + +/** + * Remove files from previous runs + */ +void +TALER_TESTING_cleanup_files (const char *config_name); + + + /* ******************* Generic interpreter logic ****************** */ /** @@ -208,6 +230,15 @@ TALER_TESTING_cmd_fakebank_transfer (const char *label, const char *auth_password); +/** + * Execute taler-exchange-wirewatch process. + * + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_exec_wirewatch (const char *label, + const char *config_filename); + + /** * Create withdraw command. * -- cgit v1.2.3