aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-09-05 21:55:40 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-09-05 21:55:40 +0200
commit2cbe471d5e836092089d5108730de5f14a2adf37 (patch)
treeaec7bdee3be09ba6f2ec3e7c637d20ce1140c420 /src/bank-lib
parent2d1599192292bb5a35c757e4fa2b8c06b946cfec (diff)
fix "twisted" test-suites.
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/Makefile.am17
-rw-r--r--src/bank-lib/test_bank_api.c22
-rw-r--r--src/bank-lib/test_bank_api_twisted.c4
-rw-r--r--src/bank-lib/test_bank_api_with_fakebank_twisted.c5
4 files changed, 26 insertions, 22 deletions
diff --git a/src/bank-lib/Makefile.am b/src/bank-lib/Makefile.am
index eae120cb8..084614b62 100644
--- a/src/bank-lib/Makefile.am
+++ b/src/bank-lib/Makefile.am
@@ -97,14 +97,12 @@ check_PROGRAMS += \
test_bank_api_with_fakebank_twisted_SOURCES = \
test_bank_api_with_fakebank_twisted.c
test_bank_api_with_fakebank_twisted_LDADD = \
- $(LIBGCRYPT_LIBS) \
$(top_builddir)/src/exchange-lib/libtalertesting.la \
- $(top_builddir)/src/bank-lib/libtalerbank.la \
- $(top_builddir)/src/bank-lib/libtalertesting.la \
- $(top_builddir)/src/bank-lib/libtalerfakebank.la \
+ libtalerbank.la \
+ libtalerbanktesting.la \
+ libtalerfakebank.la \
$(top_builddir)/src/exchange-lib/libtalerexchange.la \
$(top_builddir)/src/json/libtalerjson.la \
- $(top_builddir)/src/util/libtalerutil.la \
-ltalertwistertesting \
-lgnunetjson \
-lgnunetcurl \
@@ -115,21 +113,18 @@ endif
test_bank_api_twisted_SOURCES = \
test_bank_api_twisted.c
test_bank_api_twisted_LDADD = \
- $(LIBGCRYPT_LIBS) \
$(top_builddir)/src/exchange-lib/libtalertesting.la \
- $(top_builddir)/src/bank-lib/libtalerbank.la \
- $(top_builddir)/src/bank-lib/libtalertesting.la \
- $(top_builddir)/src/bank-lib/libtalerfakebank.la \
+ libtalerbank.la \
+ libtalerbanktesting.la \
+ libtalerfakebank.la \
$(top_builddir)/src/exchange-lib/libtalerexchange.la \
$(top_builddir)/src/json/libtalerjson.la \
- $(top_builddir)/src/util/libtalerutil.la \
-ltalertwistertesting \
-lgnunetjson \
-lgnunetcurl \
-lgnunetutil \
-ljansson
-
TESTS = \
$(check_PROGRAMS)
diff --git a/src/bank-lib/test_bank_api.c b/src/bank-lib/test_bank_api.c
index 2a1171918..f356b0a8d 100644
--- a/src/bank-lib/test_bank_api.c
+++ b/src/bank-lib/test_bank_api.c
@@ -2,20 +2,24 @@
This file is part of TALER
Copyright (C) 2016, 2017 GNUnet e.V.
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
+ TALER is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 3,
+ or (at your option) any later version.
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ TALER is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty
+ of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
+ the GNU General Public License for more details.
- 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/>
+ 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/>
*/
/**
* @file bank/test_bank_api.c
- * @brief testcase to test bank's HTTP API interface against the "real" bank
+ * @brief testcase to test bank's HTTP API interface
+ * against the "real" bank
* @author Christian Grothoff
*/
#include "platform.h"
diff --git a/src/bank-lib/test_bank_api_twisted.c b/src/bank-lib/test_bank_api_twisted.c
index 55064b25a..f90b05725 100644
--- a/src/bank-lib/test_bank_api_twisted.c
+++ b/src/bank-lib/test_bank_api_twisted.c
@@ -121,6 +121,7 @@ main (int argc,
/* These environment variables get in the way... */
unsetenv ("XDG_DATA_HOME");
unsetenv ("XDG_CONFIG_HOME");
+
GNUNET_log_setup ("test-bank-api-twisted",
"DEBUG", NULL);
@@ -142,7 +143,8 @@ main (int argc,
ret = TALER_TESTING_setup (&run,
NULL,
CONFIG_FILE,
- NULL);
+ NULL,
+ GNUNET_NO);
purge_process (twisterd);
purge_process (bankd);
GNUNET_free (twister_url);
diff --git a/src/bank-lib/test_bank_api_with_fakebank_twisted.c b/src/bank-lib/test_bank_api_with_fakebank_twisted.c
index 4e491102b..88e9bc3b2 100644
--- a/src/bank-lib/test_bank_api_with_fakebank_twisted.c
+++ b/src/bank-lib/test_bank_api_with_fakebank_twisted.c
@@ -114,9 +114,11 @@ main (int argc,
char * const *argv)
{
unsigned int ret;
+
/* These environment variables get in the way... */
unsetenv ("XDG_DATA_HOME");
unsetenv ("XDG_CONFIG_HOME");
+
GNUNET_log_setup ("test-bank-api-twisted",
"DEBUG", NULL);
@@ -135,7 +137,8 @@ main (int argc,
ret = TALER_TESTING_setup (&run,
NULL,
CONFIG_FILE,
- NULL);
+ NULL,
+ GNUNET_NO);
purge_process (twisterd);
GNUNET_free (twister_url);
GNUNET_free (fakebank_url);