From c4770643e319a140876251b5a31ae6eee3d1868d Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Sat, 3 Mar 2018 01:05:12 +0100 Subject: bank-lib twisted tests scaffold done. --- src/bank-lib/test_bank_api_twisted.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/bank-lib/test_bank_api_twisted.c') diff --git a/src/bank-lib/test_bank_api_twisted.c b/src/bank-lib/test_bank_api_twisted.c index 717f3d4a..2561a744 100644 --- a/src/bank-lib/test_bank_api_twisted.c +++ b/src/bank-lib/test_bank_api_twisted.c @@ -36,24 +36,36 @@ #include #include #include +#include #include /** * Configuration file we use. One (big) configuration is used * for the various components for this test. */ -#define CONFIG_FILE "test_bank_api_twisted.conf" +#define CONFIG_FILE "bank_twisted.conf" /** * (real) Twister URL. Used at startup time to check if it runs. */ static char *twister_url; +/** + * URL of the twister where all the connections to the + * bank that have to be proxied should be addressed to. + */ +#define TWISTED_BANK_URL twister_url + /** * URL of the bank. */ static char *bank_url; +/** + * Bank process. + */ +static struct GNUNET_OS_Process *bankd; + /** * Twister process. */ @@ -79,7 +91,7 @@ run (void *cls, TALER_TESTING_cmd_end () }; - TALER_TESTING_run_with_fakebank (is, commands); + TALER_TESTING_run (is, commands); } /** @@ -115,7 +127,7 @@ main (int argc, if (NULL == (twister_url = TALER_TESTING_prepare_twister (CONFIG_FILE))) return 77; - + if (NULL == (twisterd = TALER_TESTING_run_twister (CONFIG_FILE))) return 77; -- cgit v1.2.3