[igt-dev] [PATCH i-g-t 5/5] docs: Embed subtest descriptions in the documentation
Ser, Simon
simon.ser at intel.com
Thu Jun 20 11:05:34 UTC 2019
On Thu, 2019-06-20 at 13:52 +0300, Arkadiusz Hiler wrote:
> On Thu, Jun 20, 2019 at 11:20:18AM +0300, Petri Latvala wrote:
> > On Mon, Jun 17, 2019 at 01:54:43PM +0300, Arkadiusz Hiler wrote:
> > > This rewrites generate_description_xml in Python, so that we generate
> > > properly escaped XML. The switch also makes the code more manageable.
> > >
> > > Changes in the generated docbook:
> > >
> > > 1. subtests are not simply listed anymore, they are now another (sub)section
> > >
> > > 2. subtests are now linkable,
> > > e.g. docs/igt-kms-tests.html#kms_hdmi_inject at inject-4k
> > >
> > > 3. subtest's section now includes output of --describe
> > >
> > > Python is required already by gtk-doc and we are not using anything
> > > other than the standard library.
> >
> > Python yes, but what about python3? My Debian installation is ancient
> > even on Debian standards and gtk-doc-tools depends on python2. I'm too
> > lazy to check if the version used by gitlab-CI depends on python3, so
> > asking instead: Do you have a fork in gitlab for this? :P
>
> It works on Fedora:
>
> % head -n 1 $(which gtkdoc-mkhtml)
> #!/usr/bin/python3
I believe `#!/usr/bin/env python3` is more correct.
> https://gitlab.freedesktop.org/drm/igt-gpu-tools/blob/master/.gitlab-ci.yml#L174
>
>
> But for explicitness I can squash in:
>
> diff --git a/docs/reference/igt-gpu-tools/meson.build b/docs/reference/igt-gpu-tools/meson.build
> index e2bdc495..b3a4c0bd 100644
> --- a/docs/reference/igt-gpu-tools/meson.build
> +++ b/docs/reference/igt-gpu-tools/meson.build
> @@ -45,6 +45,7 @@ test_groups = [
> 'vgem',
> ]
>
> +find_program('python3') # required by doc generators
> gen_description = find_program('generate_description_xml.py')
> gen_programs = find_program('generate_programs_xml.sh')
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
More information about the igt-dev
mailing list