[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260210162749.30e84be5@localhost>
Date: Tue, 10 Feb 2026 16:27:49 +0100
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: Jonathan Corbet <corbet@....net>
Cc: "David S. Miller" <davem@...emloft.net>, Alexander Lobakin
<aleksander.lobakin@...el.com>, Alexei Starovoitov <ast@...nel.org>, Daniel
Borkmann <daniel@...earbox.net>, Jakub Kicinski <kuba@...nel.org>, Jesper
Dangaard Brouer <hawk@...nel.org>, John Fastabend
<john.fastabend@...il.com>, Mauro Carvalho Chehab <mchehab@...nel.org>,
Richard Cochran <richardcochran@...il.com>, bpf@...r.kernel.org,
intel-wired-lan@...ts.osuosl.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org, Randy Dunlap
<rdunlap@...radead.org>, Shuah Khan <skhan@...uxfoundation.org>, Stanislav
Fomichev <sdf@...ichev.me>
Subject: Re: [PATCH v2 00/25] kernel-doc: make it parse new functions and
structs
On Wed, 28 Jan 2026 10:27:58 -0700
Jonathan Corbet <corbet@....net> wrote:
> Mauro Carvalho Chehab <mchehab+huawei@...nel.org> writes:
>
> > Hi Jon,
> >
> > It is impressive how a single patch became a series with 25 ones ;-)
>
> *sigh*
>
> I will try to have a good look at these shortly. It seems pretty clear
> that this isn't 7.0 material at this point, though.
I ended missing your e-mail...
Yeah, it is too late for 7.0.
>
> One thing that jumped at me:
>
> > Ah, due to the complexity of NestedMatch, I opted to write
> > some unit tests to verify that the logic there is correct.
> > We can use it to add other border cases.
> >
> > Using it is as easy as running:
> >
> > $ tools/unittests/nested_match.py
> >
> > (I opted to create a separate directory for it, as this
> > is not really documentation)
>
> Do we really need another unit-testing setup in the kernel? I can't say
> I'm familiar enough with kunit to say whether it would work for
> non-kernel code; have you looked and verified that it isn't suitable?
I'm familiar with kunit: I wrote myself a bunch of tests using
it for some DRM stuff.
Kunit is focused on testing kernel content. It basically adds
a way for a python script to run self-test logic inside a kernel
module. It is not meant to test things outside the Kernel.
Also, I'm using the python internal library for it. The only
"fancy" thing I added is a helper module to better work with
unit tests:
- it formats unittest output;
- it passes some parameters to the unittest discover to make
it more useable;
- it adds argparse parameters to filter tests and control their
verbosity levels;
- it adds a way to pass argparse values to the tests, as
some tests may require parameters (like passing a different
yaml file to a dynamically-generated unit test).
-
Anyway, I intend to send a new version of this series either
later this week or at the next one.
I'll probably split the unittest part from the part meant to
avoid new warnings after merging from linux-next.
--
Thanks,
Mauro
Powered by blists - more mailing lists