diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-02-12 17:34:59 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-02-21 17:04:16 +0100 |
commit | 481eda431dca5a450ebcc6949753e8ba85e1f9be (patch) | |
tree | c65689f1e2c980cff77e56e0e04bc153e1242fe5 /src/lib/Makefile.am | |
parent | 7820b4b0021ba63027d140765c4167feeee40246 (diff) | |
download | merchant-481eda431dca5a450ebcc6949753e8ba85e1f9be.tar.gz merchant-481eda431dca5a450ebcc6949753e8ba85e1f9be.tar.bz2 merchant-481eda431dca5a450ebcc6949753e8ba85e1f9be.zip |
Implementing new style test instructions.
Diffstat (limited to 'src/lib/Makefile.am')
-rw-r--r-- | src/lib/Makefile.am | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index d953081f..93f154b7 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -7,12 +7,17 @@ if USE_COVERAGE endif lib_LTLIBRARIES = \ - libtalermerchant.la + libtalermerchant.la \ + libtalermerchanttesting.la libtalermerchant_la_LDFLAGS = \ -version-info 2:0:0 \ -no-undefined +libtalermerchanttesting_la_LDFLAGS = \ + -version-info 2:0:0 \ + -no-undefined + libtalermerchant_la_SOURCES = \ merchant_api_proposal.c \ merchant_api_pay.c \ @@ -35,6 +40,31 @@ libtalermerchant_la_LIBADD = \ -ljansson \ $(XLIB) +libtalermerchanttesting_la_SOURCES = \ + testing_api_cmd_proposal.c \ + testing_api_cmd_pay.c \ + testing_api_cmd_refund.c \ + testing_api_cmd_tip.c \ + testing_api_cmd_track.c \ + testing_api_cmd_history.c \ + testing_api_helpers.c \ + testing_api_trait_merchant_sig.c \ + testing_api_trait_string.c \ + testing_api_trait_hash.c \ + testing_api_trait_planchet.c \ + testing_api_trait_refund_entry.c + +libtalermerchanttesting_la_LIBADD = \ + -ltalerexchange \ + -ltalerjson \ + -ltalerutil \ + -lgnunetcurl \ + -lgnunetjson \ + -lgnunetutil \ + -ljansson \ + -ltalertesting \ + $(XLIB) + if HAVE_LIBCURL libtalermerchant_la_LIBADD += -lcurl else @@ -45,12 +75,31 @@ endif if HAVE_TALERFAKEBANK check_PROGRAMS = \ + test_merchant_api_new \ test_merchant_api endif TESTS = \ $(check_PROGRAMS) +test_merchant_api_new_SOURCES = \ + test_merchant_api_new.c +test_merchant_api_new_LDADD = \ + $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ + libtalermerchant.la \ + $(LIBGCRYPT_LIBS) \ + -ltalertesting \ + -ltalermerchanttesting \ + -ltalerfakebank \ + -ltalerbank \ + -ltalerexchange \ + -ltalerjson \ + -ltalerutil \ + -lgnunetjson \ + -lgnunetcurl \ + -lgnunetutil \ + -ljansson + test_merchant_api_SOURCES = \ test_merchant_api.c test_merchant_api_LDADD = \ |