diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-21 15:39:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-21 15:39:48 +0100 |
commit | 82b0eda3ef736ea59c425141dba7d19c762248e5 (patch) | |
tree | bd1bee15148386a57ebe883233b0e38b0905bc21 /src/exchange-lib/Makefile.am | |
parent | cd0f9e8f8db0ec43e1b2828ee78cae6d41157029 (diff) |
new test interpreter architecture, first draft
Diffstat (limited to 'src/exchange-lib/Makefile.am')
-rw-r--r-- | src/exchange-lib/Makefile.am | 45 |
1 files changed, 40 insertions, 5 deletions
diff --git a/src/exchange-lib/Makefile.am b/src/exchange-lib/Makefile.am index 8aad8c9df..202e52a4d 100644 --- a/src/exchange-lib/Makefile.am +++ b/src/exchange-lib/Makefile.am @@ -7,12 +7,12 @@ if USE_COVERAGE endif lib_LTLIBRARIES = \ - libtalerexchange.la + libtalerexchange.la \ + libtalertesting.la libtalerexchange_la_LDFLAGS = \ -version-info 4:0:0 \ -no-undefined - libtalerexchange_la_SOURCES = \ exchange_api_common.c \ exchange_api_handle.c exchange_api_handle.h \ @@ -25,7 +25,6 @@ libtalerexchange_la_SOURCES = \ exchange_api_track_transaction.c \ exchange_api_track_transfer.c \ exchange_api_wire.c - libtalerexchange_la_LIBADD = \ $(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/util/libtalerutil.la \ @@ -35,6 +34,26 @@ libtalerexchange_la_LIBADD = \ -ljansson \ $(XLIB) + +libtalertesting_la_LDFLAGS = \ + -version-info 0:0:0 \ + -no-undefined +libtalertesting_la_SOURCES = \ + testing_api_loop.c \ + testing_api_traits.c \ + testing_api_cmd_fakebank_transfer.c \ + testing_api_trait_reserve_priv.c \ + testing_api_trait_coin_priv.c + +libtalertesting_la_LIBADD = \ + $(top_builddir)/src/json/libtalerjson.la \ + $(top_builddir)/src/util/libtalerutil.la \ + -lgnunetcurl \ + -lgnunetjson \ + -lgnunetutil \ + -ljansson \ + $(XLIB) + if HAVE_LIBCURL libtalerexchange_la_LIBADD += -lcurl else @@ -45,12 +64,14 @@ endif check_PROGRAMS = \ test_exchange_api \ - test_exchange_api_keys_cherry_picking + test_exchange_api_keys_cherry_picking \ + test_exchange_api_new AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH; TESTS = \ - $(check_PROGRAMS) + test_exchange_api \ + test_exchange_api_keys_cherry_picking test_exchange_api_SOURCES = \ test_exchange_api.c @@ -65,6 +86,20 @@ test_exchange_api_LDADD = \ -lgnunetutil \ -ljansson +test_exchange_api_new_SOURCES = \ + test_exchange_api_new.c +test_exchange_api_new_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_keys_cherry_picking_SOURCES = \ test_exchange_api_keys_cherry_picking.c test_exchange_api_keys_cherry_picking_LDADD = \ |