diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2019-01-03 09:42:28 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-01-03 18:14:17 +0100 |
commit | 50e304b2393411f3402173feeb36731c548c6c03 (patch) | |
tree | a33867157637887e8583793fb07e97dfe5fc3673 /tests | |
parent | 95aa2eaf344775cd73102fad0c4544d3b282dfe6 (diff) | |
download | gobject-introspection-50e304b2393411f3402173feeb36731c548c6c03.tar.gz |
meson: port doctool tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/meson.build | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/scanner/meson.build b/tests/scanner/meson.build index d5415f78..28430a2c 100644 --- a/tests/scanner/meson.build +++ b/tests/scanner/meson.build @@ -503,6 +503,64 @@ foreach gir : test_girs ) endforeach +if get_option('doctool') and glib_dep.type_name() == 'pkgconfig' + foreach language : ['C', 'Python', 'Gjs'] + regress_docs = custom_target( + 'generate-docs-' + language, + input: regress_gir, + depends: [doc_templates], + build_by_default: not with_cairo, + output: 'Regress-1.0-' + language, + command: [ + python, girdoctool, + '--add-include-path=' + join_paths(meson.build_root(), 'gir'), + '--add-include-path=' + meson.current_build_dir(), + '--language', language, + '@INPUT@', '-o', '@OUTPUT@'], + ) + + if with_cairo + test( + 'gi-tester-docs-Regress-1.0-' + language, + python, + args: [gi_tester, 'Regress-1.0-' + language], + depends: [regress_docs], + env: [ + 'srcdir=' + meson.current_source_dir(), + 'builddir=' + meson.current_build_dir(), + ], + ) + endif + endforeach + + regress_sections = custom_target( + 'generate-docs-sections', + input: regress_gir, + depends: [doc_templates], + build_by_default: not with_cairo, + output: 'Regress-1.0-sections.txt', + command: [ + python, girdoctool, + '--add-include-path=' + join_paths(meson.build_root(), 'gir'), + '--add-include-path=' + meson.current_build_dir(), + '--write-sections-file', + '@INPUT@', '-o', '@OUTPUT@'], + ) + + if with_cairo + test( + 'gi-tester-docs-Regress-1.0-sections.txt', + python, + args: [gi_tester, 'Regress-1.0-sections.txt'], + depends: [regress_sections], + env: [ + 'srcdir=' + meson.current_source_dir(), + 'builddir=' + meson.current_build_dir(), + ], + ) + endif +endif + foreach typelib : test_typelibs typelib_name = typelib.full_path().split('/')[-1] test( |