exchange

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

meson.build (25841B)


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