exchange

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

meson.build (25842B)


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