Debian Codegraph @

test cases/format/5 transform/meson.build

raw
1 project('format')
2
3 fs = import('fs')
4
5 meson_cmd = find_program('meson')
6 file_compare = find_program(files('file_compare.py'))
7 config = get_option('fmt_config')
8
9 source = files('source.meson')
10 config_file = files(config + '.ini')
11 expected = files(config + '.expected.meson')
12
13 transform = custom_target(
14 input: [config_file, source],
15 output: 'transformed.meson',
16 command: [
17 meson_cmd,
18 'format',
19 '--output', '@OUTPUT@',
20 '--configuration', '@INPUT@',
21 ],
22 )
23
24
25 test(
26 'transform',
27 file_compare,
28 args: [transform, expected],
29 )