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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
annotations_test_source_dir = join_paths(
srcdir,
'tests',
'annotations',
'src'
)
annotations_test_docs_dir = join_paths(
srcdir,
'tests',
'annotations',
'docs'
)
annotations_test_output_dir = join_paths(
builddir,
'tests',
'annotations',
'docs'
)
annotations_test_html_data = []
test(
'test-annotations-scan',
python_prg,
workdir: annotations_test_docs_dir,
is_parallel: false,
args: [
gtkdoc_scan_runner_script,
'--binary-dir=@0@'.format(builddir),
'--change-dir=@0@'.format(annotations_test_output_dir),
'--module=@0@'.format('tester'),
'--source-dir=@0@'.format(annotations_test_source_dir),
'--ignore-headers=config.h',
'--deprecated-guards=GTKDOC_TESTER_DISABLE_DEPRECATED',
'--ignore-decorators=GLIB_VAR',
],
)
test(
'test-annotations-mkdb',
python_prg,
workdir: annotations_test_output_dir,
is_parallel: false,
args: [
gtkdoc_mkdb_runner_script,
'--binary-dir=@0@'.format(builddir),
'--module=@0@'.format('tester'),
'--source-dir=@0@'.format(annotations_test_source_dir),
'--main-sgml-file=@0@'.format('tester-docs.xml'),
'--output-format=xml',
'--xml-mode',
],
)
foreach style_data: gtkdoc_style_data
annotations_test_html_data += join_paths(srcdir, 'style', style_data)
endforeach
test(
'test-annotations-mkhtml',
python_prg,
workdir: annotations_test_output_dir,
is_parallel: false,
args: [
gtkdoc_mkhtml_runner_script,
'--binary-dir=@0@'.format(builddir),
'--change-dir=@0@'.format(join_paths(annotations_test_output_dir, 'html')),
'--html-assets=@0@'.format('@@'.join(annotations_test_html_data)),
'@0@'.format('tester'),
'@0@'.format(join_paths('..', 'tester-docs.xml')),
'--uninstalled',
'--path=@0@'.format(':'.join([
annotations_test_docs_dir,
srcdir])
),
],
)
test(
'test-annotations-fixxref',
python_prg,
workdir: annotations_test_output_dir,
is_parallel: false,
args: [
gtkdoc_fixxref_runner_script,
'--binary-dir=@0@'.format(builddir),
'--module=@0@'.format('tester'),
'--module-dir=@0@'.format('html'),
'--extra-dir=@0@'.format(glib_docpath),
'--extra-dir=@0@'.format(gobject_docpath),
],
)
test(
'test-annotations-check',
python_prg,
workdir: annotations_test_docs_dir,
is_parallel: false,
args: [
gtkdoc_check_runner_script,
'--binary-dir=@0@'.format(builddir),
'--input-dir=@0@'.format(annotations_test_docs_dir),
'--output-dir=@0@'.format(annotations_test_output_dir),
],
)
|