Debian Codegraph @

test cases/format/3 editorconfig/meson.build

raw
1 # This file is for testing meson format with editor config
2
3 project('default format')
4
5 meson_cmd = find_program('meson')
6 meson_files = {
7 'self': files('meson.build'),
8 'comments': files('crazy_comments.meson'),
9 'indentation': files('indentation.meson'),
10 'subdir editorconfig': files('subdir/sub.meson'),
11 }
12
13 foreach name, f : meson_files
14 test(
15 name,
16 meson_cmd,
17 args: ['format', '-e', '--check-only', f],
18 )
19
20 # Test that .editorconfig can also be loaded from options file
21 test(
22 name + '-fromconfig',
23 meson_cmd,
24 args: [
25 'format',
26 '-c',
27 files('options.ini'),
28 '--check-only',
29 f,
30 ],
31 )
32 endforeach