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