meson.build (25901B)
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 # 216 217 test_auditor_api_cs = executable( 218 'test_auditor_api_cs', 219 ['test_auditor_api.c'], 220 dependencies: [ 221 libtalertesting_dep, 222 libtalerauditor_dep, 223 libtalerexchange_dep, 224 libtalerbank_dep, 225 libtalerfakebank_dep, 226 libtalerjson_dep, 227 libtalerutil_dep, 228 json_dep, 229 gcrypt_dep, 230 gnunetutil_dep, 231 gnunetcurl_dep, 232 ], 233 include_directories: [incdir, configuration_inc], 234 build_by_default: false, 235 install: false, 236 ) 237 test( 238 'test_auditor_api_cs', 239 test_auditor_api_cs, 240 workdir: meson.current_build_dir(), 241 suite: ['testing', 'integrationtests'], 242 is_parallel: false, 243 ) 244 245 246 test_auditor_api_rsa = executable( 247 'test_auditor_api_rsa', 248 ['test_auditor_api.c'], 249 dependencies: [ 250 libtalertesting_dep, 251 libtalerauditor_dep, 252 libtalerexchange_dep, 253 libtalerbank_dep, 254 libtalerfakebank_dep, 255 libtalerjson_dep, 256 libtalerutil_dep, 257 json_dep, 258 gcrypt_dep, 259 gnunetutil_dep, 260 gnunetcurl_dep, 261 ], 262 include_directories: [incdir, configuration_inc], 263 build_by_default: false, 264 install: false, 265 ) 266 test( 267 'test_auditor_api_rsa', 268 test_auditor_api_rsa, 269 workdir: meson.current_build_dir(), 270 suite: ['testing', 'integrationtests'], 271 is_parallel: false, 272 ) 273 274 275 test_auditor_api_version = executable( 276 'test_auditor_api_version', 277 ['test_auditor_api_version.c'], 278 dependencies: [ 279 libtalertesting_dep, 280 libtalerauditor_dep, 281 libtalerutil_dep, 282 json_dep, 283 gcrypt_dep, 284 gnunetutil_dep, 285 gnunetcurl_dep, 286 ], 287 include_directories: [incdir, configuration_inc], 288 build_by_default: false, 289 install: false, 290 ) 291 test( 292 'test_auditor_api_version', 293 test_auditor_api_version, 294 workdir: meson.current_build_dir(), 295 suite: ['testing', 'integrationtests'], 296 is_parallel: false, 297 ) 298 299 300 test_bank_api_with_nexus = executable( 301 'test_bank_api_with_nexus', 302 ['test_bank_api.c'], 303 dependencies: [ 304 libtalertesting_dep, 305 libtalerexchange_dep, 306 libtalerbank_dep, 307 gnunetutil_dep, 308 ], 309 include_directories: [incdir, configuration_inc], 310 build_by_default: false, 311 install: false, 312 ) 313 test( 314 'test_bank_api_with_nexus', 315 test_bank_api_with_nexus, 316 workdir: meson.current_build_dir(), 317 suite: ['testing', 'integrationtests'], 318 is_parallel: false, 319 ) 320 321 322 323 test_bank_api_with_fakebank = executable( 324 'test_bank_api_with_fakebank', 325 ['test_bank_api.c'], 326 dependencies: [ 327 libtalertesting_dep, 328 libtalerexchange_dep, 329 libtalerbank_dep, 330 gnunetutil_dep, 331 ], 332 include_directories: [incdir, configuration_inc], 333 build_by_default: false, 334 install: false, 335 ) 336 test( 337 'test_bank_api_with_fakebank', 338 test_bank_api_with_fakebank, 339 workdir: meson.current_build_dir(), 340 suite: ['testing', 'integrationtests'], 341 is_parallel: false, 342 ) 343 344 345 test_exchange_api_cs = executable( 346 'test_exchange_api_cs', 347 ['test_exchange_api.c'], 348 dependencies: [ 349 libtalertesting_dep, 350 libtalerexchange_dep, 351 libtalerbank_dep, 352 libtalerfakebank_dep, 353 libtalerjson_dep, 354 libtalerutil_dep, 355 json_dep, 356 gcrypt_dep, 357 gnunetutil_dep, 358 gnunetcurl_dep, 359 ], 360 include_directories: [incdir, configuration_inc], 361 build_by_default: false, 362 install: false, 363 ) 364 test( 365 'test_exchange_api_cs', 366 test_exchange_api_cs, 367 workdir: meson.current_build_dir(), 368 suite: ['testing', 'integrationtests'], 369 is_parallel: false, 370 ) 371 372 373 test_exchange_api_rsa = executable( 374 'test_exchange_api_rsa', 375 ['test_exchange_api.c'], 376 dependencies: [ 377 libtalertesting_dep, 378 libtalerexchange_dep, 379 libtalerbank_dep, 380 libtalerfakebank_dep, 381 libtalerjson_dep, 382 libtalerutil_dep, 383 json_dep, 384 gcrypt_dep, 385 gnunetutil_dep, 386 gnunetcurl_dep, 387 ], 388 include_directories: [incdir, configuration_inc], 389 build_by_default: false, 390 install: false, 391 ) 392 test( 393 'test_exchange_api_rsa', 394 test_exchange_api_rsa, 395 workdir: meson.current_build_dir(), 396 suite: ['testing', 'integrationtests'], 397 is_parallel: false, 398 ) 399 400 401 402 test_exchange_api_age_restriction_cs = executable( 403 'test_exchange_api_age_restriction_cs', 404 ['test_exchange_api_age_restriction.c'], 405 dependencies: [ 406 libtalertesting_dep, 407 libtalerexchange_dep, 408 libtalerbank_dep, 409 libtalerfakebank_dep, 410 libtalerjson_dep, 411 libtalerutil_dep, 412 json_dep, 413 gcrypt_dep, 414 gnunetutil_dep, 415 gnunetcurl_dep, 416 ], 417 include_directories: [incdir, configuration_inc], 418 build_by_default: false, 419 install: false, 420 ) 421 test( 422 'test_exchange_api_age_restriction_cs', 423 test_exchange_api_age_restriction_cs, 424 workdir: meson.current_build_dir(), 425 suite: ['testing', 'integrationtests'], 426 is_parallel: false, 427 ) 428 429 430 test_exchange_api_age_restriction_rsa = executable( 431 'test_exchange_api_age_restriction_rsa', 432 ['test_exchange_api_age_restriction.c'], 433 dependencies: [ 434 libtalertesting_dep, 435 libtalerexchange_dep, 436 libtalerbank_dep, 437 libtalerfakebank_dep, 438 libtalerjson_dep, 439 libtalerutil_dep, 440 json_dep, 441 gcrypt_dep, 442 gnunetutil_dep, 443 gnunetcurl_dep, 444 ], 445 include_directories: [incdir, configuration_inc], 446 build_by_default: false, 447 install: false, 448 ) 449 test( 450 'test_exchange_api_age_restriction_rsa', 451 test_exchange_api_age_restriction_rsa, 452 workdir: meson.current_build_dir(), 453 suite: ['testing', 'integrationtests'], 454 is_parallel: false, 455 ) 456 457 458 test_exchange_api_p2p_cs = executable( 459 'test_exchange_p2p_cs', 460 ['test_exchange_p2p.c'], 461 dependencies: [ 462 libtalertesting_dep, 463 libtalerexchange_dep, 464 libtalerbank_dep, 465 libtalerfakebank_dep, 466 libtalerjson_dep, 467 libtalerutil_dep, 468 json_dep, 469 gcrypt_dep, 470 gnunetutil_dep, 471 gnunetcurl_dep, 472 ], 473 include_directories: [incdir, configuration_inc], 474 build_by_default: false, 475 install: false, 476 ) 477 test( 478 'test_exchange_api_p2p_cs', 479 test_exchange_api_p2p_cs, 480 workdir: meson.current_build_dir(), 481 suite: ['testing', 'integrationtests'], 482 is_parallel: false, 483 ) 484 485 486 test_exchange_api_p2p_rsa = executable( 487 'test_exchange_p2p_rsa', 488 ['test_exchange_p2p.c'], 489 dependencies: [ 490 libtalertesting_dep, 491 libtalerexchange_dep, 492 libtalerbank_dep, 493 libtalerfakebank_dep, 494 libtalerjson_dep, 495 libtalerutil_dep, 496 json_dep, 497 gcrypt_dep, 498 gnunetutil_dep, 499 gnunetcurl_dep, 500 ], 501 include_directories: [incdir, configuration_inc], 502 build_by_default: false, 503 install: false, 504 ) 505 test( 506 'test_exchange_api_p2p_rsa', 507 test_exchange_api_p2p_rsa, 508 workdir: meson.current_build_dir(), 509 suite: ['testing', 'integrationtests'], 510 is_parallel: false, 511 ) 512 513 514 test_exchange_api_keys_cherry_picking_cs = executable( 515 'test_exchange_api_keys_cherry_picking_cs', 516 ['test_exchange_api_keys_cherry_picking.c'], 517 dependencies: [ 518 libtalertesting_dep, 519 libtalerexchange_dep, 520 libtalerbank_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_keys_cherry_picking_cs', 534 test_exchange_api_keys_cherry_picking_cs, 535 workdir: meson.current_build_dir(), 536 suite: ['testing', 'integrationtests'], 537 is_parallel: false, 538 ) 539 540 541 test_exchange_api_keys_cherry_picking_rsa = executable( 542 'test_exchange_api_keys_cherry_picking_rsa', 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_rsa', 561 test_exchange_api_keys_cherry_picking_rsa, 562 workdir: meson.current_build_dir(), 563 suite: ['testing', 'integrationtests'], 564 is_parallel: false, 565 ) 566 567 568 569 test_exchange_api_revocation_cs = executable( 570 'test_exchange_api_revocation_cs', 571 ['test_exchange_api_revocation.c'], 572 dependencies: [ 573 libtalertesting_dep, 574 libtalerexchange_dep, 575 libtalerbank_dep, 576 libtalerfakebank_dep, 577 libtalerjson_dep, 578 libtalerutil_dep, 579 json_dep, 580 gcrypt_dep, 581 gnunetutil_dep, 582 gnunetcurl_dep, 583 ], 584 include_directories: [incdir, configuration_inc], 585 build_by_default: false, 586 install: false, 587 ) 588 test( 589 'test_exchange_api_revocation_cs', 590 test_exchange_api_revocation_cs, 591 workdir: meson.current_build_dir(), 592 suite: ['testing', 'integrationtests'], 593 is_parallel: false, 594 ) 595 596 597 test_exchange_api_revocation_rsa = executable( 598 'test_exchange_api_revocation_rsa', 599 ['test_exchange_api_revocation.c'], 600 dependencies: [ 601 libtalertesting_dep, 602 libtalerexchange_dep, 603 libtalerbank_dep, 604 libtalerfakebank_dep, 605 libtalerjson_dep, 606 libtalerutil_dep, 607 json_dep, 608 gcrypt_dep, 609 gnunetutil_dep, 610 gnunetcurl_dep, 611 ], 612 include_directories: [incdir, configuration_inc], 613 build_by_default: false, 614 install: false, 615 ) 616 test( 617 'test_exchange_api_revocation_rsa', 618 test_exchange_api_revocation_rsa, 619 workdir: meson.current_build_dir(), 620 suite: ['testing', 'integrationtests'], 621 is_parallel: false, 622 ) 623 624 625 test_exchange_api_overlapping_keys_bug_rsa = executable( 626 'test_exchange_api_overlapping_keys_bug_rsa', 627 ['test_exchange_api_overlapping_keys_bug.c'], 628 dependencies: [ 629 libtalertesting_dep, 630 libtalerexchange_dep, 631 libtalerbank_dep, 632 libtalerjson_dep, 633 libtalerutil_dep, 634 json_dep, 635 gcrypt_dep, 636 gnunetutil_dep, 637 gnunetcurl_dep, 638 ], 639 include_directories: [incdir, configuration_inc], 640 build_by_default: false, 641 install: false, 642 ) 643 test( 644 'test_exchange_api_overlapping_keys_bug_rsa', 645 test_exchange_api_overlapping_keys_bug_rsa, 646 workdir: meson.current_build_dir(), 647 suite: ['testing', 'integrationtests'], 648 is_parallel: false, 649 ) 650 651 652 test_exchange_api_overlapping_keys_bug_cs = executable( 653 'test_exchange_api_overlapping_keys_bug_cs', 654 ['test_exchange_api_overlapping_keys_bug.c'], 655 dependencies: [ 656 libtalertesting_dep, 657 libtalerexchange_dep, 658 libtalerbank_dep, 659 libtalerjson_dep, 660 libtalerutil_dep, 661 json_dep, 662 gcrypt_dep, 663 gnunetutil_dep, 664 gnunetcurl_dep, 665 ], 666 include_directories: [incdir, configuration_inc], 667 build_by_default: false, 668 install: false, 669 ) 670 test( 671 'test_exchange_api_overlapping_keys_bug_cs', 672 test_exchange_api_overlapping_keys_bug_cs, 673 workdir: meson.current_build_dir(), 674 suite: ['testing', 'integrationtests'], 675 is_parallel: false, 676 ) 677 678 679 test_exchange_management_api_cs = executable( 680 'test_exchange_management_api_cs', 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_cs', 694 test_exchange_management_api_cs, 695 workdir: meson.current_build_dir(), 696 suite: ['testing', 'integrationtests'], 697 is_parallel: false, 698 ) 699 700 test_exchange_management_api_rsa = executable( 701 'test_exchange_management_api_rsa', 702 ['test_exchange_management_api.c'], 703 dependencies: [ 704 libtalertesting_dep, 705 libtalerexchange_dep, 706 libtalerutil_dep, 707 gnunetutil_dep, 708 ], 709 include_directories: [incdir, configuration_inc], 710 build_by_default: false, 711 install: false, 712 ) 713 test( 714 'test_exchange_management_api_rsa', 715 test_exchange_management_api_rsa, 716 workdir: meson.current_build_dir(), 717 suite: ['testing', 'integrationtests'], 718 is_parallel: false, 719 ) 720 721 722 test_taler_exchange_aggregator_postgres = executable( 723 'test_taler_exchange_aggregator-postgres', 724 ['test_taler_exchange_aggregator.c'], 725 dependencies: [ 726 libtalertesting_dep, 727 libtalerfakebank_dep, 728 libtalerjson_dep, 729 libtalerexchangedb_dep, 730 libtalerutil_dep, 731 gnunetutil_dep, 732 gnunetjson_dep, 733 json_dep, 734 mhd_dep, 735 gcrypt_dep, 736 ], 737 include_directories: [incdir, configuration_inc], 738 build_by_default: false, 739 install: false, 740 ) 741 test( 742 'test_taler_exchange_aggregator_postgres', 743 test_taler_exchange_aggregator_postgres, 744 workdir: meson.current_build_dir(), 745 suite: ['testing', 'integrationtests'], 746 is_parallel: false, 747 ) 748 749 750 test_taler_exchange_wirewatch_postgres = executable( 751 'test_taler_exchange_wirewatch-postgres', 752 ['test_taler_exchange_wirewatch.c'], 753 dependencies: [ 754 libtalertesting_dep, 755 libtalerfakebank_dep, 756 libtalerjson_dep, 757 libtalerexchangedb_dep, 758 libtalerutil_dep, 759 gnunetutil_dep, 760 gnunetjson_dep, 761 gnunetpq_dep, 762 pq_dep, 763 json_dep, 764 mhd_dep, 765 gcrypt_dep, 766 ], 767 include_directories: [incdir, configuration_inc], 768 build_by_default: false, 769 install: false, 770 ) 771 test( 772 'test_taler_exchange_wirewatch_postgres', 773 test_taler_exchange_wirewatch_postgres, 774 workdir: meson.current_build_dir(), 775 suite: ['testing', 'integrationtests'], 776 is_parallel: false, 777 ) 778 779 780 if twister_dep.found() 781 782 test_exchange_api_twisted_cs = executable( 783 'test_exchange_api_twisted_cs', 784 ['test_exchange_api_twisted.c'], 785 dependencies: [ 786 libtalertwistertesting_dep, 787 libtalertesting_dep, 788 libtalerbank_dep, 789 libtalerfakebank_dep, 790 libtalerjson_dep, 791 libtalerexchange_dep, 792 libtalerutil_dep, 793 twister_dep, 794 gnunetutil_dep, 795 gnunetjson_dep, 796 gnunetpq_dep, 797 json_dep, 798 gcrypt_dep, 799 ], 800 include_directories: [incdir, configuration_inc], 801 build_by_default: false, 802 install: false, 803 ) 804 test( 805 'test_exchange_api_twisted_cs', 806 test_exchange_api_twisted_cs, 807 workdir: meson.current_build_dir(), 808 suite: ['testing', 'integrationtests'], 809 is_parallel: false, 810 ) 811 812 813 test_exchange_api_twisted_rsa = executable( 814 'test_exchange_api_twisted_rsa', 815 ['test_exchange_api_twisted.c'], 816 dependencies: [ 817 libtalertwistertesting_dep, 818 libtalertesting_dep, 819 libtalerbank_dep, 820 libtalerfakebank_dep, 821 libtalerjson_dep, 822 libtalerexchange_dep, 823 libtalerutil_dep, 824 twister_dep, 825 gnunetutil_dep, 826 gnunetjson_dep, 827 gnunetpq_dep, 828 json_dep, 829 gcrypt_dep, 830 ], 831 include_directories: [incdir, configuration_inc], 832 build_by_default: false, 833 install: false, 834 ) 835 test( 836 'test_exchange_api_twisted_rsa', 837 test_exchange_api_twisted_rsa, 838 workdir: meson.current_build_dir(), 839 suite: ['testing', 'integrationtests'], 840 is_parallel: false, 841 ) 842 843 844 test_bank_api_twisted = executable( 845 'test_bank_api_with_fakebank_twisted', 846 ['test_bank_api_twisted.c'], 847 dependencies: [ 848 libtalertwistertesting_dep, 849 libtalertesting_dep, 850 libtalerbank_dep, 851 libtalerfakebank_dep, 852 libtalerjson_dep, 853 libtalerexchange_dep, 854 libtalerutil_dep, 855 twister_dep, 856 gnunetutil_dep, 857 gnunetjson_dep, 858 gnunetpq_dep, 859 json_dep, 860 ], 861 include_directories: [incdir, configuration_inc], 862 build_by_default: false, 863 install: false, 864 ) 865 test( 866 'test_bank_api_twisted', 867 test_bank_api_twisted, 868 workdir: meson.current_build_dir(), 869 suite: ['testing', 'integrationtests'], 870 is_parallel: false, 871 ) 872 endif 873 874 875 test_kyc_api = executable( 876 'test_kyc_api', 877 ['test_kyc_api.c'], 878 dependencies: [ 879 libtalertesting_dep, 880 libtalerauditor_dep, 881 libtalerfakebank_dep, 882 libtalerbank_dep, 883 libtalerjson_dep, 884 libtalerexchange_dep, 885 libtalerexchangedb_dep, 886 libtalerutil_dep, 887 twister_dep, 888 gnunetutil_dep, 889 gnunetcurl_dep, 890 json_dep, 891 gcrypt_dep, 892 ], 893 include_directories: [incdir, configuration_inc], 894 build_by_default: false, 895 install: false, 896 ) 897 test( 898 'test_kyc_api', 899 test_kyc_api, 900 workdir: meson.current_build_dir(), 901 suite: ['testing', 'integrationtests'], 902 is_parallel: false, 903 ) 904 905 906 907 ## Distribution 908 909 EXTRA_DIST = [ 910 'valgrind.h', 911 'setup.sh', 912 'coins-cs.conf', 913 'coins-rsa.conf', 914 'sanction-list.json', 915 'test_auditor_api-cs.conf', 916 'test_auditor_api-rsa.conf', 917 'test_auditor_api_expire_reserve_now-cs.conf', 918 'test_auditor_api_expire_reserve_now-rsa.conf', 919 'test_bank_api.conf', 920 'test_bank_api_fakebank.conf', 921 'test_bank_api_fakebank_twisted.conf', 922 'test_bank_api_nexus.conf', 923 'test_exchange_api.conf', 924 'test_exchange_api-cs.conf', 925 'test_exchange_api-rsa.conf', 926 'test_exchange_api_age_restriction.conf', 927 'test_exchange_api_age_restriction-cs.conf', 928 'test_exchange_api_age_restriction-rsa.conf', 929 'test_exchange_api-twisted.conf', 930 'test_exchange_api_twisted-cs.conf', 931 'test_exchange_api_twisted-rsa.conf', 932 'test_exchange_api_keys_cherry_picking.conf', 933 'test_exchange_api_keys_cherry_picking-cs.conf', 934 'test_exchange_api_keys_cherry_picking-rsa.conf', 935 'test_exchange_api_expire_reserve_now-cs.conf', 936 'test_exchange_api_expire_reserve_now-rsa.conf', 937 'test-taler-exchange-aggregator-postgres.conf', 938 'test-taler-exchange-wirewatch-postgres.conf', 939 'test_kyc_api.conf', 940 'test_sanctions.conf', 941 ] 942 943 foreach f : EXTRA_DIST 944 configure_file(input: f, output: f, copy: true) 945 endforeach 946 947 subdir( 948 'test_exchange_api_home' / '.local' / 'share' / 'taler-auditor' / 'offline-keys', 949 ) 950 subdir( 951 'test_exchange_api_home' / '.local' / 'share' / 'taler-exchange' / 'offline', 952 ) 953 954 955 check_SCRIPTS = ['test-exchange-taler-harness', 'test-sanctions'] 956 957 foreach f : check_SCRIPTS 958 f_sh = '@0@.sh'.format(f) 959 s = configure_file(input: f_sh, output: f_sh, copy: true) 960 test( 961 f, 962 s, 963 workdir: meson.current_build_dir(), 964 suite: ['testing', 'integrationtests'], 965 is_parallel: false, 966 timeout: 300, 967 ) 968 969 endforeach