# This Makefile.am is in the public domain AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/backend if USE_COVERAGE AM_CFLAGS = --coverage -O0 XLIB = -lgcov endif check_SCRIPTS = \ test-merchant-walletharness.sh \ test_merchant_instance_auth.sh \ test_merchant_instance_creation.sh \ test_merchant_instance_response.sh \ test_merchant_instance_purge.sh \ test_merchant_reserve_creation.sh \ test_merchant_product_creation.sh \ test_merchant_order_creation.sh \ test_merchant_transfer_tracking.sh \ test_merchant_kyc.sh \ test_merchant_order_autocleanup.sh \ test_merchant_wirewatch.sh lib_LTLIBRARIES = \ libtalermerchanttesting.la libtalermerchanttesting_la_LDFLAGS = \ -version-info 2:0:0 \ -no-undefined libtalermerchanttesting_la_SOURCES = \ testing_api_cmd_config.c \ testing_api_cmd_abort_order.c \ testing_api_cmd_claim_order.c \ testing_api_cmd_depositcheck.c \ testing_api_cmd_get_instance.c \ testing_api_cmd_get_instances.c \ testing_api_cmd_get_orders.c \ testing_api_cmd_get_otp_device.c \ testing_api_cmd_get_otp_devices.c \ testing_api_cmd_get_product.c \ testing_api_cmd_get_products.c \ testing_api_cmd_get_reserve.c \ testing_api_cmd_get_reserves.c \ testing_api_cmd_get_rewards.c \ testing_api_cmd_get_transfers.c \ testing_api_cmd_get_templates.c \ testing_api_cmd_get_template.c \ testing_api_cmd_get_webhooks.c \ testing_api_cmd_get_webhook.c \ testing_api_cmd_delete_account.c \ testing_api_cmd_delete_instance.c \ testing_api_cmd_delete_order.c \ testing_api_cmd_delete_otp_device.c \ testing_api_cmd_delete_product.c \ testing_api_cmd_delete_template.c \ testing_api_cmd_delete_webhook.c \ testing_api_cmd_delete_reserve.c \ testing_api_cmd_delete_transfer.c \ testing_api_cmd_forget_order.c \ testing_api_cmd_kyc_get.c \ testing_api_cmd_lock_product.c \ testing_api_cmd_instance_auth.c \ testing_api_cmd_merchant_get_order.c \ testing_api_cmd_merchant_get_reward.c \ testing_api_cmd_patch_instance.c \ testing_api_cmd_patch_otp_device.c \ testing_api_cmd_patch_product.c \ testing_api_cmd_patch_template.c \ testing_api_cmd_patch_webhook.c \ testing_api_cmd_pay_order.c \ testing_api_cmd_post_account.c \ testing_api_cmd_post_instances.c \ testing_api_cmd_post_orders_paid.c \ testing_api_cmd_post_orders.c \ testing_api_cmd_post_otp_devices.c \ testing_api_cmd_post_products.c \ testing_api_cmd_post_reserves.c \ testing_api_cmd_post_transfers.c \ testing_api_cmd_post_templates.c \ testing_api_cmd_post_using_templates.c \ testing_api_cmd_post_webhooks.c \ testing_api_cmd_refund_order.c \ testing_api_cmd_reward_authorize.c \ testing_api_cmd_reward_pickup.c \ testing_api_cmd_tme.c \ testing_api_cmd_wallet_get_order.c \ testing_api_cmd_wallet_get_reward.c \ testing_api_cmd_wallet_post_orders_refund.c \ testing_api_cmd_webhook.c \ testing_api_cmd_testserver.c \ testing_api_cmd_checkserver.c \ testing_api_helpers.c \ testing_api_traits.c libtalermerchanttesting_la_LIBADD = \ $(top_srcdir)/src/lib/libtalermerchant.la \ -ltalerbank \ -ltalerexchange \ -ltalerjson \ -ltalermhd \ -ltalerutil \ -lgnunetcurl \ -lgnunetjson \ -lgnunetutil \ -ljansson \ -lmicrohttpd \ -ltalertesting \ $(XLIB) if HAVE_TALERFAKEBANK check_PROGRAMS = \ test_merchant_api_cs \ test_merchant_api_rsa \ test_kyc_api if HAVE_TWISTER check_PROGRAMS += \ test_merchant_api_twisted_cs \ test_merchant_api_twisted_rsa endif endif TESTS = \ $(check_PROGRAMS) \ $(check_SCRIPTS) test_merchant_api_twisted_cs_SOURCES = \ test_merchant_api_twisted.c test_merchant_api_twisted_cs_LDADD = \ $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ $(top_srcdir)/src/lib/libtalermerchant.la \ $(LIBGCRYPT_LIBS) \ -ltalertesting \ -ltalermerchanttesting \ -ltalertwistertesting \ -ltalerfakebank \ -ltalerbank \ -ltalerexchange \ -ltalerjson \ -ltalerutil \ -lgnunetjson \ -lgnunetcurl \ -lgnunetutil \ -ljansson \ -ltalertwister \ $(XLIB) test_merchant_api_twisted_rsa_SOURCES = \ test_merchant_api_twisted.c test_merchant_api_twisted_rsa_LDADD = \ $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ $(top_srcdir)/src/lib/libtalermerchant.la \ $(LIBGCRYPT_LIBS) \ -ltalertesting \ -ltalermerchanttesting \ -ltalertwistertesting \ -ltalerfakebank \ -ltalerbank \ -ltalerexchange \ -ltalerjson \ -ltalerutil \ -lgnunetjson \ -lgnunetcurl \ -lgnunetutil \ -ljansson \ -ltalertwister \ $(XLIB) test_merchant_api_cs_SOURCES = \ test_merchant_api.c test_merchant_api_cs_LDADD = \ libtalermerchanttesting.la \ $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ $(top_srcdir)/src/lib/libtalermerchant.la \ $(LIBGCRYPT_LIBS) \ -ltalertesting \ -ltalerfakebank \ -ltalerbank \ -ltalerexchange \ -ltalerjson \ -ltalerutil \ -lgnunetjson \ -lgnunetcurl \ -lgnunetutil \ -ljansson \ $(XLIB) test_merchant_api_rsa_SOURCES = \ test_merchant_api.c test_merchant_api_rsa_LDADD = \ libtalermerchanttesting.la \ $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ $(top_srcdir)/src/lib/libtalermerchant.la \ $(LIBGCRYPT_LIBS) \ -ltalertesting \ -ltalerfakebank \ -ltalerbank \ -ltalerexchange \ -ltalerjson \ -ltalerutil \ -lgnunetjson \ -lgnunetcurl \ -lgnunetutil \ -ljansson \ $(XLIB) test_kyc_api_SOURCES = \ test_kyc_api.c test_kyc_api_LDADD = \ libtalermerchanttesting.la \ $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ $(top_srcdir)/src/lib/libtalermerchant.la \ $(LIBGCRYPT_LIBS) \ -ltalertesting \ -ltalerfakebank \ -ltalerbank \ -ltalerexchange \ -ltalerjson \ -ltalerutil \ -lgnunetjson \ -lgnunetcurl \ -lgnunetutil \ -ljansson \ $(XLIB) EXTRA_DIST = \ setup.sh \ test_key_rotation.conf \ test_kyc_api.conf \ test_merchant_api.conf \ test_merchant_api-cs.conf \ test_merchant_api-rsa.conf \ test_merchant_api_twisted-cs.conf \ test_merchant_api_twisted-rsa.conf \ test_merchant_api_proxy_merchant.conf \ test_merchant_api_proxy_exchange.conf \ test_merchant_api_home/.local/share/taler/exchange-offline/master.priv \ test_merchant.priv \ test_template.conf \ $(check_SCRIPTS) MOSTLYCLEANFILES = \ test_merchant_api_home/.local/share/taler/exchange/offline-keys/secm_tofus.pub