1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
warn_tests = [
'annotationparser.h',
'callback-invalid-scope.h',
'callback-missing-scope.h',
'invalid-allow-none.h',
'invalid-array.h',
'invalid-closure.h',
'invalid-constructor.h',
'invalid-element-type.h',
'invalid-method.h',
'invalid-nullable.h',
'invalid-optional.h',
'invalid-option.h',
'invalid-out.h',
'invalid-return.h',
'invalid-transfer.h',
'missing-element-type.h',
'return-gobject.h',
'unknown-parameter.h',
'unresolved-type.h',
]
warn_test_env = environment()
warn_test_env.set('UNINSTALLED_INTROSPECTION_SRCDIR', meson.source_root())
warn_test_env.set('TOP_BUILDDIR', meson.build_root())
warn_test_env.set(
'PYTHONPATH',
meson.build_root(),
join_paths(meson.build_root(), 'giscanner'))
# FIXME: Glib as a subproject (used on Windows mostly).
if glib_dep.type_name() == 'pkgconfig'
foreach warn_fn : warn_tests
test(
'warn-' + warn_fn.split('.')[0], python,
workdir: meson.current_source_dir(),
env: warn_test_env,
args: ['warningtester.py', warn_fn],
)
endforeach
endif
|