aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-21 19:11:27 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-21 19:11:27 +0100
commita252daa6a1b3fe5b22757e7aeffc502e7f098261 (patch)
tree5f442d527016b1aab5ad1929eb743440a5a303eb /src/include
parentd09beecc8f5f111538208b7b8da100e0a7015cda (diff)
factor out more helpers
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_testing_lib.h31
1 files changed, 31 insertions, 0 deletions
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 ****************** */
/**
@@ -209,6 +231,15 @@ TALER_TESTING_cmd_fakebank_transfer (const char *label,
/**
+ * Execute taler-exchange-wirewatch process.
+ *
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_exec_wirewatch (const char *label,
+ const char *config_filename);
+
+
+/**
* Create withdraw command.
*
* @return NULL on failure