summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-21 20:10:05 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-21 20:10:05 +0100
commitde092c2c2b4184e5276923a92e19a859c1cc07aa (patch)
tree562052b9a7aff8093d7aade8c8ef6e65bb5474e7 /src/include
parent652bb0f9c4d9527c409db6a99a7e550c57328adf (diff)
downloadexchange-de092c2c2b4184e5276923a92e19a859c1cc07aa.tar.gz
exchange-de092c2c2b4184e5276923a92e19a859c1cc07aa.tar.bz2
exchange-de092c2c2b4184e5276923a92e19a859c1cc07aa.zip
make fakebank_url more robust
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_testing_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 709139b7c..2a95ff6de 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -71,6 +71,17 @@ int
TALER_TESTING_url_port_free (const char *url);
+/**
+ * Prepare launching a fakebank. Check that the configuration
+ * file has the right option, and that the port is avaiable.
+ * If everything is OK, return the configured URL of the fakebank.
+ *
+ * @param config_filename configuration file to use
+ * @return NULL on error, fakebank URL otherwise
+ */
+char *
+TALER_TESTING_prepare_fakebank (const char *config_filename);
+
/* ******************* Generic interpreter logic ****************** */