restructure tests and build system
This commit is contained in:
parent
1788ca2be1
commit
ca55b5078f
@ -15,6 +15,8 @@ pkgcfgdir = $(prefix)/share/taler/config.d/
|
|||||||
pkgcfg_DATA = \
|
pkgcfg_DATA = \
|
||||||
exchange.conf
|
exchange.conf
|
||||||
|
|
||||||
|
# Programs
|
||||||
|
|
||||||
bin_PROGRAMS = \
|
bin_PROGRAMS = \
|
||||||
taler-exchange-aggregator \
|
taler-exchange-aggregator \
|
||||||
taler-exchange-httpd \
|
taler-exchange-httpd \
|
||||||
@ -88,57 +90,24 @@ taler_exchange_httpd_SOURCES += \
|
|||||||
taler-exchange-httpd_test.c taler-exchange-httpd_test.h
|
taler-exchange-httpd_test.c taler-exchange-httpd_test.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
# Testcases
|
||||||
|
|
||||||
|
AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;
|
||||||
|
|
||||||
check_SCRIPTS = \
|
check_SCRIPTS = \
|
||||||
test_taler_exchange_httpd.sh
|
test_taler_exchange_httpd.sh
|
||||||
|
|
||||||
if HAVE_EXPENSIVE_TESTS
|
if HAVE_EXPENSIVE_TESTS
|
||||||
check_SCRIPTS += \
|
check_SCRIPTS += \
|
||||||
test_taler_exchange_httpd_afl.sh
|
test_taler_exchange_httpd_afl.sh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
test_taler_exchange_aggregator_postgres_SOURCES = \
|
|
||||||
test_taler_exchange_aggregator.c
|
|
||||||
test_taler_exchange_aggregator_postgres_LDADD = \
|
|
||||||
$(LIBGCRYPT_LIBS) \
|
|
||||||
$(top_builddir)/src/exchangedb/libtalerexchangedb.la \
|
|
||||||
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
|
|
||||||
$(top_builddir)/src/json/libtalerjson.la \
|
|
||||||
$(top_builddir)/src/util/libtalerutil.la \
|
|
||||||
-lmicrohttpd \
|
|
||||||
-lgnunetutil \
|
|
||||||
-lgnunetjson \
|
|
||||||
-ljansson \
|
|
||||||
-lpthread
|
|
||||||
|
|
||||||
test_taler_exchange_wirewatch_postgres_SOURCES = \
|
|
||||||
test_taler_exchange_wirewatch.c
|
|
||||||
test_taler_exchange_wirewatch_postgres_LDADD = \
|
|
||||||
$(LIBGCRYPT_LIBS) \
|
|
||||||
$(top_builddir)/src/exchangedb/libtalerexchangedb.la \
|
|
||||||
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
|
|
||||||
$(top_builddir)/src/json/libtalerjson.la \
|
|
||||||
$(top_builddir)/src/util/libtalerutil.la \
|
|
||||||
-lmicrohttpd \
|
|
||||||
-lgnunetutil \
|
|
||||||
-lgnunetjson \
|
|
||||||
-lgnunetpq \
|
|
||||||
-ljansson \
|
|
||||||
-lpthread
|
|
||||||
|
|
||||||
check_PROGRAMS = \
|
|
||||||
test_taler_exchange_aggregator-postgres \
|
|
||||||
test_taler_exchange_wirewatch-postgres
|
|
||||||
|
|
||||||
AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;
|
|
||||||
|
|
||||||
TESTS = \
|
TESTS = \
|
||||||
$(check_SCRIPTS) \
|
$(check_SCRIPTS)
|
||||||
$(check_PROGRAMS)
|
|
||||||
|
|
||||||
|
# Distribution
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
test-taler-exchange-aggregator-postgres.conf \
|
|
||||||
test-taler-exchange-wirewatch-postgres.conf \
|
|
||||||
test_taler_exchange_httpd_home/.local/share/taler/exchange/offline-keys/master.priv \
|
test_taler_exchange_httpd_home/.local/share/taler/exchange/offline-keys/master.priv \
|
||||||
test_taler_exchange_httpd.conf \
|
test_taler_exchange_httpd.conf \
|
||||||
exchange.conf \
|
exchange.conf \
|
||||||
|
@ -6,6 +6,8 @@ if USE_COVERAGE
|
|||||||
XLIB = -lgcov
|
XLIB = -lgcov
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Libraries
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
lib_LTLIBRARIES = \
|
||||||
libtalerauditor.la \
|
libtalerauditor.la \
|
||||||
libtalerexchange.la \
|
libtalerexchange.la \
|
||||||
@ -37,7 +39,13 @@ libtalerexchange_la_LIBADD = \
|
|||||||
-lgnunetutil \
|
-lgnunetutil \
|
||||||
-ljansson \
|
-ljansson \
|
||||||
$(XLIB)
|
$(XLIB)
|
||||||
|
if HAVE_LIBCURL
|
||||||
|
libtalerexchange_la_LIBADD += -lcurl
|
||||||
|
else
|
||||||
|
if HAVE_LIBGNURL
|
||||||
|
libtalerexchange_la_LIBADD += -lgnurl
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
libtalerauditor_la_LDFLAGS = \
|
libtalerauditor_la_LDFLAGS = \
|
||||||
-version-info 0:0:0 \
|
-version-info 0:0:0 \
|
||||||
@ -56,7 +64,6 @@ libtalerauditor_la_LIBADD = \
|
|||||||
-lgnunetutil \
|
-lgnunetutil \
|
||||||
-ljansson \
|
-ljansson \
|
||||||
$(XLIB)
|
$(XLIB)
|
||||||
|
|
||||||
if HAVE_LIBCURL
|
if HAVE_LIBCURL
|
||||||
libtalerauditor_la_LIBADD += -lcurl
|
libtalerauditor_la_LIBADD += -lcurl
|
||||||
else
|
else
|
||||||
@ -65,7 +72,6 @@ libtalerauditor_la_LIBADD += -lgnurl
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
libtalertesting_la_LDFLAGS = \
|
libtalertesting_la_LDFLAGS = \
|
||||||
-version-info 0:0:0 \
|
-version-info 0:0:0 \
|
||||||
-no-undefined
|
-no-undefined
|
||||||
@ -135,30 +141,63 @@ libtalertesting_la_LIBADD = \
|
|||||||
-ljansson \
|
-ljansson \
|
||||||
$(XLIB)
|
$(XLIB)
|
||||||
|
|
||||||
if HAVE_LIBCURL
|
# Testcases
|
||||||
libtalerexchange_la_LIBADD += -lcurl
|
|
||||||
else
|
AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;
|
||||||
if HAVE_LIBGNURL
|
|
||||||
libtalerexchange_la_LIBADD += -lgnurl
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
check_PROGRAMS = \
|
check_PROGRAMS = \
|
||||||
test_auditor_api_version \
|
|
||||||
test_auditor_api \
|
test_auditor_api \
|
||||||
|
test_auditor_api_version \
|
||||||
test_bank_api_with_fakebank \
|
test_bank_api_with_fakebank \
|
||||||
test_bank_api_with_pybank \
|
test_bank_api_with_pybank \
|
||||||
test_exchange_api \
|
test_exchange_api \
|
||||||
test_exchange_api_keys_cherry_picking \
|
test_exchange_api_keys_cherry_picking \
|
||||||
test_exchange_api_overlapping_keys_bug
|
test_exchange_api_overlapping_keys_bug \
|
||||||
|
test_taler_exchange_aggregator-postgres \
|
||||||
|
test_taler_exchange_wirewatch-postgres
|
||||||
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 \
|
||||||
test_bank_api_with_fakebank_twisted
|
test_bank_api_with_pybank_twisted
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
TESTS = \
|
||||||
|
$(check_PROGRAMS)
|
||||||
|
|
||||||
|
test_auditor_api_SOURCES = \
|
||||||
|
test_auditor_api.c
|
||||||
|
test_auditor_api_LDADD = \
|
||||||
|
libtalerauditor.la \
|
||||||
|
libtalertesting.la \
|
||||||
|
libtalerexchange.la \
|
||||||
|
$(LIBGCRYPT_LIBS) \
|
||||||
|
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
|
||||||
|
$(top_builddir)/src/bank-lib/libtalerbank.la \
|
||||||
|
$(top_builddir)/src/json/libtalerjson.la \
|
||||||
|
$(top_builddir)/src/util/libtalerutil.la \
|
||||||
|
-lgnunetcurl \
|
||||||
|
-lgnunetutil \
|
||||||
|
-ljansson
|
||||||
|
|
||||||
|
test_auditor_api_version_SOURCES = \
|
||||||
|
test_auditor_api_version.c
|
||||||
|
test_auditor_api_version_LDADD = \
|
||||||
|
libtalerauditor.la \
|
||||||
|
$(LIBGCRYPT_LIBS) \
|
||||||
|
$(top_builddir)/src/util/libtalerutil.la \
|
||||||
|
-lgnunetcurl \
|
||||||
|
-lgnunetutil \
|
||||||
|
-ljansson
|
||||||
|
|
||||||
|
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_bank_api_with_pybank_SOURCES = \
|
test_bank_api_with_pybank_SOURCES = \
|
||||||
test_bank_api.c
|
test_bank_api.c
|
||||||
test_bank_api_with_pybank_LDADD = \
|
test_bank_api_with_pybank_LDADD = \
|
||||||
@ -167,13 +206,74 @@ test_bank_api_with_pybank_LDADD = \
|
|||||||
-lgnunetutil \
|
-lgnunetutil \
|
||||||
$(top_builddir)/src/bank-lib/libtalerbank.la
|
$(top_builddir)/src/bank-lib/libtalerbank.la
|
||||||
|
|
||||||
test_bank_api_with_fakebank_SOURCES = \
|
test_exchange_api_SOURCES = \
|
||||||
test_bank_api.c
|
test_exchange_api.c
|
||||||
test_bank_api_with_fakebank_LDADD = \
|
test_exchange_api_LDADD = \
|
||||||
$(top_builddir)/src/lib/libtalertesting.la \
|
libtalertesting.la \
|
||||||
-ltalerexchange \
|
libtalerexchange.la \
|
||||||
|
$(LIBGCRYPT_LIBS) \
|
||||||
|
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
|
||||||
|
$(top_builddir)/src/bank-lib/libtalerbank.la \
|
||||||
|
$(top_builddir)/src/json/libtalerjson.la \
|
||||||
|
$(top_builddir)/src/util/libtalerutil.la \
|
||||||
|
-lgnunetcurl \
|
||||||
-lgnunetutil \
|
-lgnunetutil \
|
||||||
libtalerbank.la
|
-ljansson
|
||||||
|
|
||||||
|
test_exchange_api_keys_cherry_picking_SOURCES = \
|
||||||
|
test_exchange_api_keys_cherry_picking.c
|
||||||
|
test_exchange_api_keys_cherry_picking_LDADD = \
|
||||||
|
libtalertesting.la \
|
||||||
|
libtalerexchange.la \
|
||||||
|
$(LIBGCRYPT_LIBS) \
|
||||||
|
$(top_builddir)/src/json/libtalerjson.la \
|
||||||
|
$(top_builddir)/src/util/libtalerutil.la \
|
||||||
|
$(top_builddir)/src/bank-lib/libtalerbank.la \
|
||||||
|
-lgnunetcurl \
|
||||||
|
-lgnunetutil \
|
||||||
|
-ljansson
|
||||||
|
|
||||||
|
test_exchange_api_overlapping_keys_bug_SOURCES = \
|
||||||
|
test_exchange_api_overlapping_keys_bug.c
|
||||||
|
test_exchange_api_overlapping_keys_bug_LDADD = \
|
||||||
|
libtalertesting.la \
|
||||||
|
libtalerexchange.la \
|
||||||
|
$(LIBGCRYPT_LIBS) \
|
||||||
|
$(top_builddir)/src/json/libtalerjson.la \
|
||||||
|
$(top_builddir)/src/util/libtalerutil.la \
|
||||||
|
$(top_builddir)/src/bank-lib/libtalerbank.la \
|
||||||
|
-lgnunetcurl \
|
||||||
|
-lgnunetutil \
|
||||||
|
-ljansson
|
||||||
|
|
||||||
|
test_taler_exchange_aggregator_postgres_SOURCES = \
|
||||||
|
test_taler_exchange_aggregator.c
|
||||||
|
test_taler_exchange_aggregator_postgres_LDADD = \
|
||||||
|
$(LIBGCRYPT_LIBS) \
|
||||||
|
$(top_builddir)/src/exchangedb/libtalerexchangedb.la \
|
||||||
|
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
|
||||||
|
$(top_builddir)/src/json/libtalerjson.la \
|
||||||
|
$(top_builddir)/src/util/libtalerutil.la \
|
||||||
|
-lmicrohttpd \
|
||||||
|
-lgnunetutil \
|
||||||
|
-lgnunetjson \
|
||||||
|
-ljansson \
|
||||||
|
-lpthread
|
||||||
|
|
||||||
|
test_taler_exchange_wirewatch_postgres_SOURCES = \
|
||||||
|
test_taler_exchange_wirewatch.c
|
||||||
|
test_taler_exchange_wirewatch_postgres_LDADD = \
|
||||||
|
$(LIBGCRYPT_LIBS) \
|
||||||
|
$(top_builddir)/src/exchangedb/libtalerexchangedb.la \
|
||||||
|
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
|
||||||
|
$(top_builddir)/src/json/libtalerjson.la \
|
||||||
|
$(top_builddir)/src/util/libtalerutil.la \
|
||||||
|
-lmicrohttpd \
|
||||||
|
-lgnunetutil \
|
||||||
|
-lgnunetjson \
|
||||||
|
-lgnunetpq \
|
||||||
|
-ljansson \
|
||||||
|
-lpthread
|
||||||
|
|
||||||
test_exchange_api_twisted_SOURCES = \
|
test_exchange_api_twisted_SOURCES = \
|
||||||
test_exchange_api_twisted.c
|
test_exchange_api_twisted.c
|
||||||
@ -220,83 +320,13 @@ test_bank_api_with_pybank_twisted_LDADD = \
|
|||||||
-ljansson
|
-ljansson
|
||||||
|
|
||||||
|
|
||||||
|
# Distribution
|
||||||
AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;
|
|
||||||
|
|
||||||
TESTS = \
|
|
||||||
$(check_PROGRAMS)
|
|
||||||
|
|
||||||
test_exchange_api_SOURCES = \
|
|
||||||
test_exchange_api.c
|
|
||||||
test_exchange_api_LDADD = \
|
|
||||||
libtalertesting.la \
|
|
||||||
libtalerexchange.la \
|
|
||||||
$(LIBGCRYPT_LIBS) \
|
|
||||||
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
|
|
||||||
$(top_builddir)/src/bank-lib/libtalerbank.la \
|
|
||||||
$(top_builddir)/src/json/libtalerjson.la \
|
|
||||||
$(top_builddir)/src/util/libtalerutil.la \
|
|
||||||
-lgnunetcurl \
|
|
||||||
-lgnunetutil \
|
|
||||||
-ljansson
|
|
||||||
|
|
||||||
test_exchange_api_overlapping_keys_bug_SOURCES = \
|
|
||||||
test_exchange_api_overlapping_keys_bug.c
|
|
||||||
test_exchange_api_overlapping_keys_bug_LDADD = \
|
|
||||||
libtalertesting.la \
|
|
||||||
libtalerexchange.la \
|
|
||||||
$(LIBGCRYPT_LIBS) \
|
|
||||||
$(top_builddir)/src/json/libtalerjson.la \
|
|
||||||
$(top_builddir)/src/util/libtalerutil.la \
|
|
||||||
$(top_builddir)/src/bank-lib/libtalerbank.la \
|
|
||||||
-lgnunetcurl \
|
|
||||||
-lgnunetutil \
|
|
||||||
-ljansson
|
|
||||||
|
|
||||||
test_exchange_api_keys_cherry_picking_SOURCES = \
|
|
||||||
test_exchange_api_keys_cherry_picking.c
|
|
||||||
test_exchange_api_keys_cherry_picking_LDADD = \
|
|
||||||
libtalertesting.la \
|
|
||||||
libtalerexchange.la \
|
|
||||||
$(LIBGCRYPT_LIBS) \
|
|
||||||
$(top_builddir)/src/json/libtalerjson.la \
|
|
||||||
$(top_builddir)/src/util/libtalerutil.la \
|
|
||||||
$(top_builddir)/src/bank-lib/libtalerbank.la \
|
|
||||||
-lgnunetcurl \
|
|
||||||
-lgnunetutil \
|
|
||||||
-ljansson
|
|
||||||
|
|
||||||
test_auditor_api_SOURCES = \
|
|
||||||
test_auditor_api.c
|
|
||||||
test_auditor_api_LDADD = \
|
|
||||||
libtalerauditor.la \
|
|
||||||
libtalertesting.la \
|
|
||||||
libtalerexchange.la \
|
|
||||||
$(LIBGCRYPT_LIBS) \
|
|
||||||
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
|
|
||||||
$(top_builddir)/src/bank-lib/libtalerbank.la \
|
|
||||||
$(top_builddir)/src/json/libtalerjson.la \
|
|
||||||
$(top_builddir)/src/util/libtalerutil.la \
|
|
||||||
-lgnunetcurl \
|
|
||||||
-lgnunetutil \
|
|
||||||
-ljansson
|
|
||||||
|
|
||||||
|
|
||||||
test_auditor_api_version_SOURCES = \
|
|
||||||
test_auditor_api_version.c
|
|
||||||
test_auditor_api_version_LDADD = \
|
|
||||||
libtalerauditor.la \
|
|
||||||
$(LIBGCRYPT_LIBS) \
|
|
||||||
$(top_builddir)/src/util/libtalerutil.la \
|
|
||||||
-lgnunetcurl \
|
|
||||||
-lgnunetutil \
|
|
||||||
-ljansson
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
bank.conf \
|
bank.conf \
|
||||||
bank_twisted.conf \
|
bank_twisted.conf \
|
||||||
|
test_auditor_api.conf \
|
||||||
|
test_auditor_api_expire_reserve_now.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 \
|
||||||
@ -310,5 +340,5 @@ EXTRA_DIST = \
|
|||||||
test_exchange_api_keys_cherry_picking_extended.conf \
|
test_exchange_api_keys_cherry_picking_extended.conf \
|
||||||
test_exchange_api_keys_cherry_picking_extended_2.conf \
|
test_exchange_api_keys_cherry_picking_extended_2.conf \
|
||||||
test_exchange_api_expire_reserve_now.conf \
|
test_exchange_api_expire_reserve_now.conf \
|
||||||
test_auditor_api.conf \
|
test-taler-exchange-aggregator-postgres.conf \
|
||||||
test_auditor_api_expire_reserve_now.conf
|
test-taler-exchange-wirewatch-postgres.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user