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