diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-02-22 14:51:12 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-02-26 14:12:46 +0100 |
commit | b593d416d6e788b2053c2f5ebb634e0bb39fe560 (patch) | |
tree | cf08a83fb1922c32d4a0e4ce161ae3ff20023a69 /src/bank-lib/Makefile.am | |
parent | 8d5cc9f550da58610ad220d72f21d930c47ad0a8 (diff) |
Bank-lib tests, using the new (libraries-based) style.
Diffstat (limited to 'src/bank-lib/Makefile.am')
-rw-r--r-- | src/bank-lib/Makefile.am | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/src/bank-lib/Makefile.am b/src/bank-lib/Makefile.am index 967d95ed3..bd1c7e8b1 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 |