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