meson.build (2387B)
1 # This file is in the public domain 2 check_SCRIPTS = [ 3 'test_anastasis_config_currencies', 4 'test_anastasis_reducer_initialize_state', 5 'test_anastasis_reducer_select_continent', 6 'test_anastasis_reducer_select_country', 7 'test_anastasis_reducer_backup_enter_user_attributes', 8 'test_anastasis_reducer_add_authentication', 9 'test_anastasis_reducer_done_authentication', 10 'test_anastasis_reducer_done_policy_review', 11 'test_anastasis_reducer_enter_secret', 12 'test_anastasis_reducer_recovery_enter_user_attributes', 13 'test_anastasis_reducer_recovery_no_pay', 14 'test_anastasis_reducer_recovery_hanging', 15 'test_iban', 16 ] 17 18 foreach f : check_SCRIPTS 19 t = configure_file( 20 copy: true, 21 input: '@0@.sh'.format(f), 22 output: '@0@.sh'.format(f), 23 ) 24 test( 25 f, 26 t, 27 workdir: meson.current_build_dir(), 28 suite: ['cli'], 29 is_parallel: false, 30 timeout: 300, 31 ) 32 endforeach 33 34 EXTRA_DIST = [ 35 'setup.sh', 36 'test_reducer.conf', 37 'test_reducer_free.conf', 38 'test_free_reducer.conf', 39 'test_anastasis_reducer_1.conf', 40 'test_anastasis_reducer_2.conf', 41 'test_anastasis_reducer_3.conf', 42 'test_anastasis_reducer_4.conf', 43 'test_anastasis_reducer_free_1.conf', 44 'test_anastasis_reducer_free_2.conf', 45 'test_anastasis_reducer_free_3.conf', 46 'test_anastasis_reducer_free_4.conf', 47 ] 48 49 foreach f : EXTRA_DIST 50 configure_file(input: f, output: f, copy: true) 51 endforeach 52 53 subdir('test_reducer_home' / '.local' / 'share' / 'taler' / 'exchange-offline') 54 subdir('resources') 55 56 57 executable( 58 'anastasis-reducer', 59 ['anastasis-cli-redux.c', 'anastasis-cli-common.c'], 60 dependencies: [ 61 libanastasisutil_dep, 62 libanastasisredux_dep, 63 gnunetutil_dep, 64 gnunetcurl_dep, 65 gnunetjson_dep, 66 json_dep, 67 talerutil_dep, 68 talerjson_dep, 69 ], 70 include_directories: [incdir, configuration_inc], 71 install: true, 72 ) 73 74 executable( 75 'anastasis-discover', 76 ['anastasis-cli-discover.c', 'anastasis-cli-common.c'], 77 dependencies: [ 78 libanastasisutil_dep, 79 libanastasisredux_dep, 80 gnunetutil_dep, 81 gnunetcurl_dep, 82 gnunetjson_dep, 83 json_dep, 84 talerutil_dep, 85 talerjson_dep, 86 ], 87 include_directories: [incdir, configuration_inc], 88 install: true, 89 )