merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

meson.build (11209B)


      1 # This build file is in the public domain
      2 
      3 
      4 check_SCRIPTS = [
      5     'test_merchant_instance_auth',
      6     'test_merchant_instance_creation',
      7     'test_merchant_instance_response',
      8     'test_merchant_instance_purge',
      9     'test_merchant_kyc',
     10     'test_merchant_order_creation',
     11     'test_merchant_order_autocleanup',
     12     'test_merchant_product_creation',
     13     'test_merchant_statistics',
     14     'test_merchant_templates',
     15     'test_merchant_transfer_tracking',
     16     'test-merchant-walletharness',
     17     'test_merchant_wirewatch',
     18 ]
     19 
     20 foreach f : check_SCRIPTS
     21     f_sh = '@0@.sh'.format(f)
     22     s = configure_file(input: f_sh, output: f_sh, copy: true)
     23     test(
     24         f,
     25         s,
     26         workdir: meson.current_build_dir(),
     27         suite: ['testing', 'integrationtests'],
     28         is_parallel: false,
     29     )
     30 
     31 endforeach
     32 
     33 
     34 libtalermerchanttesting_la_SOURCES = [
     35     'testing_api_cmd_config.c',
     36     'testing_api_cmd_abort_order.c',
     37     'testing_api_cmd_claim_order.c',
     38     'testing_api_cmd_depositcheck.c',
     39     'testing_api_cmd_get_instance.c',
     40     'testing_api_cmd_get_instances.c',
     41     'testing_api_cmd_get_orders.c',
     42     'testing_api_cmd_get_otp_device.c',
     43     'testing_api_cmd_get_otp_devices.c',
     44     'testing_api_cmd_get_product.c',
     45     'testing_api_cmd_get_product_image.c',
     46     'testing_api_cmd_get_products.c',
     47     'testing_api_cmd_get_statisticsamount.c',
     48     'testing_api_cmd_get_statisticscounter.c',
     49     'testing_api_cmd_get_transfers.c',
     50     'testing_api_cmd_get_templates.c',
     51     'testing_api_cmd_get_template.c',
     52     'testing_api_cmd_get_unit.c',
     53     'testing_api_cmd_get_units.c',
     54     'testing_api_cmd_get_webhooks.c',
     55     'testing_api_cmd_get_webhook.c',
     56     'testing_api_cmd_delete_account.c',
     57     'testing_api_cmd_delete_instance.c',
     58     'testing_api_cmd_delete_order.c',
     59     'testing_api_cmd_delete_otp_device.c',
     60     'testing_api_cmd_delete_product.c',
     61     'testing_api_cmd_delete_template.c',
     62     'testing_api_cmd_delete_unit.c',
     63     'testing_api_cmd_delete_webhook.c',
     64     'testing_api_cmd_delete_transfer.c',
     65     'testing_api_cmd_exec_donaukeyupdate.c',
     66     'testing_api_cmd_forget_order.c',
     67     'testing_api_cmd_kyc_get.c',
     68     'testing_api_cmd_lock_product.c',
     69     'testing_api_cmd_instance_auth.c',
     70     'testing_api_cmd_instance_token.c',
     71     'testing_api_cmd_merchant_get_order.c',
     72     'testing_api_cmd_patch_instance.c',
     73     'testing_api_cmd_patch_otp_device.c',
     74     'testing_api_cmd_patch_product.c',
     75     'testing_api_cmd_patch_template.c',
     76     'testing_api_cmd_patch_unit.c',
     77     'testing_api_cmd_patch_webhook.c',
     78     'testing_api_cmd_pay_order.c',
     79     'testing_api_cmd_post_account.c',
     80     'testing_api_cmd_post_instances.c',
     81     'testing_api_cmd_post_orders_paid.c',
     82     'testing_api_cmd_post_orders.c',
     83     'testing_api_cmd_post_otp_devices.c',
     84     'testing_api_cmd_post_categories.c',
     85     'testing_api_cmd_post_products.c',
     86     'testing_api_cmd_post_transfers.c',
     87     'testing_api_cmd_post_templates.c',
     88     'testing_api_cmd_post_units.c',
     89     'testing_api_cmd_post_tokenfamilies.c',
     90     'testing_api_cmd_post_using_templates.c',
     91     'testing_api_cmd_post_webhooks.c',
     92     'testing_api_cmd_refund_order.c',
     93     'testing_api_cmd_tme.c',
     94     'testing_api_cmd_wallet_get_order.c',
     95     'testing_api_cmd_wallet_get_template.c',
     96     'testing_api_cmd_wallet_post_orders_refund.c',
     97     'testing_api_cmd_webhook.c',
     98     'testing_api_cmd_testserver.c',
     99     'testing_api_cmd_checkserver.c',
    100     'testing_api_helpers.c',
    101     'testing_api_traits.c',
    102     'testing_api_cmd_post_donau_charity_merchant.c',
    103     'testing_api_cmd_post_donau_instances.c',
    104     'testing_api_cmd_get_donau_instances.c',
    105     'testing_api_cmd_delete_donau_instances.c',
    106 ]
    107 
    108 
    109 libtalermerchanttesting = library(
    110     'talermerchanttesting',
    111     libtalermerchanttesting_la_SOURCES,
    112     soversion: solibversions['libtalermerchanttesting']['soversion'],
    113     version: solibversions['libtalermerchanttesting']['soversion'],
    114     install_rpath: rpath_option,
    115     dependencies: [
    116         donau_dep,
    117         donauutil_dep,
    118         libtalermerchant_dep,
    119         donautesting_dep,
    120         talerexchange_dep,
    121         talermhd_dep,
    122         talerbank_dep,
    123         talertesting_dep,
    124         talerjson_dep,
    125         talerutil_dep,
    126         gnunetutil_dep,
    127         gnunetcurl_dep,
    128         gnunetjson_dep,
    129         json_dep,
    130         mhd_dep,
    131         m_dep,
    132     ],
    133     include_directories: [incdir, configuration_inc],
    134     install: true,
    135     install_dir: get_option('libdir'),
    136 )
    137 
    138 libtalermerchanttesting_dep = declare_dependency(
    139     link_with: libtalermerchanttesting,
    140 )
    141 pkg.generate(
    142     libtalermerchanttesting,
    143     url: 'https://taler.net',
    144     description: 'GNU Taler merchant testing library',
    145 )
    146 
    147 if talerfakebank_dep.found()
    148     if twister_dep.found()
    149         test_merchant_api_twisted_cs = executable(
    150             'test_merchant_api_twisted_cs',
    151             ['test_merchant_api_twisted.c'],
    152             dependencies: [
    153                 talertesting_dep,
    154                 libtalermerchant_dep,
    155                 libtalermerchantutil_dep,
    156                 libtalermerchantdb_dep,
    157                 libtalermerchanttesting_dep,
    158                 talertwistertesting_dep,
    159                 twister_dep,
    160                 talerexchange_dep,
    161                 talerbank_dep,
    162                 talerfakebank_dep,
    163                 talerjson_dep,
    164                 talerutil_dep,
    165                 json_dep,
    166                 gcrypt_dep,
    167                 gnunetutil_dep,
    168                 gnunetjson_dep,
    169                 gnunetcurl_dep,
    170             ],
    171             include_directories: [incdir, configuration_inc],
    172             build_by_default: false,
    173             install: false,
    174         )
    175         test(
    176             'test_merchant_api_twisted_cs',
    177             test_merchant_api_twisted_cs,
    178             workdir: meson.current_build_dir(),
    179             suite: ['testing', 'integrationtests'],
    180             is_parallel: false,
    181         )
    182 
    183 
    184         test_merchant_api_twisted_rsa = executable(
    185             'test_merchant_api_twisted_rsa',
    186             ['test_merchant_api_twisted.c'],
    187             dependencies: [
    188                 talertesting_dep,
    189                 libtalermerchant_dep,
    190                 libtalermerchantutil_dep,
    191                 libtalermerchantdb_dep,
    192                 libtalermerchanttesting_dep,
    193                 talertwistertesting_dep,
    194                 twister_dep,
    195                 talerexchange_dep,
    196                 talerbank_dep,
    197                 talerfakebank_dep,
    198                 talerjson_dep,
    199                 talerutil_dep,
    200                 json_dep,
    201                 gcrypt_dep,
    202                 gnunetutil_dep,
    203                 gnunetjson_dep,
    204                 gnunetcurl_dep,
    205             ],
    206             include_directories: [incdir, configuration_inc],
    207             build_by_default: false,
    208             install: false,
    209         )
    210         test(
    211             'test_merchant_api_twisted_rsa',
    212             test_merchant_api_twisted_rsa,
    213             workdir: meson.current_build_dir(),
    214             suite: ['testing', 'integrationtests'],
    215             is_parallel: false,
    216         )
    217 
    218     endif
    219 
    220     test_merchant_api_cs = executable(
    221         'test_merchant_api_cs',
    222         ['test_merchant_api.c'],
    223         dependencies: [
    224             donautesting_dep,
    225             talertesting_dep,
    226             libtalermerchant_dep,
    227             libtalermerchantutil_dep,
    228             libtalermerchantdb_dep,
    229             libtalermerchanttesting_dep,
    230             talerexchange_dep,
    231             talerbank_dep,
    232             talerfakebank_dep,
    233             talerjson_dep,
    234             talerutil_dep,
    235             json_dep,
    236             gcrypt_dep,
    237             gnunetutil_dep,
    238             gnunetjson_dep,
    239             gnunetcurl_dep,
    240         ],
    241         include_directories: [incdir, configuration_inc],
    242         build_by_default: false,
    243         install: false,
    244     )
    245     test(
    246         'test_merchant_api_cs',
    247         test_merchant_api_cs,
    248         workdir: meson.current_build_dir(),
    249         suite: ['testing', 'integrationtests'],
    250         is_parallel: false,
    251     )
    252 
    253     test_merchant_api_rsa = executable(
    254         'test_merchant_api_rsa',
    255         ['test_merchant_api.c'],
    256         dependencies: [
    257             donautesting_dep,
    258             talertesting_dep,
    259             libtalermerchant_dep,
    260             libtalermerchantutil_dep,
    261             libtalermerchantdb_dep,
    262             libtalermerchanttesting_dep,
    263             talerexchange_dep,
    264             talerbank_dep,
    265             talerfakebank_dep,
    266             talerjson_dep,
    267             talerutil_dep,
    268             json_dep,
    269             gcrypt_dep,
    270             gnunetutil_dep,
    271             gnunetjson_dep,
    272             gnunetcurl_dep,
    273         ],
    274         include_directories: [incdir, configuration_inc],
    275         build_by_default: false,
    276         install: false,
    277     )
    278     test(
    279         'test_merchant_api_rsa',
    280         test_merchant_api_rsa,
    281         workdir: meson.current_build_dir(),
    282         suite: ['testing', 'integrationtests'],
    283         is_parallel: false,
    284     )
    285 
    286     test_reconciliation_rsa = executable(
    287         'test_reconciliation_rsa',
    288         ['test_reconciliation.c'],
    289         dependencies: [
    290             talertesting_dep,
    291             libtalermerchant_dep,
    292             libtalermerchantutil_dep,
    293             libtalermerchantdb_dep,
    294             libtalermerchanttesting_dep,
    295             talerexchange_dep,
    296             talerbank_dep,
    297             talerfakebank_dep,
    298             talerjson_dep,
    299             talerutil_dep,
    300             json_dep,
    301             gcrypt_dep,
    302             gnunetutil_dep,
    303             gnunetjson_dep,
    304             gnunetcurl_dep,
    305         ],
    306         include_directories: [incdir, configuration_inc],
    307         build_by_default: false,
    308         install: false,
    309     )
    310     test(
    311         'test_reconciliation_rsa',
    312         test_reconciliation_rsa,
    313         workdir: meson.current_build_dir(),
    314         suite: ['testing', 'integrationtests'],
    315         is_parallel: false,
    316     )
    317 
    318     test_kyc_api = executable(
    319         'test_kyc_api',
    320         ['test_kyc_api.c'],
    321         dependencies: [
    322             talertesting_dep,
    323             libtalermerchant_dep,
    324             libtalermerchantutil_dep,
    325             libtalermerchantdb_dep,
    326             libtalermerchanttesting_dep,
    327             talerexchange_dep,
    328             talerbank_dep,
    329             talerfakebank_dep,
    330             talerjson_dep,
    331             talerutil_dep,
    332             json_dep,
    333             gcrypt_dep,
    334             gnunetutil_dep,
    335             gnunetjson_dep,
    336             gnunetcurl_dep,
    337         ],
    338         include_directories: [incdir, configuration_inc],
    339         build_by_default: false,
    340         install: false,
    341     )
    342     test(
    343         'test_kyc_api',
    344         test_kyc_api,
    345         workdir: meson.current_build_dir(),
    346         suite: ['testing', 'integrationtests'],
    347         is_parallel: false,
    348     )
    349 
    350 
    351 endif
    352 
    353 EXTRA_DIST = [
    354     'setup.sh',
    355     'test_key_rotation.conf',
    356     'test_kyc_api.conf',
    357     'test_merchant_api.conf',
    358     'test_merchant_api-cs.conf',
    359     'test_merchant_api-rsa.conf',
    360     'test_merchant_api_twisted-cs.conf',
    361     'test_merchant_api_twisted-rsa.conf',
    362     'test_merchant_api_proxy_merchant.conf',
    363     'test_merchant_api_proxy_exchange.conf',
    364     'test_merchant.priv',
    365     'test_template.conf',
    366 ]
    367 foreach f : EXTRA_DIST
    368     configure_file(input: f, output: f, copy: true)
    369 endforeach