[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 01/05: Benchmark uses fakebank now.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 01/05: Benchmark uses fakebank now. |
Date: |
Wed, 25 Jul 2018 13:08:26 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository exchange.
commit 7aee3ddc958a6309d4beae52c6a0eb31f5ed72df
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jul 25 11:57:15 2018 +0200
Benchmark uses fakebank now.
---
src/benchmark/taler-exchange-benchmark-new.c | 27 ++++++++++-----------------
1 file changed, 10 insertions(+), 17 deletions(-)
diff --git a/src/benchmark/taler-exchange-benchmark-new.c
b/src/benchmark/taler-exchange-benchmark-new.c
index 9cdd26d..ac1240a 100644
--- a/src/benchmark/taler-exchange-benchmark-new.c
+++ b/src/benchmark/taler-exchange-benchmark-new.c
@@ -74,7 +74,7 @@ enum BenchmarkError {
#define CMD_TRANSFER_TO_EXCHANGE(label,amount) \
TALER_TESTING_cmd_fakebank_transfer (label, amount, \
- bank_url, USER_ACCOUNT_NO, EXCHANGE_ACCOUNT_NO, \
+ fakebank_url, USER_ACCOUNT_NO, EXCHANGE_ACCOUNT_NO, \
USER_LOGIN_NAME, USER_LOGIN_PASS, EXCHANGE_URL)
@@ -125,9 +125,9 @@ static char *logfile;
static char *cfg_filename;
/**
- * Bank base URL.
+ * Fake bank base URL.
*/
-static char *bank_url;
+static char *fakebank_url;
/**
* Currency used.
@@ -306,10 +306,10 @@ run (void *cls,
unit);
}
all_commands[1 + howmany_coins] = TALER_TESTING_cmd_end ();
-
start_time = GNUNET_TIME_absolute_get ();
- TALER_TESTING_run (is,
- all_commands);
+ TALER_TESTING_run_with_fakebank (is,
+ all_commands,
+ fakebank_url);
result = 1;
}
@@ -369,8 +369,9 @@ main (int argc,
('b',
"bank-url",
"BU",
- "bank base url, mandatory",
- &bank_url),
+ "bank base url, mandatory,"
+ " must match exchange's escrow bank",
+ &fakebank_url),
GNUNET_GETOPT_option_string
('l',
@@ -420,20 +421,12 @@ main (int argc,
}
GNUNET_CONFIGURATION_destroy (cfg);
- if (NULL == bank_url)
+ if (NULL == fakebank_url)
{
TALER_LOG_ERROR ("Option -b is mandatory!\n");
return MISSING_BANK_URL;
}
- if (NULL == (bankd = TALER_TESTING_run_bank
- (cfg_filename,
- bank_url)))
- {
- TALER_LOG_ERROR ("Failed to run the bank\n");
- return FAILED_TO_LAUNCH_BANK;
- }
-
result = TALER_TESTING_setup_with_exchange
(run,
NULL,
--
To stop receiving notification emails like this one, please contact
address@hidden