reorganization of file structure

This commit is contained in:
Christian Grothoff 2020-01-12 20:44:33 +01:00
parent c75157e8ca
commit 1788ca2be1
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
17 changed files with 91 additions and 144 deletions

View File

@ -30,8 +30,7 @@ taler_bank_transfer_LDADD = \
lib_LTLIBRARIES = \ lib_LTLIBRARIES = \
libtalerbank.la \ libtalerbank.la \
libtalerfakebank.la \ libtalerfakebank.la
libtalerbanktesting.la
libtalerbank_la_LDFLAGS = \ libtalerbank_la_LDFLAGS = \
-version-info 1:0:0 \ -version-info 1:0:0 \
@ -66,24 +65,6 @@ libtalerfakebank_la_LIBADD = \
-lmicrohttpd \ -lmicrohttpd \
$(XLIB) $(XLIB)
libtalerbanktesting_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined
libtalerbanktesting_la_SOURCES = \
testing_api_cmd_admin_add_incoming.c \
testing_api_cmd_history_credit.c \
testing_api_cmd_history_debit.c \
testing_api_cmd_transfer.c \
testing_api_helpers.c
libtalerbanktesting_la_LIBADD = \
libtalerbank.la \
$(top_builddir)/src/json/libtalerjson.la \
-lgnunetjson \
-lgnunetutil \
-ljansson \
-lmicrohttpd \
$(XLIB)
if HAVE_LIBCURL if HAVE_LIBCURL
libtalerbank_la_LIBADD += -lcurl libtalerbank_la_LIBADD += -lcurl
else else
@ -91,70 +72,3 @@ if HAVE_LIBGNURL
libtalerbank_la_LIBADD += -lgnurl libtalerbank_la_LIBADD += -lgnurl
endif endif
endif endif
check_PROGRAMS = \
test_bank_api_with_fakebank \
test_bank_api_with_pybank
if HAVE_TWISTER
check_PROGRAMS += \
test_bank_api_with_pybank_twisted \
test_bank_api_with_fakebank_twisted
test_bank_api_with_pybank_twisted_SOURCES = \
test_bank_api_twisted.c
test_bank_api_with_pybank_twisted_LDADD = \
$(top_builddir)/src/lib/libtalertesting.la \
libtalerbank.la \
libtalerbanktesting.la \
libtalerfakebank.la \
$(top_builddir)/src/lib/libtalerexchange.la \
$(top_builddir)/src/json/libtalerjson.la \
-ltalertwistertesting \
-lgnunetjson \
-lgnunetcurl \
-lgnunetutil \
-ljansson
test_bank_api_with_fakebank_twisted_SOURCES = \
test_bank_api_twisted.c
test_bank_api_with_fakebank_twisted_LDADD = \
$(top_builddir)/src/lib/libtalertesting.la \
libtalerbank.la \
libtalerbanktesting.la \
libtalerfakebank.la \
$(top_builddir)/src/lib/libtalerexchange.la \
$(top_builddir)/src/json/libtalerjson.la \
-ltalertwistertesting \
-lgnunetjson \
-lgnunetcurl \
-lgnunetutil \
-ljansson
endif
TESTS = \
$(check_PROGRAMS)
test_bank_api_with_pybank_SOURCES = \
test_bank_api.c
test_bank_api_with_pybank_LDADD = \
$(top_builddir)/src/lib/libtalertesting.la \
libtalerbanktesting.la \
-ltalerexchange \
-lgnunetutil \
libtalerbank.la
test_bank_api_with_fakebank_SOURCES = \
test_bank_api.c
test_bank_api_with_fakebank_LDADD = \
$(top_builddir)/src/lib/libtalertesting.la \
libtalerbanktesting.la \
-ltalerexchange \
-lgnunetutil \
libtalerbank.la
EXTRA_DIST = \
bank.conf \
bank_twisted.conf

View File

@ -9,8 +9,7 @@ endif
lib_LTLIBRARIES = \ lib_LTLIBRARIES = \
libtalerauditor.la \ libtalerauditor.la \
libtalerexchange.la \ libtalerexchange.la \
libtalertesting.la \ libtalertesting.la
libtalerauditortesting.la
libtalerexchange_la_LDFLAGS = \ libtalerexchange_la_LDFLAGS = \
-version-info 4:0:0 \ -version-info 4:0:0 \
@ -72,46 +71,57 @@ libtalertesting_la_LDFLAGS = \
-no-undefined -no-undefined
libtalertesting_la_SOURCES = \ libtalertesting_la_SOURCES = \
exchange_api_curl_defaults.c \ exchange_api_curl_defaults.c \
testing_api_cmd_auditor_deposit_confirmation.c \
testing_api_cmd_auditor_exchanges.c \
testing_api_cmd_auditor_exec_auditor.c \
testing_api_cmd_auditor_exec_auditor_dbinit.c \
testing_api_cmd_auditor_exec_wire_auditor.c \
testing_api_cmd_bank_admin_add_incoming.c \
testing_api_cmd_bank_check.c \
testing_api_cmd_bank_check_empty.c \
testing_api_cmd_bank_history_credit.c \
testing_api_cmd_bank_history_debit.c \
testing_api_cmd_bank_transfer.c \
testing_api_cmd_batch.c \
testing_api_cmd_check_keys.c \
testing_api_cmd_deposit.c \
testing_api_cmd_exec_aggregator.c \ testing_api_cmd_exec_aggregator.c \
testing_api_cmd_exec_wirewatch.c \ testing_api_cmd_exec_wirewatch.c \
testing_api_cmd_exec_keyup.c \ testing_api_cmd_exec_keyup.c \
testing_api_cmd_exec_auditor-sign.c \ testing_api_cmd_exec_auditor-sign.c \
testing_api_cmd_withdraw.c \
testing_api_cmd_wire.c \
testing_api_cmd_refund.c \
testing_api_cmd_status.c \
testing_api_cmd_deposit.c \
testing_api_cmd_sleep.c \
testing_api_cmd_refresh.c \
testing_api_cmd_track.c \
testing_api_cmd_bank_check.c \
testing_api_cmd_bank_check_empty.c \
testing_api_cmd_payback.c \ testing_api_cmd_payback.c \
testing_api_cmd_signal.c \ testing_api_cmd_refund.c \
testing_api_cmd_check_keys.c \ testing_api_cmd_refresh.c \
testing_api_cmd_batch.c \
testing_api_cmd_serialize_keys.c \ testing_api_cmd_serialize_keys.c \
testing_api_helpers.c \ testing_api_cmd_signal.c \
testing_api_cmd_sleep.c \
testing_api_cmd_status.c \
testing_api_cmd_track.c \
testing_api_cmd_wire.c \
testing_api_cmd_withdraw.c \
testing_api_helpers_auditor.c \
testing_api_helpers_bank.c \
testing_api_helpers_exchange.c \
testing_api_loop.c \ testing_api_loop.c \
testing_api_traits.c \ testing_api_traits.c \
testing_api_trait_amount.c \
testing_api_trait_blinding_key.c \ testing_api_trait_blinding_key.c \
testing_api_trait_cmd.c \
testing_api_trait_coin_priv.c \ testing_api_trait_coin_priv.c \
testing_api_trait_denom_pub.c \ testing_api_trait_denom_pub.c \
testing_api_trait_denom_sig.c \ testing_api_trait_denom_sig.c \
testing_api_trait_exchange_pub.c \ testing_api_trait_exchange_pub.c \
testing_api_trait_exchange_sig.c \ testing_api_trait_exchange_sig.c \
testing_api_trait_fresh_coin.c \
testing_api_trait_json.c \ testing_api_trait_json.c \
testing_api_trait_key_peer.c \
testing_api_trait_number.c \
testing_api_trait_process.c \ testing_api_trait_process.c \
testing_api_trait_reserve_pub.c \ testing_api_trait_reserve_pub.c \
testing_api_trait_reserve_priv.c \ testing_api_trait_reserve_priv.c \
testing_api_trait_number.c \
testing_api_trait_fresh_coin.c \
testing_api_trait_string.c \ testing_api_trait_string.c \
testing_api_trait_key_peer.c \ testing_api_trait_time.c \
testing_api_trait_wtid.c \ testing_api_trait_wtid.c
testing_api_trait_amount.c \
testing_api_trait_cmd.c \
testing_api_trait_time.c
libtalertesting_la_LIBADD = \ libtalertesting_la_LIBADD = \
libtalerexchange.la \ libtalerexchange.la \
$(top_builddir)/src/wire/libtalerwire.la \ $(top_builddir)/src/wire/libtalerwire.la \
@ -125,30 +135,6 @@ libtalertesting_la_LIBADD = \
-ljansson \ -ljansson \
$(XLIB) $(XLIB)
libtalerauditortesting_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined
libtalerauditortesting_la_SOURCES = \
testing_auditor_api_helpers.c \
testing_auditor_api_cmd_deposit_confirmation.c \
testing_auditor_api_cmd_exchanges.c \
testing_auditor_api_cmd_exec_auditor.c \
testing_auditor_api_cmd_exec_auditor_dbinit.c \
testing_auditor_api_cmd_exec_wire_auditor.c
libtalerauditortesting_la_LIBADD = \
libtalerauditor.la \
libtalerexchange.la \
libtalertesting.la \
$(top_builddir)/src/wire/libtalerwire.la \
$(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \
-lgnunetjson \
-lgnunetutil \
-ljansson \
$(XLIB)
if HAVE_LIBCURL if HAVE_LIBCURL
libtalerexchange_la_LIBADD += -lcurl libtalerexchange_la_LIBADD += -lcurl
else else
@ -158,15 +144,36 @@ endif
endif endif
check_PROGRAMS = \ check_PROGRAMS = \
test_exchange_api_keys_cherry_picking \
test_exchange_api_overlapping_keys_bug \
test_exchange_api \
test_auditor_api_version \ test_auditor_api_version \
test_auditor_api test_auditor_api \
test_bank_api_with_fakebank \
test_bank_api_with_pybank \
test_exchange_api \
test_exchange_api_keys_cherry_picking \
test_exchange_api_overlapping_keys_bug
if HAVE_TWISTER if HAVE_TWISTER
check_PROGRAMS += \ check_PROGRAMS += \
test_exchange_api_twisted test_exchange_api_twisted \
test_bank_api_with_pybank_twisted \
test_bank_api_with_fakebank_twisted
endif
test_bank_api_with_pybank_SOURCES = \
test_bank_api.c
test_bank_api_with_pybank_LDADD = \
libtalertesting.la \
libtalerexchange.la \
-lgnunetutil \
$(top_builddir)/src/bank-lib/libtalerbank.la
test_bank_api_with_fakebank_SOURCES = \
test_bank_api.c
test_bank_api_with_fakebank_LDADD = \
$(top_builddir)/src/lib/libtalertesting.la \
-ltalerexchange \
-lgnunetutil \
libtalerbank.la
test_exchange_api_twisted_SOURCES = \ test_exchange_api_twisted_SOURCES = \
test_exchange_api_twisted.c test_exchange_api_twisted.c
@ -175,7 +182,6 @@ test_exchange_api_twisted_LDADD = \
libtalertesting.la \ libtalertesting.la \
libtalerexchange.la \ libtalerexchange.la \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \ $(top_builddir)/src/bank-lib/libtalerfakebank.la \
$(top_builddir)/src/bank-lib/libtalerbanktesting.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \ $(top_builddir)/src/bank-lib/libtalerbank.la \
$(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/util/libtalerutil.la \
@ -185,7 +191,35 @@ test_exchange_api_twisted_LDADD = \
-lgnunetutil \ -lgnunetutil \
-ljansson -ljansson
endif test_bank_api_with_fakebank_twisted_SOURCES = \
test_bank_api_twisted.c
test_bank_api_with_fakebank_twisted_LDADD = \
$(top_builddir)/src/lib/libtalertesting.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
$(top_builddir)/src/lib/libtalerexchange.la \
$(top_builddir)/src/json/libtalerjson.la \
-ltalertwistertesting \
-lgnunetjson \
-lgnunetcurl \
-lgnunetutil \
-ljansson
test_bank_api_with_pybank_twisted_SOURCES = \
test_bank_api_twisted.c
test_bank_api_with_pybank_twisted_LDADD = \
$(top_builddir)/src/lib/libtalertesting.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
$(top_builddir)/src/lib/libtalerexchange.la \
$(top_builddir)/src/json/libtalerjson.la \
-ltalertwistertesting \
-lgnunetjson \
-lgnunetcurl \
-lgnunetutil \
-ljansson
AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH; AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;
@ -200,7 +234,6 @@ test_exchange_api_LDADD = \
$(LIBGCRYPT_LIBS) \ $(LIBGCRYPT_LIBS) \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \ $(top_builddir)/src/bank-lib/libtalerfakebank.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \ $(top_builddir)/src/bank-lib/libtalerbank.la \
$(top_builddir)/src/bank-lib/libtalerbanktesting.la \
$(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \ -lgnunetcurl \
@ -236,14 +269,12 @@ test_exchange_api_keys_cherry_picking_LDADD = \
test_auditor_api_SOURCES = \ test_auditor_api_SOURCES = \
test_auditor_api.c test_auditor_api.c
test_auditor_api_LDADD = \ test_auditor_api_LDADD = \
libtalerauditortesting.la \
libtalerauditor.la \ libtalerauditor.la \
libtalertesting.la \ libtalertesting.la \
libtalerexchange.la \ libtalerexchange.la \
$(LIBGCRYPT_LIBS) \ $(LIBGCRYPT_LIBS) \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \ $(top_builddir)/src/bank-lib/libtalerfakebank.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \ $(top_builddir)/src/bank-lib/libtalerbank.la \
$(top_builddir)/src/bank-lib/libtalerbanktesting.la \
$(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \ -lgnunetcurl \
@ -264,6 +295,8 @@ test_auditor_api_version_LDADD = \
EXTRA_DIST = \ EXTRA_DIST = \
bank.conf \
bank_twisted.conf \
test_exchange_api_home/.local/share/taler/exchange/offline-keys/master.priv \ test_exchange_api_home/.local/share/taler/exchange/offline-keys/master.priv \
test_exchange_api_home/.config/taler/account-2.json \ test_exchange_api_home/.config/taler/account-2.json \
test_exchange_api_keys_cherry_picking_home/.config/taler/x-taler-bank.json \ test_exchange_api_keys_cherry_picking_home/.config/taler/x-taler-bank.json \