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