Makefile.am (7904B)
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 101 if HAVE_DONAU 102 libtalermerchanttesting_la_SOURCES += \ 103 testing_api_cmd_post_donau_charity_merchant.c \ 104 testing_api_cmd_post_donau_instances.c \ 105 testing_api_cmd_get_donau_instances.c \ 106 testing_api_cmd_delete_donau_instances.c 107 endif 108 109 libtalermerchanttesting_la_LIBADD = \ 110 $(top_srcdir)/src/lib/libtalermerchant.la \ 111 -ltalerbank \ 112 -ltalerexchange \ 113 -ltalerjson \ 114 -ltalermhd \ 115 -ltalerutil \ 116 -lgnunetcurl \ 117 -lgnunetjson \ 118 -lgnunetutil \ 119 -ljansson \ 120 -lmicrohttpd \ 121 -ltalertesting \ 122 -lm \ 123 $(XLIB) 124 125 if HAVE_DONAU 126 libtalermerchanttesting_la_LIBADD += \ 127 -ldonautesting 128 endif 129 130 131 if HAVE_TALERFAKEBANK 132 check_PROGRAMS = \ 133 test_reconciliation_rsa \ 134 test_merchant_api_cs \ 135 test_merchant_api_rsa \ 136 test_kyc_api 137 138 if HAVE_TWISTER 139 check_PROGRAMS += \ 140 test_merchant_api_twisted_cs \ 141 test_merchant_api_twisted_rsa 142 endif 143 endif 144 145 TESTS = \ 146 $(check_PROGRAMS) \ 147 $(check_SCRIPTS) 148 149 AM_TESTS_ENVIRONMENT=export TALER_MERCHANT_PREFIX=$${TALER_MERCHANT_PREFIX:-@libdir@};export PATH=$${TALER_MERCHANT_PREFIX:-@prefix@}/bin:$$PATH; 150 151 test_merchant_api_twisted_cs_SOURCES = \ 152 test_merchant_api_twisted.c 153 test_merchant_api_twisted_cs_LDADD = \ 154 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 155 $(top_srcdir)/src/lib/libtalermerchant.la \ 156 $(top_srcdir)/src/util/libtalermerchantutil.la \ 157 $(LIBGCRYPT_LIBS) \ 158 -ltalertesting \ 159 -ltalermerchanttesting \ 160 -ltalertwistertesting \ 161 -ltalerfakebank \ 162 -ltalerbank \ 163 -ltalerexchange \ 164 -ltalerjson \ 165 -ltalerutil \ 166 -lgnunetjson \ 167 -lgnunetcurl \ 168 -lgnunetutil \ 169 -ljansson \ 170 -ltalertwister \ 171 $(XLIB) 172 173 test_merchant_api_twisted_rsa_SOURCES = \ 174 test_merchant_api_twisted.c 175 test_merchant_api_twisted_rsa_LDADD = \ 176 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 177 $(top_srcdir)/src/lib/libtalermerchant.la \ 178 $(top_srcdir)/src/util/libtalermerchantutil.la \ 179 $(LIBGCRYPT_LIBS) \ 180 -ltalertesting \ 181 -ltalermerchanttesting \ 182 -ltalertwistertesting \ 183 -ltalerfakebank \ 184 -ltalerbank \ 185 -ltalerexchange \ 186 -ltalerjson \ 187 -ltalerutil \ 188 -lgnunetjson \ 189 -lgnunetcurl \ 190 -lgnunetutil \ 191 -ljansson \ 192 -ltalertwister \ 193 $(XLIB) 194 195 test_merchant_api_cs_SOURCES = \ 196 test_merchant_api.c 197 test_merchant_api_cs_LDADD = \ 198 libtalermerchanttesting.la \ 199 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 200 $(top_srcdir)/src/lib/libtalermerchant.la \ 201 $(top_srcdir)/src/util/libtalermerchantutil.la \ 202 $(LIBGCRYPT_LIBS) \ 203 -ltalertesting \ 204 -ltalerfakebank \ 205 -ltalerbank \ 206 -ltalerexchange \ 207 -ltalerjson \ 208 -ltalerutil \ 209 -lgnunetjson \ 210 -lgnunetcurl \ 211 -lgnunetutil \ 212 -ljansson \ 213 $(XLIB) 214 215 if HAVE_DONAU 216 test_merchant_api_cs_LDADD += \ 217 -ldonautesting 218 endif 219 220 test_merchant_api_rsa_SOURCES = \ 221 test_merchant_api.c 222 test_merchant_api_rsa_LDADD = \ 223 libtalermerchanttesting.la \ 224 $(top_srcdir)/src/util/libtalermerchantutil.la \ 225 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 226 $(top_srcdir)/src/lib/libtalermerchant.la \ 227 $(LIBGCRYPT_LIBS) \ 228 -ltalertesting \ 229 -ltalerfakebank \ 230 -ltalerbank \ 231 -ltalerexchange \ 232 -ltalerjson \ 233 -ltalerutil \ 234 -lgnunetjson \ 235 -lgnunetcurl \ 236 -lgnunetutil \ 237 -ljansson \ 238 $(XLIB) 239 240 test_reconciliation_rsa_SOURCES = \ 241 test_reconciliation.c 242 test_reconciliation_rsa_LDADD = \ 243 libtalermerchanttesting.la \ 244 $(top_srcdir)/src/util/libtalermerchantutil.la \ 245 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 246 $(top_srcdir)/src/lib/libtalermerchant.la \ 247 $(LIBGCRYPT_LIBS) \ 248 -ltalertesting \ 249 -ltalerfakebank \ 250 -ltalerbank \ 251 -ltalerexchange \ 252 -ltalerjson \ 253 -ltalerutil \ 254 -lgnunetjson \ 255 -lgnunetcurl \ 256 -lgnunetutil \ 257 -ljansson \ 258 $(XLIB) 259 260 if HAVE_DONAU 261 test_merchant_api_rsa_LDADD += \ 262 -ldonautesting 263 endif 264 265 test_kyc_api_SOURCES = \ 266 test_kyc_api.c 267 test_kyc_api_LDADD = \ 268 libtalermerchanttesting.la \ 269 $(top_srcdir)/src/util/libtalermerchantutil.la \ 270 $(top_srcdir)/src/backenddb/libtalermerchantdb.la \ 271 $(top_srcdir)/src/lib/libtalermerchant.la \ 272 $(LIBGCRYPT_LIBS) \ 273 -ltalertesting \ 274 -ltalerfakebank \ 275 -ltalerbank \ 276 -ltalerexchange \ 277 -ltalerjson \ 278 -ltalerutil \ 279 -lgnunetjson \ 280 -lgnunetcurl \ 281 -lgnunetutil \ 282 -ljansson \ 283 $(XLIB) 284 285 EXTRA_DIST = \ 286 setup.sh \ 287 test_key_rotation.conf \ 288 test_kyc_api.conf \ 289 test_merchant_api.conf \ 290 test_merchant_api-cs.conf \ 291 test_merchant_api-rsa.conf \ 292 test_merchant_api_twisted-cs.conf \ 293 test_merchant_api_twisted-rsa.conf \ 294 test_merchant_api_proxy_merchant.conf \ 295 test_merchant_api_proxy_exchange.conf \ 296 test_merchant.priv \ 297 test_template.conf \ 298 $(check_SCRIPTS) 299 300 301 MOSTLYCLEANFILES = \ 302 test_merchant_api_home/.local/share/taler/exchange/offline-keys/secm_tofus.pub