summaryrefslogtreecommitdiff
path: root/tests/bugs/docs/meson.build
blob: e70f1c16fdaccdcff2b8134b119a53b1d6c8c270 (plain)
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
bugs_test_source_dir = join_paths(
  srcdir,
  'tests',
  'bugs',
  'src'
)

bugs_test_docs_dir = join_paths(
  srcdir,
  'tests',
  'bugs',
  'docs'
)

bugs_test_output_dir = join_paths(
  builddir,
  'tests',
  'bugs',
  'docs'
)

bugs_test_html_data = []

test(
  'test-bugs-scan',
  python_prg,
  workdir: bugs_test_docs_dir,
  is_parallel: false,
  args: [
    gtkdoc_scan_runner_script,
    '--binary-dir=@0@'.format(builddir),
    '--change-dir=@0@'.format(bugs_test_output_dir),
    '--module=@0@'.format('tester'),
    '--source-dir=@0@'.format(bugs_test_source_dir),
    '--ignore-headers=config.h',
    '--deprecated-guards=GTKDOC_TESTER_DISABLE_DEPRECATED',
    '--ignore-decorators=GLIB_VAR|GTKDOC_GNUC_CONST|BUG_711598_DEPRECATED_FOR()|MY_DEPRECATED_FOR()',
    '--rebuild-types',
  ],
)

test(
  'test-bugs-mkdb',
  python_prg,
  workdir: bugs_test_output_dir,
  is_parallel: false,
  args: [
    gtkdoc_mkdb_runner_script,
    '--binary-dir=@0@'.format(builddir),
    '--module=@0@'.format('tester'),
    '--source-dir=@0@'.format(bugs_test_source_dir),
    '--main-sgml-file=@0@'.format('tester-docs.xml'),
    '--output-format=xml',
    '--xml-mode',
  ],
)

foreach style_data: gtkdoc_style_data
  bugs_test_html_data += join_paths(srcdir, 'style', style_data)
endforeach

test(
  'test-bugs-mkhtml',
  python_prg,
  workdir: bugs_test_output_dir,
  is_parallel: false,
  args: [
    gtkdoc_mkhtml_runner_script,
    '--binary-dir=@0@'.format(builddir),
    '--change-dir=@0@'.format(join_paths(bugs_test_output_dir, 'html')),
    '--html-assets=@0@'.format('@@'.join(bugs_test_html_data)),
    '@0@'.format('tester'),
    '@0@'.format(join_paths('..', 'tester-docs.xml')),
    '--uninstalled',
    '--path=@0@'.format(':'.join([
      bugs_test_docs_dir,
      srcdir])
    ),
  ],
)

test(
  'test-bugs-fixxref',
  python_prg,
  workdir: bugs_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),
  ],
)

test(
  'test-bugs-check',
  python_prg,
  workdir: bugs_test_docs_dir,
  is_parallel: false,
  args: [
    gtkdoc_check_runner_script,
    '--binary-dir=@0@'.format(builddir),
    '--input-dir=@0@'.format(bugs_test_docs_dir),
    '--output-dir=@0@'.format(bugs_test_output_dir),
  ],
)