fix "twisted" test-suites.

This commit is contained in:
Marcello Stanisci 2018-09-05 21:55:40 +02:00
parent 2d15991922
commit 2cbe471d5e
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
4 changed files with 26 additions and 22 deletions

View File

@ -97,14 +97,12 @@ check_PROGRAMS += \
test_bank_api_with_fakebank_twisted_SOURCES = \ test_bank_api_with_fakebank_twisted_SOURCES = \
test_bank_api_with_fakebank_twisted.c test_bank_api_with_fakebank_twisted.c
test_bank_api_with_fakebank_twisted_LDADD = \ test_bank_api_with_fakebank_twisted_LDADD = \
$(LIBGCRYPT_LIBS) \
$(top_builddir)/src/exchange-lib/libtalertesting.la \ $(top_builddir)/src/exchange-lib/libtalertesting.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \ libtalerbank.la \
$(top_builddir)/src/bank-lib/libtalertesting.la \ libtalerbanktesting.la \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \ libtalerfakebank.la \
$(top_builddir)/src/exchange-lib/libtalerexchange.la \ $(top_builddir)/src/exchange-lib/libtalerexchange.la \
$(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
-ltalertwistertesting \ -ltalertwistertesting \
-lgnunetjson \ -lgnunetjson \
-lgnunetcurl \ -lgnunetcurl \
@ -115,21 +113,18 @@ endif
test_bank_api_twisted_SOURCES = \ test_bank_api_twisted_SOURCES = \
test_bank_api_twisted.c test_bank_api_twisted.c
test_bank_api_twisted_LDADD = \ test_bank_api_twisted_LDADD = \
$(LIBGCRYPT_LIBS) \
$(top_builddir)/src/exchange-lib/libtalertesting.la \ $(top_builddir)/src/exchange-lib/libtalertesting.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \ libtalerbank.la \
$(top_builddir)/src/bank-lib/libtalertesting.la \ libtalerbanktesting.la \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \ libtalerfakebank.la \
$(top_builddir)/src/exchange-lib/libtalerexchange.la \ $(top_builddir)/src/exchange-lib/libtalerexchange.la \
$(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
-ltalertwistertesting \ -ltalertwistertesting \
-lgnunetjson \ -lgnunetjson \
-lgnunetcurl \ -lgnunetcurl \
-lgnunetutil \ -lgnunetutil \
-ljansson -ljansson
TESTS = \ TESTS = \
$(check_PROGRAMS) $(check_PROGRAMS)

View File

@ -2,20 +2,24 @@
This file is part of TALER This file is part of TALER
Copyright (C) 2016, 2017 GNUnet e.V. Copyright (C) 2016, 2017 GNUnet e.V.
TALER is free software; you can redistribute it and/or modify it under the TALER is free software; you can redistribute it and/or modify
terms of the GNU General Public License as published by the Free Software it under the terms of the GNU General Public License as
Foundation; either version 3, or (at your option) any later version. 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 TALER is distributed in the hope that it will be useful,
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR but WITHOUT ANY WARRANTY; without even the implied warranty
A PARTICULAR PURPOSE. See the GNU General Public License for more details. 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 You should have received a copy of the GNU General Public
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> License along with TALER; see the file COPYING. If not, see
<http://www.gnu.org/licenses/>
*/ */
/** /**
* @file bank/test_bank_api.c * @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 * @author Christian Grothoff
*/ */
#include "platform.h" #include "platform.h"

View File

@ -121,6 +121,7 @@ main (int argc,
/* These environment variables get in the way... */ /* These environment variables get in the way... */
unsetenv ("XDG_DATA_HOME"); unsetenv ("XDG_DATA_HOME");
unsetenv ("XDG_CONFIG_HOME"); unsetenv ("XDG_CONFIG_HOME");
GNUNET_log_setup ("test-bank-api-twisted", GNUNET_log_setup ("test-bank-api-twisted",
"DEBUG", NULL); "DEBUG", NULL);
@ -142,7 +143,8 @@ main (int argc,
ret = TALER_TESTING_setup (&run, ret = TALER_TESTING_setup (&run,
NULL, NULL,
CONFIG_FILE, CONFIG_FILE,
NULL); NULL,
GNUNET_NO);
purge_process (twisterd); purge_process (twisterd);
purge_process (bankd); purge_process (bankd);
GNUNET_free (twister_url); GNUNET_free (twister_url);

View File

@ -114,9 +114,11 @@ main (int argc,
char * const *argv) char * const *argv)
{ {
unsigned int ret; unsigned int ret;
/* These environment variables get in the way... */ /* These environment variables get in the way... */
unsetenv ("XDG_DATA_HOME"); unsetenv ("XDG_DATA_HOME");
unsetenv ("XDG_CONFIG_HOME"); unsetenv ("XDG_CONFIG_HOME");
GNUNET_log_setup ("test-bank-api-twisted", GNUNET_log_setup ("test-bank-api-twisted",
"DEBUG", NULL); "DEBUG", NULL);
@ -135,7 +137,8 @@ main (int argc,
ret = TALER_TESTING_setup (&run, ret = TALER_TESTING_setup (&run,
NULL, NULL,
CONFIG_FILE, CONFIG_FILE,
NULL); NULL,
GNUNET_NO);
purge_process (twisterd); purge_process (twisterd);
GNUNET_free (twister_url); GNUNET_free (twister_url);
GNUNET_free (fakebank_url); GNUNET_free (fakebank_url);