Makefile.am (7683B)
1 # This Makefile.am is in the public domain 2 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/backend -I$(top_srcdir)/src/lib 3 4 if USE_COVERAGE 5 AM_CFLAGS = --coverage -O0 6 XLIB = -lgcov 7 endif 8 9 10 check_SCRIPTS = \ 11 test_merchant_instance_auth.sh \ 12 test_merchant_instance_creation.sh \ 13 test_merchant_instance_response.sh \ 14 test_merchant_instance_purge.sh \ 15 test_merchant_kyc.sh \ 16 test_merchant_order_creation.sh \ 17 test_merchant_order_autocleanup.sh \ 18 test_merchant_product_creation.sh \ 19 test_merchant_statistics.sh \ 20 test_merchant_templates.sh \ 21 test_merchant_transfer_tracking.sh \ 22 test-merchant-walletharness.sh \ 23 test_merchant_wirewatch.sh 24 25 lib_LTLIBRARIES = \ 26 libtalermerchanttesting.la 27 28 libtalermerchanttesting_la_LDFLAGS = \ 29 -version-info 4:1:1 \ 30 -no-undefined 31 32 libtalermerchanttesting_la_SOURCES = \ 33 testing_api_cmd_config.c \ 34 testing_api_cmd_abort_order.c \ 35 testing_api_cmd_claim_order.c \ 36 testing_api_cmd_depositcheck.c \ 37 testing_api_cmd_get_instance.c \ 38 testing_api_cmd_get_instances.c \ 39 testing_api_cmd_get_orders.c \ 40 testing_api_cmd_get_otp_device.c \ 41 testing_api_cmd_get_otp_devices.c \ 42 testing_api_cmd_get_product.c \ 43 testing_api_cmd_get_product_image.c \ 44 testing_api_cmd_get_products.c \ 45 testing_api_cmd_get_statisticsamount.c \ 46 testing_api_cmd_get_statisticscounter.c \ 47 testing_api_cmd_get_transfers.c \ 48 testing_api_cmd_get_templates.c \ 49 testing_api_cmd_get_template.c \ 50 testing_api_cmd_get_unit.c \ 51 testing_api_cmd_get_units.c \ 52 testing_api_cmd_get_webhooks.c \ 53 testing_api_cmd_get_webhook.c \ 54 testing_api_cmd_delete_account.c \ 55 testing_api_cmd_delete_instance.c \ 56 testing_api_cmd_delete_order.c \ 57 testing_api_cmd_delete_otp_device.c \ 58 testing_api_cmd_delete_product.c \ 59 testing_api_cmd_delete_template.c \ 60 testing_api_cmd_delete_unit.c \ 61 testing_api_cmd_delete_webhook.c \ 62 testing_api_cmd_delete_transfer.c \ 63 testing_api_cmd_exec_donaukeyupdate.c \ 64 testing_api_cmd_forget_order.c \ 65 testing_api_cmd_kyc_get.c \ 66 testing_api_cmd_lock_product.c \ 67 testing_api_cmd_instance_auth.c \ 68 testing_api_cmd_instance_token.c \ 69 testing_api_cmd_merchant_get_order.c \ 70 testing_api_cmd_patch_instance.c \ 71 testing_api_cmd_patch_otp_device.c \ 72 testing_api_cmd_patch_product.c \ 73 testing_api_cmd_patch_template.c \ 74 testing_api_cmd_patch_unit.c \ 75 testing_api_cmd_patch_webhook.c \ 76 testing_api_cmd_pay_order.c \ 77 testing_api_cmd_post_account.c \ 78 testing_api_cmd_post_instances.c \ 79 testing_api_cmd_post_orders_paid.c \ 80 testing_api_cmd_post_orders.c \ 81 testing_api_cmd_post_otp_devices.c \ 82 testing_api_cmd_post_categories.c \ 83 testing_api_cmd_post_products.c \ 84 testing_api_cmd_post_transfers.c \ 85 testing_api_cmd_post_templates.c \ 86 testing_api_cmd_post_units.c \ 87 testing_api_cmd_post_tokenfamilies.c \ 88 testing_api_cmd_post_using_templates.c \ 89 testing_api_cmd_post_webhooks.c \ 90 testing_api_cmd_refund_order.c \ 91 testing_api_cmd_tme.c \ 92 testing_api_cmd_wallet_get_order.c \ 93 testing_api_cmd_wallet_get_template.c \ 94 testing_api_cmd_wallet_post_orders_refund.c \ 95 testing_api_cmd_webhook.c \ 96 testing_api_cmd_testserver.c \ 97 testing_api_cmd_checkserver.c \ 98 testing_api_helpers.c \ 99 testing_api_traits.c \ 100 testing_api_cmd_post_donau_charity_merchant.c \ 101 testing_api_cmd_post_donau_instances.c \ 102 testing_api_cmd_get_donau_instances.c \ 103 testing_api_cmd_delete_donau_instances.c 104 105 libtalermerchanttesting_la_LIBADD = \ 106 $(top_srcdir)/src/lib/libtalermerchant.la \ 107 -ldonautesting \ 108 -ltalerbank \ 109 -ltalerexchange \ 110 -ltalerjson \ 111 -ltalermhd \ 112 -ltalerutil \ 113 -lgnunetcurl \ 114 -lgnunetjson \ 115 -lgnunetutil \ 116 -ljansson \ 117 -lmicrohttpd \ 118 -ltalertesting \ 119 -lm \ 120 $(XLIB) 121 122 if HAVE_TALERFAKEBANK 123 check_PROGRAMS = \ 124 test_reconciliation_rsa \ 125 test_merchant_api_cs \ 126 test_merchant_api_rsa \ 127 test_kyc_api 128 129 if HAVE_TWISTER 130 check_PROGRAMS += \ 131 test_merchant_api_twisted_cs \ 132 test_merchant_api_twisted_rsa 133 endif 134 endif 135 136 TESTS = \ 137 $(check_PROGRAMS) \ 138 $(check_SCRIPTS) 139 140 AM_TESTS_ENVIRONMENT=export TALER_MERCHANT_PREFIX=$${TALER_MERCHANT_PREFIX:-@libdir@};export PATH=$${TALER_MERCHANT_PREFIX:-@prefix@}/bin:$$PATH; 141 142 test_merchant_api_twisted_cs_SOURCES = \ 143 test_merchant_api_twisted.c 144 test_merchant_api_twisted_cs_LDADD = \ 145 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 146 $(top_srcdir)/src/lib/libtalermerchant.la \ 147 $(top_srcdir)/src/util/libtalermerchantutil.la \ 148 $(LIBGCRYPT_LIBS) \ 149 -ltalertesting \ 150 -ltalermerchanttesting \ 151 -ltalertwistertesting \ 152 -ltalerfakebank \ 153 -ltalerbank \ 154 -ltalerexchange \ 155 -ltalerjson \ 156 -ltalerutil \ 157 -lgnunetjson \ 158 -lgnunetcurl \ 159 -lgnunetutil \ 160 -ljansson \ 161 -ltalertwister \ 162 $(XLIB) 163 164 test_merchant_api_twisted_rsa_SOURCES = \ 165 test_merchant_api_twisted.c 166 test_merchant_api_twisted_rsa_LDADD = \ 167 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 168 $(top_srcdir)/src/lib/libtalermerchant.la \ 169 $(top_srcdir)/src/util/libtalermerchantutil.la \ 170 $(LIBGCRYPT_LIBS) \ 171 -ltalertesting \ 172 -ltalermerchanttesting \ 173 -ltalertwistertesting \ 174 -ltalerfakebank \ 175 -ltalerbank \ 176 -ltalerexchange \ 177 -ltalerjson \ 178 -ltalerutil \ 179 -lgnunetjson \ 180 -lgnunetcurl \ 181 -lgnunetutil \ 182 -ljansson \ 183 -ltalertwister \ 184 $(XLIB) 185 186 test_merchant_api_cs_SOURCES = \ 187 test_merchant_api.c 188 test_merchant_api_cs_LDADD = \ 189 libtalermerchanttesting.la \ 190 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 191 $(top_srcdir)/src/lib/libtalermerchant.la \ 192 $(top_srcdir)/src/util/libtalermerchantutil.la \ 193 $(LIBGCRYPT_LIBS) \ 194 -ldonautesting \ 195 -ltalertesting \ 196 -ltalerfakebank \ 197 -ltalerbank \ 198 -ltalerexchange \ 199 -ltalerjson \ 200 -ltalerutil \ 201 -lgnunetjson \ 202 -lgnunetcurl \ 203 -lgnunetutil \ 204 -ljansson \ 205 $(XLIB) 206 207 test_merchant_api_rsa_SOURCES = \ 208 test_merchant_api.c 209 test_merchant_api_rsa_LDADD = \ 210 libtalermerchanttesting.la \ 211 $(top_srcdir)/src/util/libtalermerchantutil.la \ 212 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 213 $(top_srcdir)/src/lib/libtalermerchant.la \ 214 $(LIBGCRYPT_LIBS) \ 215 -ldonautesting \ 216 -ltalertesting \ 217 -ltalerfakebank \ 218 -ltalerbank \ 219 -ltalerexchange \ 220 -ltalerjson \ 221 -ltalerutil \ 222 -lgnunetjson \ 223 -lgnunetcurl \ 224 -lgnunetutil \ 225 -ljansson \ 226 $(XLIB) 227 228 test_reconciliation_rsa_SOURCES = \ 229 test_reconciliation.c 230 test_reconciliation_rsa_LDADD = \ 231 libtalermerchanttesting.la \ 232 $(top_srcdir)/src/util/libtalermerchantutil.la \ 233 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 234 $(top_srcdir)/src/lib/libtalermerchant.la \ 235 $(LIBGCRYPT_LIBS) \ 236 -ltalertesting \ 237 -ltalerfakebank \ 238 -ltalerbank \ 239 -ltalerexchange \ 240 -ltalerjson \ 241 -ltalerutil \ 242 -lgnunetjson \ 243 -lgnunetcurl \ 244 -lgnunetutil \ 245 -ljansson \ 246 $(XLIB) 247 248 test_kyc_api_SOURCES = \ 249 test_kyc_api.c 250 test_kyc_api_LDADD = \ 251 libtalermerchanttesting.la \ 252 $(top_srcdir)/src/util/libtalermerchantutil.la \ 253 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 254 $(top_srcdir)/src/lib/libtalermerchant.la \ 255 $(LIBGCRYPT_LIBS) \ 256 -ltalertesting \ 257 -ltalerfakebank \ 258 -ltalerbank \ 259 -ltalerexchange \ 260 -ltalerjson \ 261 -ltalerutil \ 262 -lgnunetjson \ 263 -lgnunetcurl \ 264 -lgnunetutil \ 265 -ljansson \ 266 $(XLIB) 267 268 EXTRA_DIST = \ 269 setup.sh \ 270 test_key_rotation.conf \ 271 test_kyc_api.conf \ 272 test_merchant_api.conf \ 273 test_merchant_api-cs.conf \ 274 test_merchant_api-rsa.conf \ 275 test_merchant_api_twisted-cs.conf \ 276 test_merchant_api_twisted-rsa.conf \ 277 test_merchant_api_proxy_merchant.conf \ 278 test_merchant_api_proxy_exchange.conf \ 279 test_merchant.priv \ 280 test_template.conf \ 281 $(check_SCRIPTS) 282 283 284 MOSTLYCLEANFILES = \ 285 test_merchant_api_home/.local/share/taler/exchange/offline-keys/secm_tofus.pub