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 108
|
program_test_source_dir = join_paths(
srcdir,
'tests',
'program',
'src'
)
program_test_docs_dir = join_paths(
srcdir,
'tests',
'program',
'docs'
)
program_test_output_dir = join_paths(
builddir,
'tests',
'program',
'docs'
)
program_test_html_data = []
subdir('xml')
test(
'test-program-scan',
python_prg,
workdir: program_test_docs_dir,
is_parallel: false,
args: [
gtkdoc_scan_runner_script,
'--binary-dir=@0@'.format(builddir),
'--change-dir=@0@'.format(program_test_output_dir),
'--module=@0@'.format('tester'),
'--source-dir=@0@'.format(program_test_source_dir),
'--ignore-headers=config.h',
'--deprecated-guards=GTKDOC_TESTER_DISABLE_DEPRECATED',
'--rebuild-types',
],
)
test(
'test-program-mkdb',
python_prg,
workdir: program_test_output_dir,
is_parallel: false,
args: [
gtkdoc_mkdb_runner_script,
'--binary-dir=@0@'.format(builddir),
'--module=@0@'.format('tester'),
'--source-dir=@0@'.format(program_test_source_dir),
'--main-sgml-file=@0@'.format('tester-docs.xml'),
'--output-format=xml',
'--xml-mode',
],
)
foreach style_data: gtkdoc_style_data
program_test_html_data += join_paths(srcdir, 'style', style_data)
endforeach
test(
'test-program-mkhtml',
python_prg,
workdir: program_test_output_dir,
is_parallel: false,
args: [
gtkdoc_mkhtml_runner_script,
'--binary-dir=@0@'.format(builddir),
'--change-dir=@0@'.format(join_paths(program_test_output_dir, 'html')),
'--html-assets=@0@'.format('@@'.join(program_test_html_data)),
'@0@'.format('tester'),
'@0@'.format(join_paths('..', 'tester-docs.xml')),
'--uninstalled',
'--path=@0@'.format(':'.join([
program_test_docs_dir,
srcdir])
),
],
)
test(
'test-program-fixxref',
python_prg,
workdir: program_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-program-check',
python_prg,
workdir: program_test_docs_dir,
is_parallel: false,
args: [
gtkdoc_check_runner_script,
'--binary-dir=@0@'.format(builddir),
'--input-dir=@0@'.format(program_test_docs_dir),
'--output-dir=@0@'.format(program_test_output_dir),
],
)
|