From ca55b5078f1b8331bbe571209beff24c914b6b33 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 12 Jan 2020 20:51:42 +0100 Subject: restructure tests and build system --- src/exchange/Makefile.am | 49 +++++++++--------------------------------------- 1 file changed, 9 insertions(+), 40 deletions(-) (limited to 'src/exchange/Makefile.am') diff --git a/src/exchange/Makefile.am b/src/exchange/Makefile.am index b08c85c6f..92bbb90d8 100644 --- a/src/exchange/Makefile.am +++ b/src/exchange/Makefile.am @@ -15,6 +15,8 @@ pkgcfgdir = $(prefix)/share/taler/config.d/ pkgcfg_DATA = \ exchange.conf +# Programs + bin_PROGRAMS = \ taler-exchange-aggregator \ taler-exchange-httpd \ @@ -88,57 +90,24 @@ taler_exchange_httpd_SOURCES += \ taler-exchange-httpd_test.c taler-exchange-httpd_test.h endif + +# Testcases + +AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH; + check_SCRIPTS = \ test_taler_exchange_httpd.sh - if HAVE_EXPENSIVE_TESTS check_SCRIPTS += \ test_taler_exchange_httpd_afl.sh 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 = \ - $(check_SCRIPTS) \ - $(check_PROGRAMS) + $(check_SCRIPTS) +# Distribution 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.conf \ exchange.conf \ -- cgit v1.2.3