summaryrefslogtreecommitdiff
path: root/src/bank-lib/Makefile.am
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-02-22 14:51:12 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-02-26 14:12:46 +0100
commitb593d416d6e788b2053c2f5ebb634e0bb39fe560 (patch)
treecf08a83fb1922c32d4a0e4ce161ae3ff20023a69 /src/bank-lib/Makefile.am
parent8d5cc9f550da58610ad220d72f21d930c47ad0a8 (diff)
downloadexchange-b593d416d6e788b2053c2f5ebb634e0bb39fe560.tar.gz
exchange-b593d416d6e788b2053c2f5ebb634e0bb39fe560.tar.bz2
exchange-b593d416d6e788b2053c2f5ebb634e0bb39fe560.zip
Bank-lib tests, using the new (libraries-based) style.
Diffstat (limited to 'src/bank-lib/Makefile.am')
-rw-r--r--src/bank-lib/Makefile.am43
1 files changed, 40 insertions, 3 deletions
diff --git a/src/bank-lib/Makefile.am b/src/bank-lib/Makefile.am
index 967d95ed..bd1c7e8b 100644
--- a/src/bank-lib/Makefile.am
+++ b/src/bank-lib/Makefile.am
@@ -21,7 +21,8 @@ taler_bank_transfer_LDADD = \
lib_LTLIBRARIES = \
libtalerbank.la \
- libtalerfakebank.la
+ libtalerfakebank.la \
+ libtalerbanktesting.la
libtalerbank_la_LDFLAGS = \
-version-info 1:0:0 \
@@ -41,7 +42,6 @@ libtalerbank_la_LIBADD = \
-ljansson \
$(XLIB)
-
libtalerfakebank_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined
@@ -57,6 +57,22 @@ libtalerfakebank_la_LIBADD = \
-lmicrohttpd \
$(XLIB)
+libtalerbanktesting_la_LDFLAGS = \
+ -version-info 0:0:0 \
+ -no-undefined
+
+libtalerbanktesting_la_SOURCES = \
+ testing_api_cmd_history.c \
+ testing_api_cmd_reject.c \
+ testing_api_helpers.c
+
+libtalerbanktesting_la_LIBADD = \
+ $(top_builddir)/src/json/libtalerjson.la \
+ -lgnunetjson \
+ -lgnunetutil \
+ -ljansson \
+ -lmicrohttpd \
+ $(XLIB)
if HAVE_LIBCURL
libtalerbank_la_LIBADD += -lcurl
@@ -68,7 +84,9 @@ endif
check_PROGRAMS = \
test_bank_api \
- test_bank_api_with_fakebank
+ test_bank_api_new \
+ test_bank_api_with_fakebank \
+ test_bank_api_with_fakebank_new
TESTS = \
$(check_PROGRAMS)
@@ -84,6 +102,15 @@ test_bank_api_LDADD = \
-lgnunetutil \
-ljansson
+test_bank_api_new_SOURCES = \
+ test_bank_api_new.c
+
+test_bank_api_new_LDADD = \
+ $(top_builddir)/src/exchange-lib/libtalertesting.la \
+ libtalerbanktesting.la \
+ -ltalerexchange \
+ -lgnunetutil \
+ libtalerbank.la
test_bank_api_with_fakebank_SOURCES = \
test_bank_interpreter.c test_bank_interpreter.h \
@@ -96,5 +123,15 @@ test_bank_api_with_fakebank_LDADD = \
-lgnunetutil \
-ljansson
+test_bank_api_with_fakebank_new_SOURCES = \
+ test_bank_api_with_fakebank_new.c
+
+test_bank_api_with_fakebank_new_LDADD = \
+ $(top_builddir)/src/exchange-lib/libtalertesting.la \
+ libtalerbanktesting.la \
+ -ltalerexchange \
+ -lgnunetutil \
+ libtalerbank.la
+
EXTRA_DIST = \
bank.conf