exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

meson.build (25937B)


      1 # This build file is in the public domain
      2 
      3 #clean-local:
      4 #	rm -rf report*
      5 
      6 
      7 configure_file(
      8     input: 'taler-unified-setup.sh',
      9     output: 'taler-unified-setup.sh',
     10     copy: true,
     11     install: true,
     12     install_dir: get_option('bindir'),
     13 )
     14 
     15 # Libraries
     16 
     17 libtalertesting_la_SOURCES = [
     18     'testing_api_cmd_age_withdraw.c',
     19     'testing_api_cmd_auditor_add_denom_sig.c',
     20     'testing_api_cmd_auditor_add.c',
     21     'testing_api_cmd_auditor_del.c',
     22     'testing_api_cmd_auditor_deposit_confirmation.c',
     23     'testing_api_cmd_auditor_exec_auditor.c',
     24     'testing_api_cmd_auditor_exec_auditor_dbinit.c',
     25     'testing_api_cmd_bank_account_token.c',
     26     'testing_api_cmd_bank_admin_add_incoming.c',
     27     'testing_api_cmd_bank_admin_add_kycauth.c',
     28     'testing_api_cmd_bank_check.c',
     29     'testing_api_cmd_bank_admin_check.c',
     30     'testing_api_cmd_bank_check_empty.c',
     31     'testing_api_cmd_bank_history_credit.c',
     32     'testing_api_cmd_bank_history_debit.c',
     33     'testing_api_cmd_bank_transfer.c',
     34     'testing_api_cmd_batch.c',
     35     'testing_api_cmd_batch_deposit.c',
     36     'testing_api_cmd_batch_withdraw.c',
     37     'testing_api_cmd_check_aml_decisions.c',
     38     'testing_api_cmd_check_keys.c',
     39     'testing_api_cmd_coin_history.c',
     40     'testing_api_cmd_common.c',
     41     'testing_api_cmd_contract_get.c',
     42     'testing_api_cmd_deposit.c',
     43     'testing_api_cmd_deposits_get.c',
     44     'testing_api_cmd_exec_aggregator.c',
     45     'testing_api_cmd_exec_auditor-offline.c',
     46     'testing_api_cmd_exec_closer.c',
     47     'testing_api_cmd_exec_expire.c',
     48     'testing_api_cmd_exec_router.c',
     49     'testing_api_cmd_exec_transfer.c',
     50     'testing_api_cmd_exec_wget.c',
     51     'testing_api_cmd_exec_wirewatch.c',
     52     'testing_api_cmd_get_active_legitimization_measures.c',
     53     'testing_api_cmd_get_aml_officer.c',
     54     'testing_api_cmd_get_auditor.c',
     55     'testing_api_cmd_get_exchange.c',
     56     'testing_api_cmd_get_kyc_info.c',
     57     'testing_api_cmd_insert_deposit.c',
     58     'testing_api_cmd_kyc_check_get.c',
     59     'testing_api_cmd_kyc_proof.c',
     60     'testing_api_cmd_kyc_wallet_get.c',
     61     'testing_api_cmd_oauth.c',
     62     'testing_api_cmd_offline_sign_global_fees.c',
     63     'testing_api_cmd_offline_sign_wire_fees.c',
     64     'testing_api_cmd_offline_sign_keys.c',
     65     'testing_api_cmd_post_kyc_form.c',
     66     'testing_api_cmd_post_kyc_start.c',
     67     'testing_api_cmd_purse_create_deposit.c',
     68     'testing_api_cmd_purse_delete.c',
     69     'testing_api_cmd_purse_deposit.c',
     70     'testing_api_cmd_purse_get.c',
     71     'testing_api_cmd_purse_merge.c',
     72     'testing_api_cmd_recoup.c',
     73     'testing_api_cmd_recoup_refresh.c',
     74     'testing_api_cmd_refund.c',
     75     'testing_api_cmd_refresh.c',
     76     'testing_api_cmd_reserve_attest.c',
     77     'testing_api_cmd_reserve_close.c',
     78     'testing_api_cmd_reserve_get.c',
     79     'testing_api_cmd_reserve_get_attestable.c',
     80     'testing_api_cmd_reserve_history.c',
     81     'testing_api_cmd_reserve_open.c',
     82     'testing_api_cmd_reserve_purse.c',
     83     'testing_api_cmd_revoke.c',
     84     'testing_api_cmd_revoke_denom_key.c',
     85     'testing_api_cmd_revoke_sign_key.c',
     86     'testing_api_cmd_run_fakebank.c',
     87     'testing_api_cmd_set_officer.c',
     88     'testing_api_cmd_set_wire_fee.c',
     89     'testing_api_cmd_signal.c',
     90     'testing_api_cmd_sleep.c',
     91     'testing_api_cmd_stat.c',
     92     'testing_api_cmd_system_start.c',
     93     'testing_api_cmd_take_aml_decision.c',
     94     'testing_api_cmd_transfer_get.c',
     95     'testing_api_cmd_wait.c',
     96     'testing_api_cmd_wire_add.c',
     97     'testing_api_cmd_wire_del.c',
     98     'testing_api_cmd_withdraw.c',
     99     'testing_api_loop.c',
    100     'testing_api_misc.c',
    101     'testing_api_traits.c',
    102 ]
    103 
    104 libtalertesting = library(
    105     'talertesting',
    106     libtalertesting_la_SOURCES,
    107     soversion: solibversions['libtalertesting']['soversion'],
    108     version: solibversions['libtalertesting']['soversion'],
    109     install_rpath: rpath_option,
    110     dependencies: [
    111         libtalerauditor_dep,
    112         libtalerexchange_dep,
    113         libtalerexchangedb_dep,
    114         libtalermhd_dep,
    115         libtalerbank_dep,
    116         libtalerfakebank_dep,
    117         libtalerkyclogic_dep,
    118         libtalerjson_dep,
    119         libtalerutil_dep,
    120         gnunetutil_dep,
    121         gnunetcurl_dep,
    122         gnunetjson_dep,
    123         json_dep,
    124         curl_dep,
    125         mhd_dep,
    126     ],
    127     include_directories: [incdir, configuration_inc],
    128     install: true,
    129     install_dir: get_option('libdir'),
    130 )
    131 
    132 libtalertesting_dep = declare_dependency(link_with: libtalertesting)
    133 pkg.generate(
    134     libtalertesting,
    135     url: 'https://taler.net',
    136     description: 'GNU Taler testing library',
    137 )
    138 
    139 libtalertwistertesting_la_SOURCES = [
    140     'testing_api_twister_helpers.c',
    141     'testing_api_cmd_twister_exec_client.c',
    142 ]
    143 
    144 if twister_dep.found()
    145     libtalertwistertesting = library(
    146         'talertwistertesting',
    147         libtalertwistertesting_la_SOURCES,
    148         soversion: solibversions['libtalertwistertesting']['soversion'],
    149         version: solibversions['libtalertwistertesting']['soversion'],
    150         install_rpath: rpath_option,
    151         dependencies: [
    152             libtalertesting_dep,
    153             libtalerbank_dep,
    154             libtalerfakebank_dep,
    155             libtalerauditor_dep,
    156             libtalerexchange_dep,
    157             libtalerexchangedb_dep,
    158             libtalermhd_dep,
    159             libtalerjson_dep,
    160             libtalerutil_dep,
    161             twister_dep,
    162             gnunetjson_dep,
    163             gnunetcurl_dep,
    164             gnunetutil_dep,
    165             json_dep,
    166             mhd_dep,
    167             curl_dep,
    168         ],
    169         include_directories: [incdir, configuration_inc],
    170         install: true,
    171         install_dir: get_option('libdir'),
    172     )
    173 
    174     libtalertwistertesting_dep = declare_dependency(
    175         link_with: libtalertwistertesting,
    176     )
    177     pkg.generate(
    178         libtalertesting,
    179         url: 'https://taler.net',
    180         description: 'GNU Taler twisted testing library',
    181     )
    182 
    183 endif
    184 
    185 
    186 # Test cases
    187 
    188 #check_PROGRAMS = \
    189 #  test_auditor_api_version \
    190 #  test_auditor_api_cs \
    191 #  test_auditor_api_rsa \
    192 #  test_bank_api_with_fakebank \
    193 #  test_bank_api_with_nexus \
    194 #  test_exchange_api_cs \
    195 #  test_exchange_api_rsa \
    196 #  test_exchange_api_age_restriction_cs \
    197 #  test_exchange_api_age_restriction_rsa \
    198 #  test_exchange_api_keys_cherry_picking_cs \
    199 #  test_exchange_api_keys_cherry_picking_rsa \
    200 #  test_exchange_api_overlapping_keys_bug_cs \
    201 #  test_exchange_api_overlapping_keys_bug_rsa \
    202 #  test_exchange_management_api_cs \
    203 #  test_exchange_management_api_rsa \
    204 #  test_kyc_api \
    205 #  test_taler_exchange_aggregator-postgres \
    206 #  test_taler_exchange_wirewatch-postgres \
    207 #  test_exchange_p2p_cs \
    208 #  test_exchange_p2p_rsa
    209 #if HAVE_TWISTER
    210 #  check_PROGRAMS += \
    211 #    test_exchange_api_twisted_cs \
    212 #    test_exchange_api_twisted_rsa \
    213 #    test_bank_api_with_fakebank_twisted
    214 #endif
    215 #
    216 #
    217 
    218 test_auditor_api_cs = executable(
    219     'test_auditor_api_cs',
    220     ['test_auditor_api.c'],
    221     dependencies: [
    222         libtalertesting_dep,
    223         libtalerauditor_dep,
    224         libtalerexchange_dep,
    225         libtalerbank_dep,
    226         libtalerfakebank_dep,
    227         libtalerjson_dep,
    228         libtalerutil_dep,
    229         json_dep,
    230         gcrypt_dep,
    231         gnunetutil_dep,
    232         gnunetcurl_dep,
    233     ],
    234     include_directories: [incdir, configuration_inc],
    235     build_by_default: false,
    236     install: false,
    237 )
    238 test(
    239     'test_auditor_api_cs',
    240     test_auditor_api_cs,
    241     workdir: meson.current_build_dir(),
    242     suite: ['testing', 'integrationtests'],
    243     is_parallel: false,
    244 )
    245 
    246 
    247 test_auditor_api_rsa = executable(
    248     'test_auditor_api_rsa',
    249     ['test_auditor_api.c'],
    250     dependencies: [
    251         libtalertesting_dep,
    252         libtalerauditor_dep,
    253         libtalerexchange_dep,
    254         libtalerbank_dep,
    255         libtalerfakebank_dep,
    256         libtalerjson_dep,
    257         libtalerutil_dep,
    258         json_dep,
    259         gcrypt_dep,
    260         gnunetutil_dep,
    261         gnunetcurl_dep,
    262     ],
    263     include_directories: [incdir, configuration_inc],
    264     build_by_default: false,
    265     install: false,
    266 )
    267 test(
    268     'test_auditor_api_rsa',
    269     test_auditor_api_rsa,
    270     workdir: meson.current_build_dir(),
    271     suite: ['testing', 'integrationtests'],
    272     is_parallel: false,
    273 )
    274 
    275 
    276 test_auditor_api_version = executable(
    277     'test_auditor_api_version',
    278     ['test_auditor_api_version.c'],
    279     dependencies: [
    280         libtalertesting_dep,
    281         libtalerauditor_dep,
    282         libtalerutil_dep,
    283         json_dep,
    284         gcrypt_dep,
    285         gnunetutil_dep,
    286         gnunetcurl_dep,
    287     ],
    288     include_directories: [incdir, configuration_inc],
    289     build_by_default: false,
    290     install: false,
    291 )
    292 test(
    293     'test_auditor_api_version',
    294     test_auditor_api_version,
    295     workdir: meson.current_build_dir(),
    296     suite: ['testing', 'integrationtests'],
    297     is_parallel: false,
    298 )
    299 
    300 
    301 test_bank_api_with_nexus = executable(
    302     'test_bank_api_with_nexus',
    303     ['test_bank_api.c'],
    304     dependencies: [
    305         libtalertesting_dep,
    306         libtalerexchange_dep,
    307         libtalerbank_dep,
    308         gnunetutil_dep,
    309     ],
    310     include_directories: [incdir, configuration_inc],
    311     build_by_default: false,
    312     install: false,
    313 )
    314 test(
    315     'test_bank_api_with_nexus',
    316     test_bank_api_with_nexus,
    317     workdir: meson.current_build_dir(),
    318     suite: ['testing', 'integrationtests'],
    319     is_parallel: false,
    320 )
    321 
    322 
    323 
    324 test_bank_api_with_fakebank = executable(
    325     'test_bank_api_with_fakebank',
    326     ['test_bank_api.c'],
    327     dependencies: [
    328         libtalertesting_dep,
    329         libtalerexchange_dep,
    330         libtalerbank_dep,
    331         gnunetutil_dep,
    332     ],
    333     include_directories: [incdir, configuration_inc],
    334     build_by_default: false,
    335     install: false,
    336 )
    337 test(
    338     'test_bank_api_with_fakebank',
    339     test_bank_api_with_fakebank,
    340     workdir: meson.current_build_dir(),
    341     suite: ['testing', 'integrationtests'],
    342     is_parallel: false,
    343 )
    344 
    345 
    346 test_exchange_api_cs = executable(
    347     'test_exchange_api_cs',
    348     ['test_exchange_api.c'],
    349     dependencies: [
    350         libtalertesting_dep,
    351         libtalerexchange_dep,
    352         libtalerbank_dep,
    353         libtalerfakebank_dep,
    354         libtalerjson_dep,
    355         libtalerutil_dep,
    356         json_dep,
    357         gcrypt_dep,
    358         gnunetutil_dep,
    359         gnunetcurl_dep,
    360     ],
    361     include_directories: [incdir, configuration_inc],
    362     build_by_default: false,
    363     install: false,
    364 )
    365 test(
    366     'test_exchange_api_cs',
    367     test_exchange_api_cs,
    368     workdir: meson.current_build_dir(),
    369     suite: ['testing', 'integrationtests'],
    370     is_parallel: false,
    371 )
    372 
    373 
    374 test_exchange_api_rsa = executable(
    375     'test_exchange_api_rsa',
    376     ['test_exchange_api.c'],
    377     dependencies: [
    378         libtalertesting_dep,
    379         libtalerexchange_dep,
    380         libtalerbank_dep,
    381         libtalerfakebank_dep,
    382         libtalerjson_dep,
    383         libtalerutil_dep,
    384         json_dep,
    385         gcrypt_dep,
    386         gnunetutil_dep,
    387         gnunetcurl_dep,
    388     ],
    389     include_directories: [incdir, configuration_inc],
    390     build_by_default: false,
    391     install: false,
    392 )
    393 test(
    394     'test_exchange_api_rsa',
    395     test_exchange_api_rsa,
    396     workdir: meson.current_build_dir(),
    397     suite: ['testing', 'integrationtests'],
    398     is_parallel: false,
    399 )
    400 
    401 
    402 
    403 test_exchange_api_age_restriction_cs = executable(
    404     'test_exchange_api_age_restriction_cs',
    405     ['test_exchange_api_age_restriction.c'],
    406     dependencies: [
    407         libtalertesting_dep,
    408         libtalerexchange_dep,
    409         libtalerbank_dep,
    410         libtalerfakebank_dep,
    411         libtalerjson_dep,
    412         libtalerutil_dep,
    413         json_dep,
    414         gcrypt_dep,
    415         gnunetutil_dep,
    416         gnunetcurl_dep,
    417     ],
    418     include_directories: [incdir, configuration_inc],
    419     build_by_default: false,
    420     install: false,
    421 )
    422 test(
    423     'test_exchange_api_age_restriction_cs',
    424     test_exchange_api_age_restriction_cs,
    425     workdir: meson.current_build_dir(),
    426     suite: ['testing', 'integrationtests'],
    427     is_parallel: false,
    428 )
    429 
    430 
    431 test_exchange_api_age_restriction_rsa = executable(
    432     'test_exchange_api_age_restriction_rsa',
    433     ['test_exchange_api_age_restriction.c'],
    434     dependencies: [
    435         libtalertesting_dep,
    436         libtalerexchange_dep,
    437         libtalerbank_dep,
    438         libtalerfakebank_dep,
    439         libtalerjson_dep,
    440         libtalerutil_dep,
    441         json_dep,
    442         gcrypt_dep,
    443         gnunetutil_dep,
    444         gnunetcurl_dep,
    445     ],
    446     include_directories: [incdir, configuration_inc],
    447     build_by_default: false,
    448     install: false,
    449 )
    450 test(
    451     'test_exchange_api_age_restriction_rsa',
    452     test_exchange_api_age_restriction_rsa,
    453     workdir: meson.current_build_dir(),
    454     suite: ['testing', 'integrationtests'],
    455     is_parallel: false,
    456 )
    457 
    458 
    459 test_exchange_api_p2p_cs = executable(
    460     'test_exchange_p2p_cs',
    461     ['test_exchange_p2p.c'],
    462     dependencies: [
    463         libtalertesting_dep,
    464         libtalerexchange_dep,
    465         libtalerbank_dep,
    466         libtalerfakebank_dep,
    467         libtalerjson_dep,
    468         libtalerutil_dep,
    469         json_dep,
    470         gcrypt_dep,
    471         gnunetutil_dep,
    472         gnunetcurl_dep,
    473     ],
    474     include_directories: [incdir, configuration_inc],
    475     build_by_default: false,
    476     install: false,
    477 )
    478 test(
    479     'test_exchange_api_p2p_cs',
    480     test_exchange_api_p2p_cs,
    481     workdir: meson.current_build_dir(),
    482     suite: ['testing', 'integrationtests'],
    483     is_parallel: false,
    484 )
    485 
    486 
    487 test_exchange_api_p2p_rsa = executable(
    488     'test_exchange_p2p_rsa',
    489     ['test_exchange_p2p.c'],
    490     dependencies: [
    491         libtalertesting_dep,
    492         libtalerexchange_dep,
    493         libtalerbank_dep,
    494         libtalerfakebank_dep,
    495         libtalerjson_dep,
    496         libtalerutil_dep,
    497         json_dep,
    498         gcrypt_dep,
    499         gnunetutil_dep,
    500         gnunetcurl_dep,
    501     ],
    502     include_directories: [incdir, configuration_inc],
    503     build_by_default: false,
    504     install: false,
    505 )
    506 test(
    507     'test_exchange_api_p2p_rsa',
    508     test_exchange_api_p2p_rsa,
    509     workdir: meson.current_build_dir(),
    510     suite: ['testing', 'integrationtests'],
    511     is_parallel: false,
    512 )
    513 
    514 
    515 test_exchange_api_keys_cherry_picking_cs = executable(
    516     'test_exchange_api_keys_cherry_picking_cs',
    517     ['test_exchange_api_keys_cherry_picking.c'],
    518     dependencies: [
    519         libtalertesting_dep,
    520         libtalerexchange_dep,
    521         libtalerbank_dep,
    522         libtalerjson_dep,
    523         libtalerutil_dep,
    524         json_dep,
    525         gcrypt_dep,
    526         gnunetutil_dep,
    527         gnunetcurl_dep,
    528     ],
    529     include_directories: [incdir, configuration_inc],
    530     build_by_default: false,
    531     install: false,
    532 )
    533 test(
    534     'test_exchange_api_keys_cherry_picking_cs',
    535     test_exchange_api_keys_cherry_picking_cs,
    536     workdir: meson.current_build_dir(),
    537     suite: ['testing', 'integrationtests'],
    538     is_parallel: false,
    539 )
    540 
    541 
    542 test_exchange_api_keys_cherry_picking_rsa = executable(
    543     'test_exchange_api_keys_cherry_picking_rsa',
    544     ['test_exchange_api_keys_cherry_picking.c'],
    545     dependencies: [
    546         libtalertesting_dep,
    547         libtalerexchange_dep,
    548         libtalerbank_dep,
    549         libtalerjson_dep,
    550         libtalerutil_dep,
    551         json_dep,
    552         gcrypt_dep,
    553         gnunetutil_dep,
    554         gnunetcurl_dep,
    555     ],
    556     include_directories: [incdir, configuration_inc],
    557     build_by_default: false,
    558     install: false,
    559 )
    560 test(
    561     'test_exchange_api_keys_cherry_picking_rsa',
    562     test_exchange_api_keys_cherry_picking_rsa,
    563     workdir: meson.current_build_dir(),
    564     suite: ['testing', 'integrationtests'],
    565     is_parallel: false,
    566 )
    567 
    568 
    569 
    570 test_exchange_api_revocation_cs = executable(
    571     'test_exchange_api_revocation_cs',
    572     ['test_exchange_api_revocation.c'],
    573     dependencies: [
    574         libtalertesting_dep,
    575         libtalerexchange_dep,
    576         libtalerbank_dep,
    577         libtalerfakebank_dep,
    578         libtalerjson_dep,
    579         libtalerutil_dep,
    580         json_dep,
    581         gcrypt_dep,
    582         gnunetutil_dep,
    583         gnunetcurl_dep,
    584     ],
    585     include_directories: [incdir, configuration_inc],
    586     build_by_default: false,
    587     install: false,
    588 )
    589 test(
    590     'test_exchange_api_revocation_cs',
    591     test_exchange_api_revocation_cs,
    592     workdir: meson.current_build_dir(),
    593     suite: ['testing', 'integrationtests'],
    594     is_parallel: false,
    595 )
    596 
    597 
    598 test_exchange_api_revocation_rsa = executable(
    599     'test_exchange_api_revocation_rsa',
    600     ['test_exchange_api_revocation.c'],
    601     dependencies: [
    602         libtalertesting_dep,
    603         libtalerexchange_dep,
    604         libtalerbank_dep,
    605         libtalerfakebank_dep,
    606         libtalerjson_dep,
    607         libtalerutil_dep,
    608         json_dep,
    609         gcrypt_dep,
    610         gnunetutil_dep,
    611         gnunetcurl_dep,
    612     ],
    613     include_directories: [incdir, configuration_inc],
    614     build_by_default: false,
    615     install: false,
    616 )
    617 test(
    618     'test_exchange_api_revocation_rsa',
    619     test_exchange_api_revocation_rsa,
    620     workdir: meson.current_build_dir(),
    621     suite: ['testing', 'integrationtests'],
    622     is_parallel: false,
    623 )
    624 
    625 
    626 test_exchange_api_overlapping_keys_bug_rsa = executable(
    627     'test_exchange_api_overlapping_keys_bug_rsa',
    628     ['test_exchange_api_overlapping_keys_bug.c'],
    629     dependencies: [
    630         libtalertesting_dep,
    631         libtalerexchange_dep,
    632         libtalerbank_dep,
    633         libtalerjson_dep,
    634         libtalerutil_dep,
    635         json_dep,
    636         gcrypt_dep,
    637         gnunetutil_dep,
    638         gnunetcurl_dep,
    639     ],
    640     include_directories: [incdir, configuration_inc],
    641     build_by_default: false,
    642     install: false,
    643 )
    644 test(
    645     'test_exchange_api_overlapping_keys_bug_rsa',
    646     test_exchange_api_overlapping_keys_bug_rsa,
    647     workdir: meson.current_build_dir(),
    648     suite: ['testing', 'integrationtests'],
    649     is_parallel: false,
    650 )
    651 
    652 
    653 test_exchange_api_overlapping_keys_bug_cs = executable(
    654     'test_exchange_api_overlapping_keys_bug_cs',
    655     ['test_exchange_api_overlapping_keys_bug.c'],
    656     dependencies: [
    657         libtalertesting_dep,
    658         libtalerexchange_dep,
    659         libtalerbank_dep,
    660         libtalerjson_dep,
    661         libtalerutil_dep,
    662         json_dep,
    663         gcrypt_dep,
    664         gnunetutil_dep,
    665         gnunetcurl_dep,
    666     ],
    667     include_directories: [incdir, configuration_inc],
    668     build_by_default: false,
    669     install: false,
    670 )
    671 test(
    672     'test_exchange_api_overlapping_keys_bug_cs',
    673     test_exchange_api_overlapping_keys_bug_cs,
    674     workdir: meson.current_build_dir(),
    675     suite: ['testing', 'integrationtests'],
    676     is_parallel: false,
    677 )
    678 
    679 
    680 test_exchange_management_api_cs = executable(
    681     'test_exchange_management_api_cs',
    682     ['test_exchange_management_api.c'],
    683     dependencies: [
    684         libtalertesting_dep,
    685         libtalerexchange_dep,
    686         libtalerutil_dep,
    687         gnunetutil_dep,
    688     ],
    689     include_directories: [incdir, configuration_inc],
    690     build_by_default: false,
    691     install: false,
    692 )
    693 test(
    694     'test_exchange_management_api_cs',
    695     test_exchange_management_api_cs,
    696     workdir: meson.current_build_dir(),
    697     suite: ['testing', 'integrationtests'],
    698     is_parallel: false,
    699 )
    700 
    701 test_exchange_management_api_rsa = executable(
    702     'test_exchange_management_api_rsa',
    703     ['test_exchange_management_api.c'],
    704     dependencies: [
    705         libtalertesting_dep,
    706         libtalerexchange_dep,
    707         libtalerutil_dep,
    708         gnunetutil_dep,
    709     ],
    710     include_directories: [incdir, configuration_inc],
    711     build_by_default: false,
    712     install: false,
    713 )
    714 test(
    715     'test_exchange_management_api_rsa',
    716     test_exchange_management_api_rsa,
    717     workdir: meson.current_build_dir(),
    718     suite: ['testing', 'integrationtests'],
    719     is_parallel: false,
    720 )
    721 
    722 
    723 test_taler_exchange_aggregator_postgres = executable(
    724     'test_taler_exchange_aggregator-postgres',
    725     ['test_taler_exchange_aggregator.c'],
    726     dependencies: [
    727         libtalertesting_dep,
    728         libtalerfakebank_dep,
    729         libtalerjson_dep,
    730         libtalerexchangedb_dep,
    731         libtalerutil_dep,
    732         gnunetutil_dep,
    733         gnunetjson_dep,
    734         json_dep,
    735         mhd_dep,
    736         gcrypt_dep,
    737     ],
    738     include_directories: [incdir, configuration_inc],
    739     build_by_default: false,
    740     install: false,
    741 )
    742 test(
    743     'test_taler_exchange_aggregator_postgres',
    744     test_taler_exchange_aggregator_postgres,
    745     workdir: meson.current_build_dir(),
    746     suite: ['testing', 'integrationtests'],
    747     is_parallel: false,
    748 )
    749 
    750 
    751 test_taler_exchange_wirewatch_postgres = executable(
    752     'test_taler_exchange_wirewatch-postgres',
    753     ['test_taler_exchange_wirewatch.c'],
    754     dependencies: [
    755         libtalertesting_dep,
    756         libtalerfakebank_dep,
    757         libtalerjson_dep,
    758         libtalerexchangedb_dep,
    759         libtalerutil_dep,
    760         gnunetutil_dep,
    761         gnunetjson_dep,
    762         gnunetpq_dep,
    763         pq_dep,
    764         json_dep,
    765         mhd_dep,
    766         gcrypt_dep,
    767     ],
    768     include_directories: [incdir, configuration_inc],
    769     build_by_default: false,
    770     install: false,
    771 )
    772 test(
    773     'test_taler_exchange_wirewatch_postgres',
    774     test_taler_exchange_wirewatch_postgres,
    775     workdir: meson.current_build_dir(),
    776     suite: ['testing', 'integrationtests'],
    777     is_parallel: false,
    778 )
    779 
    780 
    781 if twister_dep.found()
    782 
    783     test_exchange_api_twisted_cs = executable(
    784         'test_exchange_api_twisted_cs',
    785         ['test_exchange_api_twisted.c'],
    786         dependencies: [
    787             libtalertwistertesting_dep,
    788             libtalertesting_dep,
    789             libtalerbank_dep,
    790             libtalerfakebank_dep,
    791             libtalerjson_dep,
    792             libtalerexchange_dep,
    793             libtalerutil_dep,
    794             twister_dep,
    795             gnunetutil_dep,
    796             gnunetjson_dep,
    797             gnunetpq_dep,
    798             json_dep,
    799             gcrypt_dep,
    800         ],
    801         include_directories: [incdir, configuration_inc],
    802         build_by_default: false,
    803         install: false,
    804     )
    805     test(
    806         'test_exchange_api_twisted_cs',
    807         test_exchange_api_twisted_cs,
    808         workdir: meson.current_build_dir(),
    809         suite: ['testing', 'integrationtests'],
    810         is_parallel: false,
    811     )
    812 
    813 
    814     test_exchange_api_twisted_rsa = executable(
    815         'test_exchange_api_twisted_rsa',
    816         ['test_exchange_api_twisted.c'],
    817         dependencies: [
    818             libtalertwistertesting_dep,
    819             libtalertesting_dep,
    820             libtalerbank_dep,
    821             libtalerfakebank_dep,
    822             libtalerjson_dep,
    823             libtalerexchange_dep,
    824             libtalerutil_dep,
    825             twister_dep,
    826             gnunetutil_dep,
    827             gnunetjson_dep,
    828             gnunetpq_dep,
    829             json_dep,
    830             gcrypt_dep,
    831         ],
    832         include_directories: [incdir, configuration_inc],
    833         build_by_default: false,
    834         install: false,
    835     )
    836     test(
    837         'test_exchange_api_twisted_rsa',
    838         test_exchange_api_twisted_rsa,
    839         workdir: meson.current_build_dir(),
    840         suite: ['testing', 'integrationtests'],
    841         is_parallel: false,
    842     )
    843 
    844 
    845     test_bank_api_twisted = executable(
    846         'test_bank_api_with_fakebank_twisted',
    847         ['test_bank_api_twisted.c'],
    848         dependencies: [
    849             libtalertwistertesting_dep,
    850             libtalertesting_dep,
    851             libtalerbank_dep,
    852             libtalerfakebank_dep,
    853             libtalerjson_dep,
    854             libtalerexchange_dep,
    855             libtalerutil_dep,
    856             twister_dep,
    857             gnunetutil_dep,
    858             gnunetjson_dep,
    859             gnunetpq_dep,
    860             json_dep,
    861         ],
    862         include_directories: [incdir, configuration_inc],
    863         build_by_default: false,
    864         install: false,
    865     )
    866     test(
    867         'test_bank_api_twisted',
    868         test_bank_api_twisted,
    869         workdir: meson.current_build_dir(),
    870         suite: ['testing', 'integrationtests'],
    871         is_parallel: false,
    872     )
    873 endif
    874 
    875 
    876 test_kyc_api = executable(
    877     'test_kyc_api',
    878     ['test_kyc_api.c'],
    879     dependencies: [
    880         libtalertesting_dep,
    881         libtalerauditor_dep,
    882         libtalerfakebank_dep,
    883         libtalerbank_dep,
    884         libtalerjson_dep,
    885         libtalerexchange_dep,
    886         libtalerexchangedb_dep,
    887         libtalerutil_dep,
    888         twister_dep,
    889         gnunetutil_dep,
    890         gnunetcurl_dep,
    891         json_dep,
    892         gcrypt_dep,
    893     ],
    894     include_directories: [incdir, configuration_inc],
    895     build_by_default: false,
    896     install: false,
    897 )
    898 test(
    899     'test_kyc_api',
    900     test_kyc_api,
    901     workdir: meson.current_build_dir(),
    902     suite: ['testing', 'integrationtests'],
    903     is_parallel: false,
    904 )
    905 
    906 
    907 
    908 ## Distribution
    909 
    910 EXTRA_DIST = [
    911     'valgrind.h',
    912     'setup.sh',
    913     'coins-cs.conf',
    914     'coins-rsa.conf',
    915     'sanction-list.json',
    916     'test_auditor_api-cs.conf',
    917     'test_auditor_api-rsa.conf',
    918     'test_auditor_api_expire_reserve_now-cs.conf',
    919     'test_auditor_api_expire_reserve_now-rsa.conf',
    920     'test_bank_api.conf',
    921     'test_bank_api_fakebank.conf',
    922     'test_bank_api_fakebank_twisted.conf',
    923     'test_bank_api_nexus.conf',
    924     'test_exchange_api.conf',
    925     'test_exchange_api-cs.conf',
    926     'test_exchange_api-rsa.conf',
    927     'test_exchange_api_age_restriction.conf',
    928     'test_exchange_api_age_restriction-cs.conf',
    929     'test_exchange_api_age_restriction-rsa.conf',
    930     'test_exchange_api-twisted.conf',
    931     'test_exchange_api_twisted-cs.conf',
    932     'test_exchange_api_twisted-rsa.conf',
    933     'test_exchange_api_keys_cherry_picking.conf',
    934     'test_exchange_api_keys_cherry_picking-cs.conf',
    935     'test_exchange_api_keys_cherry_picking-rsa.conf',
    936     'test_exchange_api_expire_reserve_now-cs.conf',
    937     'test_exchange_api_expire_reserve_now-rsa.conf',
    938     'test-taler-exchange-aggregator-postgres.conf',
    939     'test-taler-exchange-wirewatch-postgres.conf',
    940     'test_kyc_api.conf',
    941     'test_sanctions.conf',
    942 ]
    943 
    944 foreach f : EXTRA_DIST
    945     configure_file(input: f, output: f, copy: true)
    946 endforeach
    947 
    948 subdir(
    949     'test_exchange_api_home' / '.local' / 'share' / 'taler-auditor' / 'offline-keys',
    950 )
    951 subdir(
    952     'test_exchange_api_home' / '.local' / 'share' / 'taler-exchange' / 'offline',
    953 )
    954 
    955 
    956 check_SCRIPTS = ['test-exchange-taler-harness', 'test-sanctions']
    957 
    958 foreach f : check_SCRIPTS
    959     f_sh = '@0@.sh'.format(f)
    960     s = configure_file(input: f_sh, output: f_sh, copy: true)
    961     test(
    962         f,
    963         s,
    964         workdir: meson.current_build_dir(),
    965         suite: ['testing', 'integrationtests'],
    966         is_parallel: false,
    967         timeout: 300,
    968     )
    969 
    970 endforeach