meson.build (25533B)
1 # This build file is in the public domain 2 3 #clean-local: 4 # rm -rf report* 5 6 7 configure_file( 8 input: 'taler-unified-setup.sh', 9 output: 'taler-unified-setup.sh', 10 copy: true, 11 install: true, 12 install_dir: get_option('bindir'), 13 ) 14 15 # Libraries 16 17 libtalertesting_la_SOURCES = [ 18 'testing_api_cmd_age_withdraw.c', 19 'testing_api_cmd_auditor_add_denom_sig.c', 20 'testing_api_cmd_auditor_add.c', 21 'testing_api_cmd_auditor_del.c', 22 'testing_api_cmd_auditor_deposit_confirmation.c', 23 'testing_api_cmd_auditor_exec_auditor.c', 24 'testing_api_cmd_auditor_exec_auditor_dbinit.c', 25 'testing_api_cmd_bank_account_token.c', 26 'testing_api_cmd_bank_admin_add_incoming.c', 27 'testing_api_cmd_bank_admin_add_kycauth.c', 28 'testing_api_cmd_bank_check.c', 29 'testing_api_cmd_bank_admin_check.c', 30 'testing_api_cmd_bank_check_empty.c', 31 'testing_api_cmd_bank_history_credit.c', 32 'testing_api_cmd_bank_history_debit.c', 33 'testing_api_cmd_bank_transfer.c', 34 'testing_api_cmd_batch.c', 35 'testing_api_cmd_batch_deposit.c', 36 'testing_api_cmd_batch_withdraw.c', 37 'testing_api_cmd_check_aml_decisions.c', 38 'testing_api_cmd_coin_history.c', 39 'testing_api_cmd_common.c', 40 'testing_api_cmd_contract_get.c', 41 'testing_api_cmd_deposit.c', 42 'testing_api_cmd_deposits_get.c', 43 'testing_api_cmd_exec_aggregator.c', 44 'testing_api_cmd_exec_auditor-offline.c', 45 'testing_api_cmd_exec_closer.c', 46 'testing_api_cmd_exec_expire.c', 47 'testing_api_cmd_exec_router.c', 48 'testing_api_cmd_exec_transfer.c', 49 'testing_api_cmd_exec_wget.c', 50 'testing_api_cmd_exec_wirewatch.c', 51 'testing_api_cmd_get_active_legitimization_measures.c', 52 'testing_api_cmd_get_auditor.c', 53 'testing_api_cmd_get_exchange.c', 54 'testing_api_cmd_get_kyc_info.c', 55 'testing_api_cmd_insert_deposit.c', 56 'testing_api_cmd_kyc_check_get.c', 57 'testing_api_cmd_kyc_proof.c', 58 'testing_api_cmd_kyc_wallet_get.c', 59 'testing_api_cmd_oauth.c', 60 'testing_api_cmd_offline_sign_global_fees.c', 61 'testing_api_cmd_offline_sign_wire_fees.c', 62 'testing_api_cmd_offline_sign_keys.c', 63 'testing_api_cmd_post_kyc_form.c', 64 'testing_api_cmd_post_kyc_start.c', 65 'testing_api_cmd_purse_create_deposit.c', 66 'testing_api_cmd_purse_delete.c', 67 'testing_api_cmd_purse_deposit.c', 68 'testing_api_cmd_purse_get.c', 69 'testing_api_cmd_purse_merge.c', 70 'testing_api_cmd_recoup.c', 71 'testing_api_cmd_recoup_refresh.c', 72 'testing_api_cmd_refund.c', 73 'testing_api_cmd_refresh.c', 74 'testing_api_cmd_reserve_attest.c', 75 'testing_api_cmd_reserve_close.c', 76 'testing_api_cmd_reserve_get.c', 77 'testing_api_cmd_reserve_get_attestable.c', 78 'testing_api_cmd_reserve_history.c', 79 'testing_api_cmd_reserve_open.c', 80 'testing_api_cmd_reserve_purse.c', 81 'testing_api_cmd_revoke.c', 82 'testing_api_cmd_revoke_denom_key.c', 83 'testing_api_cmd_revoke_sign_key.c', 84 'testing_api_cmd_run_fakebank.c', 85 'testing_api_cmd_set_officer.c', 86 'testing_api_cmd_set_wire_fee.c', 87 'testing_api_cmd_signal.c', 88 'testing_api_cmd_sleep.c', 89 'testing_api_cmd_stat.c', 90 'testing_api_cmd_system_start.c', 91 'testing_api_cmd_take_aml_decision.c', 92 'testing_api_cmd_transfer_get.c', 93 'testing_api_cmd_wait.c', 94 'testing_api_cmd_wire_add.c', 95 'testing_api_cmd_wire_del.c', 96 'testing_api_cmd_withdraw.c', 97 'testing_api_loop.c', 98 'testing_api_misc.c', 99 'testing_api_traits.c', 100 ] 101 102 libtalertesting = library( 103 'talertesting', 104 libtalertesting_la_SOURCES, 105 soversion: solibversions['libtalertesting']['soversion'], 106 version: solibversions['libtalertesting']['soversion'], 107 install_rpath: rpath_option, 108 dependencies: [ 109 libtalerauditor_dep, 110 libtalerexchange_dep, 111 libtalerexchangedb_dep, 112 libtalermhd_dep, 113 libtalerbank_dep, 114 libtalerfakebank_dep, 115 libtalerkyclogic_dep, 116 libtalerjson_dep, 117 libtalerutil_dep, 118 gnunetutil_dep, 119 gnunetcurl_dep, 120 gnunetjson_dep, 121 json_dep, 122 curl_dep, 123 mhd_dep, 124 ], 125 include_directories: [incdir, configuration_inc], 126 install: true, 127 install_dir: get_option('libdir'), 128 ) 129 130 libtalertesting_dep = declare_dependency(link_with: libtalertesting) 131 pkg.generate( 132 libtalertesting, 133 url: 'https://taler.net', 134 description: 'GNU Taler testing library', 135 ) 136 137 libtalertwistertesting_la_SOURCES = [ 138 'testing_api_twister_helpers.c', 139 'testing_api_cmd_twister_exec_client.c', 140 ] 141 142 if twister_dep.found() 143 libtalertwistertesting = library( 144 'talertwistertesting', 145 libtalertwistertesting_la_SOURCES, 146 soversion: solibversions['libtalertwistertesting']['soversion'], 147 version: solibversions['libtalertwistertesting']['soversion'], 148 install_rpath: rpath_option, 149 dependencies: [ 150 libtalertesting_dep, 151 libtalerbank_dep, 152 libtalerfakebank_dep, 153 libtalerauditor_dep, 154 libtalerexchange_dep, 155 libtalerexchangedb_dep, 156 libtalermhd_dep, 157 libtalerjson_dep, 158 libtalerutil_dep, 159 twister_dep, 160 gnunetjson_dep, 161 gnunetcurl_dep, 162 gnunetutil_dep, 163 json_dep, 164 mhd_dep, 165 curl_dep, 166 ], 167 include_directories: [incdir, configuration_inc], 168 install: true, 169 install_dir: get_option('libdir'), 170 ) 171 172 libtalertwistertesting_dep = declare_dependency( 173 link_with: libtalertwistertesting, 174 ) 175 pkg.generate( 176 libtalertesting, 177 url: 'https://taler.net', 178 description: 'GNU Taler twisted testing library', 179 ) 180 181 endif 182 183 184 # Test cases 185 186 #check_PROGRAMS = \ 187 # test_auditor_api_version \ 188 # test_auditor_api_cs \ 189 # test_auditor_api_rsa \ 190 # test_bank_api_with_fakebank \ 191 # test_bank_api_with_nexus \ 192 # test_exchange_api_cs \ 193 # test_exchange_api_rsa \ 194 # test_exchange_api_age_restriction_cs \ 195 # test_exchange_api_age_restriction_rsa \ 196 # test_exchange_api_keys_cherry_picking_cs \ 197 # test_exchange_api_keys_cherry_picking_rsa \ 198 # test_exchange_api_overlapping_keys_bug_cs \ 199 # test_exchange_api_overlapping_keys_bug_rsa \ 200 # test_exchange_management_api_cs \ 201 # test_exchange_management_api_rsa \ 202 # test_kyc_api \ 203 # test_taler_exchange_aggregator-postgres \ 204 # test_taler_exchange_wirewatch-postgres \ 205 # test_exchange_p2p_cs \ 206 # test_exchange_p2p_rsa 207 #if HAVE_TWISTER 208 # check_PROGRAMS += \ 209 # test_exchange_api_twisted_cs \ 210 # test_exchange_api_twisted_rsa \ 211 # test_bank_api_with_fakebank_twisted 212 #endif 213 # 214 ## FIXME_9828 215 ## test_exchange_api_revocation_cs 216 ## test_exchange_api_revocation_rsa 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 ## FIXME_9828 572 ## test_exchange_api_revocation_cs_SOURCES = \ 573 ## test_exchange_api_revocation.c 574 ## test_exchange_api_revocation_cs_LDADD = \ 575 ## libtalertesting.la \ 576 ## $(top_builddir)/src/lib/libtalerexchange.la \ 577 ## $(LIBGCRYPT_LIBS) \ 578 ## $(top_builddir)/src/bank-lib/libtalerfakebank.la \ 579 ## $(top_builddir)/src/bank-lib/libtalerbank.la \ 580 ## $(top_builddir)/src/json/libtalerjson.la \ 581 ## $(top_builddir)/src/util/libtalerutil.la \ 582 ## -lgnunetcurl \ 583 ## -lgnunetutil \ 584 ## -ljansson \ 585 ## $(XLIB) 586 # 587 ## FIXME_9828 588 ## test_exchange_api_revocation_rsa_SOURCES = \ 589 ## test_exchange_api_revocation.c 590 ## test_exchange_api_revocation_rsa_LDADD = \ 591 ## libtalertesting.la \ 592 ## $(top_builddir)/src/lib/libtalerexchange.la \ 593 ## $(LIBGCRYPT_LIBS) \ 594 ## $(top_builddir)/src/bank-lib/libtalerfakebank.la \ 595 ## $(top_builddir)/src/bank-lib/libtalerbank.la \ 596 ## $(top_builddir)/src/json/libtalerjson.la \ 597 ## $(top_builddir)/src/util/libtalerutil.la \ 598 ## -lgnunetcurl \ 599 ## -lgnunetutil \ 600 ## -ljansson \ 601 ## $(XLIB) 602 603 test_exchange_api_overlapping_keys_bug_rsa = executable( 604 'test_exchange_api_overlapping_keys_bug_rsa', 605 ['test_exchange_api_overlapping_keys_bug.c'], 606 dependencies: [ 607 libtalertesting_dep, 608 libtalerexchange_dep, 609 libtalerbank_dep, 610 libtalerjson_dep, 611 libtalerutil_dep, 612 json_dep, 613 gcrypt_dep, 614 gnunetutil_dep, 615 gnunetcurl_dep, 616 ], 617 include_directories: [incdir, configuration_inc], 618 build_by_default: false, 619 install: false, 620 ) 621 test( 622 'test_exchange_api_overlapping_keys_bug_rsa', 623 test_exchange_api_overlapping_keys_bug_rsa, 624 workdir: meson.current_build_dir(), 625 suite: ['testing', 'integrationtests'], 626 is_parallel: false, 627 ) 628 629 630 test_exchange_api_overlapping_keys_bug_cs = executable( 631 'test_exchange_api_overlapping_keys_bug_cs', 632 ['test_exchange_api_overlapping_keys_bug.c'], 633 dependencies: [ 634 libtalertesting_dep, 635 libtalerexchange_dep, 636 libtalerbank_dep, 637 libtalerjson_dep, 638 libtalerutil_dep, 639 json_dep, 640 gcrypt_dep, 641 gnunetutil_dep, 642 gnunetcurl_dep, 643 ], 644 include_directories: [incdir, configuration_inc], 645 build_by_default: false, 646 install: false, 647 ) 648 test( 649 'test_exchange_api_overlapping_keys_bug_cs', 650 test_exchange_api_overlapping_keys_bug_cs, 651 workdir: meson.current_build_dir(), 652 suite: ['testing', 'integrationtests'], 653 is_parallel: false, 654 ) 655 656 657 test_exchange_management_api_cs = executable( 658 'test_exchange_management_api_cs', 659 ['test_exchange_management_api.c'], 660 dependencies: [ 661 libtalertesting_dep, 662 libtalerexchange_dep, 663 libtalerutil_dep, 664 gnunetutil_dep, 665 ], 666 include_directories: [incdir, configuration_inc], 667 build_by_default: false, 668 install: false, 669 ) 670 test( 671 'test_exchange_management_api_cs', 672 test_exchange_management_api_cs, 673 workdir: meson.current_build_dir(), 674 suite: ['testing', 'integrationtests'], 675 is_parallel: false, 676 ) 677 678 test_exchange_management_api_rsa = executable( 679 'test_exchange_management_api_rsa', 680 ['test_exchange_management_api.c'], 681 dependencies: [ 682 libtalertesting_dep, 683 libtalerexchange_dep, 684 libtalerutil_dep, 685 gnunetutil_dep, 686 ], 687 include_directories: [incdir, configuration_inc], 688 build_by_default: false, 689 install: false, 690 ) 691 test( 692 'test_exchange_management_api_rsa', 693 test_exchange_management_api_rsa, 694 workdir: meson.current_build_dir(), 695 suite: ['testing', 'integrationtests'], 696 is_parallel: false, 697 ) 698 699 700 test_taler_exchange_aggregator_postgres = executable( 701 'test_taler_exchange_aggregator-postgres', 702 ['test_taler_exchange_aggregator.c'], 703 dependencies: [ 704 libtalertesting_dep, 705 libtalerfakebank_dep, 706 libtalerjson_dep, 707 libtalerexchangedb_dep, 708 libtalerutil_dep, 709 gnunetutil_dep, 710 gnunetjson_dep, 711 json_dep, 712 mhd_dep, 713 gcrypt_dep, 714 ], 715 include_directories: [incdir, configuration_inc], 716 build_by_default: false, 717 install: false, 718 ) 719 test( 720 'test_taler_exchange_aggregator_postgres', 721 test_taler_exchange_aggregator_postgres, 722 workdir: meson.current_build_dir(), 723 suite: ['testing', 'integrationtests'], 724 is_parallel: false, 725 ) 726 727 728 test_taler_exchange_wirewatch_postgres = executable( 729 'test_taler_exchange_wirewatch-postgres', 730 ['test_taler_exchange_wirewatch.c'], 731 dependencies: [ 732 libtalertesting_dep, 733 libtalerfakebank_dep, 734 libtalerjson_dep, 735 libtalerexchangedb_dep, 736 libtalerutil_dep, 737 gnunetutil_dep, 738 gnunetjson_dep, 739 gnunetpq_dep, 740 pq_dep, 741 json_dep, 742 mhd_dep, 743 gcrypt_dep, 744 ], 745 include_directories: [incdir, configuration_inc], 746 build_by_default: false, 747 install: false, 748 ) 749 test( 750 'test_taler_exchange_wirewatch_postgres', 751 test_taler_exchange_wirewatch_postgres, 752 workdir: meson.current_build_dir(), 753 suite: ['testing', 'integrationtests'], 754 is_parallel: false, 755 ) 756 757 758 if twister_dep.found() 759 760 test_exchange_api_twisted_cs = executable( 761 'test_exchange_api_twisted_cs', 762 ['test_exchange_api_twisted.c'], 763 dependencies: [ 764 libtalertwistertesting_dep, 765 libtalertesting_dep, 766 libtalerbank_dep, 767 libtalerfakebank_dep, 768 libtalerjson_dep, 769 libtalerexchange_dep, 770 libtalerutil_dep, 771 twister_dep, 772 gnunetutil_dep, 773 gnunetjson_dep, 774 gnunetpq_dep, 775 json_dep, 776 gcrypt_dep, 777 ], 778 include_directories: [incdir, configuration_inc], 779 build_by_default: false, 780 install: false, 781 ) 782 test( 783 'test_exchange_api_twisted_cs', 784 test_exchange_api_twisted_cs, 785 workdir: meson.current_build_dir(), 786 suite: ['testing', 'integrationtests'], 787 is_parallel: false, 788 ) 789 790 791 test_exchange_api_twisted_rsa = executable( 792 'test_exchange_api_twisted_rsa', 793 ['test_exchange_api_twisted.c'], 794 dependencies: [ 795 libtalertwistertesting_dep, 796 libtalertesting_dep, 797 libtalerbank_dep, 798 libtalerfakebank_dep, 799 libtalerjson_dep, 800 libtalerexchange_dep, 801 libtalerutil_dep, 802 twister_dep, 803 gnunetutil_dep, 804 gnunetjson_dep, 805 gnunetpq_dep, 806 json_dep, 807 gcrypt_dep, 808 ], 809 include_directories: [incdir, configuration_inc], 810 build_by_default: false, 811 install: false, 812 ) 813 test( 814 'test_exchange_api_twisted_rsa', 815 test_exchange_api_twisted_rsa, 816 workdir: meson.current_build_dir(), 817 suite: ['testing', 'integrationtests'], 818 is_parallel: false, 819 ) 820 821 822 test_bank_api_twisted = executable( 823 'test_bank_api_with_fakebank_twisted', 824 ['test_bank_api_twisted.c'], 825 dependencies: [ 826 libtalertwistertesting_dep, 827 libtalertesting_dep, 828 libtalerbank_dep, 829 libtalerfakebank_dep, 830 libtalerjson_dep, 831 libtalerexchange_dep, 832 libtalerutil_dep, 833 twister_dep, 834 gnunetutil_dep, 835 gnunetjson_dep, 836 gnunetpq_dep, 837 json_dep, 838 ], 839 include_directories: [incdir, configuration_inc], 840 build_by_default: false, 841 install: false, 842 ) 843 test( 844 'test_bank_api_twisted', 845 test_bank_api_twisted, 846 workdir: meson.current_build_dir(), 847 suite: ['testing', 'integrationtests'], 848 is_parallel: false, 849 ) 850 endif 851 852 853 test_kyc_api = executable( 854 'test_kyc_api', 855 ['test_kyc_api.c'], 856 dependencies: [ 857 libtalertesting_dep, 858 libtalerauditor_dep, 859 libtalerfakebank_dep, 860 libtalerbank_dep, 861 libtalerjson_dep, 862 libtalerexchange_dep, 863 libtalerexchangedb_dep, 864 libtalerutil_dep, 865 twister_dep, 866 gnunetutil_dep, 867 gnunetcurl_dep, 868 json_dep, 869 gcrypt_dep, 870 ], 871 include_directories: [incdir, configuration_inc], 872 build_by_default: false, 873 install: false, 874 ) 875 test( 876 'test_kyc_api', 877 test_kyc_api, 878 workdir: meson.current_build_dir(), 879 suite: ['testing', 'integrationtests'], 880 is_parallel: false, 881 ) 882 883 884 885 ## Distribution 886 887 EXTRA_DIST = [ 888 'valgrind.h', 889 'coins-cs.conf', 890 'coins-rsa.conf', 891 'sanction-list.json', 892 'test_auditor_api-cs.conf', 893 'test_auditor_api-rsa.conf', 894 'test_auditor_api_expire_reserve_now-cs.conf', 895 'test_auditor_api_expire_reserve_now-rsa.conf', 896 'test_bank_api.conf', 897 'test_bank_api_fakebank.conf', 898 'test_bank_api_fakebank_twisted.conf', 899 'test_bank_api_nexus.conf', 900 'test_exchange_api.conf', 901 'test_exchange_api-cs.conf', 902 'test_exchange_api-rsa.conf', 903 'test_exchange_api_age_restriction.conf', 904 'test_exchange_api_age_restriction-cs.conf', 905 'test_exchange_api_age_restriction-rsa.conf', 906 'test_exchange_api-twisted.conf', 907 'test_exchange_api_twisted-cs.conf', 908 'test_exchange_api_twisted-rsa.conf', 909 'test_exchange_api_keys_cherry_picking.conf', 910 'test_exchange_api_keys_cherry_picking-cs.conf', 911 'test_exchange_api_keys_cherry_picking-rsa.conf', 912 'test_exchange_api_expire_reserve_now-cs.conf', 913 'test_exchange_api_expire_reserve_now-rsa.conf', 914 'test-taler-exchange-aggregator-postgres.conf', 915 'test-taler-exchange-wirewatch-postgres.conf', 916 'test_kyc_api.conf', 917 ] 918 919 foreach f : EXTRA_DIST 920 configure_file(input: f, output: f, copy: true) 921 endforeach 922 923 subdir( 924 'test_exchange_api_home' / '.local' / 'share' / 'taler-auditor' / 'offline-keys', 925 ) 926 subdir( 927 'test_exchange_api_home' / '.local' / 'share' / 'taler-exchange' / 'offline', 928 ) 929 930 931 check_SCRIPTS = ['test-exchange-taler-harness', 'test-sanctions'] 932 933 foreach f : check_SCRIPTS 934 f_sh = '@0@.sh'.format(f) 935 s = configure_file(input: f_sh, output: f_sh, copy: true) 936 test( 937 f, 938 s, 939 workdir: meson.current_build_dir(), 940 suite: ['testing', 'integrationtests'], 941 is_parallel: false, 942 timeout: 300, 943 ) 944 945 endforeach