| 1 |
repro_test_source_dir = join_paths( |
| 2 |
srcdir, |
| 3 |
'tests', |
| 4 |
'repro', |
| 5 |
'src' |
| 6 |
) |
| 7 |
|
| 8 |
repro_test_docs_dir = join_paths( |
| 9 |
srcdir, |
| 10 |
'tests', |
| 11 |
'repro', |
| 12 |
'docs' |
| 13 |
) |
| 14 |
|
| 15 |
repro_test_output_dir = join_paths( |
| 16 |
builddir, |
| 17 |
'tests', |
| 18 |
'repro', |
| 19 |
'docs' |
| 20 |
) |
| 21 |
|
| 22 |
repro_test_html_data = [] |
| 23 |
|
| 24 |
subdir('xml') |
| 25 |
|
| 26 |
test( |
| 27 |
'test-repro-scan', |
| 28 |
python_prg, |
| 29 |
workdir: repro_test_docs_dir, |
| 30 |
is_parallel: false, |
| 31 |
args: [ |
| 32 |
gtkdoc_scan_runner_script, |
| 33 |
'--binary-dir=@0@'.format(builddir), |
| 34 |
'--change-dir=@0@'.format(repro_test_output_dir), |
| 35 |
'--module=@0@'.format('tester'), |
| 36 |
'--source-dir=@0@'.format(repro_test_source_dir), |
| 37 |
'--ignore-headers=config.h', |
| 38 |
'--rebuild-sections', |
| 39 |
'--rebuild-types', |
| 40 |
], |
| 41 |
) |
| 42 |
|
| 43 |
test( |
| 44 |
'test-repro-mkdb', |
| 45 |
python_prg, |
| 46 |
workdir: repro_test_output_dir, |
| 47 |
is_parallel: false, |
| 48 |
args: [ |
| 49 |
gtkdoc_mkdb_runner_script, |
| 50 |
'--binary-dir=@0@'.format(builddir), |
| 51 |
'--module=@0@'.format('tester'), |
| 52 |
'--source-dir=@0@'.format(repro_test_source_dir), |
| 53 |
'--main-sgml-file=@0@'.format('tester-docs.xml'), |
| 54 |
'--output-format=xml', |
| 55 |
'--xml-mode', |
| 56 |
], |
| 57 |
) |
| 58 |
|
| 59 |
foreach style_data: gtkdoc_style_data |
| 60 |
repro_test_html_data += join_paths(srcdir, 'style', style_data) |
| 61 |
endforeach |
| 62 |
|
| 63 |
test( |
| 64 |
'test-repro-mkhtml', |
| 65 |
python_prg, |
| 66 |
workdir: repro_test_output_dir, |
| 67 |
is_parallel: false, |
| 68 |
args: [ |
| 69 |
gtkdoc_mkhtml_runner_script, |
| 70 |
'--binary-dir=@0@'.format(builddir), |
| 71 |
'--change-dir=@0@'.format(join_paths(repro_test_output_dir, 'html')), |
| 72 |
'--html-assets=@0@'.format('@@'.join(repro_test_html_data)), |
| 73 |
'@0@'.format('tester'), |
| 74 |
'@0@'.format(join_paths('..', 'tester-docs.xml')), |
| 75 |
'--uninstalled', |
| 76 |
'--path=@0@'.format(':'.join([ |
| 77 |
repro_test_docs_dir, |
| 78 |
srcdir]) |
| 79 |
), |
| 80 |
], |
| 81 |
) |
| 82 |
|
| 83 |
test( |
| 84 |
'test-repro-fixxref', |
| 85 |
python_prg, |
| 86 |
workdir: repro_test_output_dir, |
| 87 |
is_parallel: false, |
| 88 |
args: [ |
| 89 |
gtkdoc_fixxref_runner_script, |
| 90 |
'--binary-dir=@0@'.format(builddir), |
| 91 |
'--module=@0@'.format('tester'), |
| 92 |
'--module-dir=@0@'.format('html'), |
| 93 |
'--extra-dir=@0@'.format(glib_docpath), |
| 94 |
], |
| 95 |
) |
| 96 |
|
| 97 |
test( |
| 98 |
'test-repro-check', |
| 99 |
python_prg, |
| 100 |
workdir: repro_test_docs_dir, |
| 101 |
is_parallel: false, |
| 102 |
args: [ |
| 103 |
gtkdoc_check_runner_script, |
| 104 |
'--binary-dir=@0@'.format(builddir), |
| 105 |
'--input-dir=@0@'.format(repro_test_docs_dir), |
| 106 |
'--output-dir=@0@'.format(repro_test_output_dir), |
| 107 |
], |
| 108 |
) |