From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t v2 1/1] scripts:igt-doc.py: add a parser to document tests inlined
Date: Tue, 14 Feb 2023 13:25:40 +0100 [thread overview]
Message-ID: <20230214132540.22b035ea@maurocar-mobl2> (raw)
In-Reply-To: <20230213161538.b5f7hvawc7hbx3ub@kamilkon-desk1>
On Mon, 13 Feb 2023 17:15:38 +0100
Kamil Konieczny <kamil.konieczny@linux.intel.com> wrote:
> Hi Mauro,
>
> On 2023-02-09 at 12:57:12 +0100, Mauro Carvalho Chehab wrote:
> > From: Mauro Carvalho Chehab <mchehab@kernel.org>
> >
> > Tests need to be documentation, as otherwise its goal will be
> > lost with time. Keeping documentation out of the sources is also
> > not such a good idea, as they tend to bitrot.
> >
> > So, add a script to allow keeping the documentation inlined, and
> > add tools to verify if the documentation has gaps.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
> > ---
> > scripts/igt_doc.py | 487 +++++++++++++++++++++++++++++++++++++++++++++
> > 1 file changed, 487 insertions(+)
> > create mode 100755 scripts/igt_doc.py
> >
> > diff --git a/scripts/igt_doc.py b/scripts/igt_doc.py
> > new file mode 100755
> > index 000000000000..292d99c1ef92
> > --- /dev/null
> > +++ b/scripts/igt_doc.py
> > @@ -0,0 +1,487 @@
> > +#!/usr/bin/env python3
> > +# pylint: disable=C0301,R0914,R0912,R0915
> > +# SPDX-License-Identifier: GPL-2.0
> ----------------------------- ^
> This should be MIT
I'll then dual-license it with "(GPL-2.0 OR MIT)". I prefer keeping it
also being licensed as GPL, just in case we might end needing it
somewhere else.
> > +
> > +## Copyright (C) 2023 Intel Corporation ##
> > +## Author: Mauro Carvalho Chehab <mchehab@kernel.org> ##
> > +## ##
> > +## Allow keeping inlined test documentation and validate ##
> > +## if the documentation is kept updated. ##
> > +
> > +"""Maintain test plan and test implementation documentation on IGT."""
> > +
> > +import argparse
> > +import fileinput
> > +import re
> > +import subprocess
> > +import sys
> > +
> > +IGT_BUILD_PATH = 'build/'
> > +IGT_RUNNER = '/runner/igt_runner'
> > +
> > +# Fields that mat be inside TEST and SUBTEST macros
> > +fields = [
> > + 'Category', # Hardware building block / Software building block / ...
> > + 'Sub-category', # waitfence / dmabuf/ sysfs / debugfs / ...
> > + 'Coverered functionality', # basic test / ...
> ------------^^
> Covered
I'll just place "Functionality".
>
> > + 'Test type', # functionality test / pereformance / stress
> -------------------------------------------------- ^
> performance
>
> > + 'Run type', # BAT / workarouds / stress / developer-specific / ...
> ------------------------------------------------------ ^
> I am not sure what is it.
I'll drop "developer-specific".
>
> +cc Petri
>
> Regards,
> Kamil
prev parent reply other threads:[~2023-02-14 12:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-09 11:57 [igt-dev] [PATCH i-g-t v2 0/1] Add a script to allow inlined test documentation Mauro Carvalho Chehab
2023-02-09 11:57 ` [igt-dev] [PATCH i-g-t v2 1/1] scripts:igt-doc.py: add a parser to document tests inlined Mauro Carvalho Chehab
[not found] ` <20230213085217.br2yosw3con23ht4@zkempczy-mobl2>
2023-02-14 12:23 ` Mauro Carvalho Chehab
[not found] ` <20230213161538.b5f7hvawc7hbx3ub@kamilkon-desk1>
2023-02-14 12:25 ` Mauro Carvalho Chehab [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230214132540.22b035ea@maurocar-mobl2 \
--to=mauro.chehab@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox