summaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-08 21:41:12 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-08 21:41:12 +0200
commit21edd1e9038cef97c6004dc0b626be43c2138616 (patch)
treef7f9cc7717b36827731ad85f9a4064ad32fa5acb /src/bank-lib
parent36849108451c744c08a358f61217b273918c2e06 (diff)
downloadexchange-21edd1e9038cef97c6004dc0b626be43c2138616.tar.gz
exchange-21edd1e9038cef97c6004dc0b626be43c2138616.tar.bz2
exchange-21edd1e9038cef97c6004dc0b626be43c2138616.zip
rename _new.c to just .c for tests
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/test_bank_api_new.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/bank-lib/test_bank_api_new.c b/src/bank-lib/test_bank_api_new.c
index ab0358c3a..4a89c1931 100644
--- a/src/bank-lib/test_bank_api_new.c
+++ b/src/bank-lib/test_bank_api_new.c
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public
License along with TALER; see the file COPYING. If not,
- see <http://www.gnu.org/licenses/>
+ see <http://www.gnu.org/licenses/>
*/
/**
@@ -73,6 +73,7 @@ struct GNUNET_OS_Process *bankd;
*/
char *bank_url;
+
/**
* Main function that will tell the interpreter what commands to
* run.
@@ -83,12 +84,9 @@ static void
run (void *cls,
struct TALER_TESTING_Interpreter *is)
{
-
extern struct TALER_BANK_AuthenticationData AUTHS[];
struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
-
struct TALER_TESTING_Command commands[] = {
-
TALER_TESTING_cmd_bank_history ("history-0",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@@ -96,7 +94,6 @@ run (void *cls,
GNUNET_NO,
NULL, /* start */
5),
-
TALER_TESTING_cmd_bank_history_range_with_dates
("history-0-range",
bank_url,
@@ -117,7 +114,6 @@ run (void *cls,
AUTHS[BANK_ACCOUNT_NUMBER -1].details.basic.password,
"subject 1",
"http://exchange.com/"),
-
/* bank gives to exchange */
TALER_TESTING_cmd_fakebank_transfer_with_subject
("deposit-2",
@@ -129,7 +125,6 @@ run (void *cls,
AUTHS[BANK_ACCOUNT_NUMBER -1].details.basic.password,
"subject 2",
"http://exchange.com/"),
-
TALER_TESTING_cmd_bank_history ("history-1c",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@@ -137,7 +132,6 @@ run (void *cls,
GNUNET_YES,
NULL,
5),
-
TALER_TESTING_cmd_bank_history ("history-1d",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@@ -145,7 +139,6 @@ run (void *cls,
GNUNET_YES,
NULL,
5),
-
TALER_TESTING_cmd_bank_history ("history-1dr",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@@ -153,7 +146,6 @@ run (void *cls,
GNUNET_YES,
NULL,
5),
-
TALER_TESTING_cmd_bank_history ("history-2fwd",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@@ -161,7 +153,6 @@ run (void *cls,
GNUNET_YES,
"deposit-1",
5),
-
/**
* Just check that the two transactions show up.
*/
@@ -175,7 +166,6 @@ run (void *cls,
50),
ADDSECS (now,
5)),
-
TALER_TESTING_cmd_bank_reject ("reject-1",
bank_url,
"deposit-1"),
@@ -208,16 +198,16 @@ main(int argc,
if (NULL == (bankd =
TALER_TESTING_run_bank (CONFIG_FILE, bank_url)))
return 77;
-
+
ret = TALER_TESTING_setup (&run,
NULL,
CONFIG_FILE,
NULL,
GNUNET_NO); // means no exchange.
- GNUNET_OS_process_kill (bankd, SIGKILL);
- GNUNET_OS_process_wait (bankd);
- GNUNET_OS_process_destroy (bankd);
+ GNUNET_OS_process_kill (bankd, SIGKILL);
+ GNUNET_OS_process_wait (bankd);
+ GNUNET_OS_process_destroy (bankd);
GNUNET_free (bank_url);
if (GNUNET_OK == ret)