diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-21 20:10:05 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-21 20:10:05 +0100 |
commit | de092c2c2b4184e5276923a92e19a859c1cc07aa (patch) | |
tree | 562052b9a7aff8093d7aade8c8ef6e65bb5474e7 /src/include/taler_testing_lib.h | |
parent | 652bb0f9c4d9527c409db6a99a7e550c57328adf (diff) | |
download | exchange-de092c2c2b4184e5276923a92e19a859c1cc07aa.tar.xz |
make fakebank_url more robust
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r-- | src/include/taler_testing_lib.h | 11 |
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 ****************** */ |