lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 9 Feb 2021 21:44:16 -0800
From:   Daniel Latypov <>
To:     "Theodore Ts'o" <>
Subject: Re: [PATCH] ext4: add .kunitconfig fragment to enable ext4-specific tests

On Tue, Feb 9, 2021 at 6:33 PM Theodore Ts'o <> wrote:
> On Tue, Feb 09, 2021 at 05:32:06PM -0800, Daniel Latypov wrote:
> >
> > After [2]:
> >   $ ./tools/testing/ run --kunitconfig=fs/ext4/.kunitconfig
> Any chance that in the future this might become:
> $ ./tools/testing/ run --kunitconfig=fs/ext4

I've been in favor of something like that for a while, but haven't
gotten folks to agree on the details.

Using bazel-like syntax for a bit, I'd really like it if we had some
easy way to do
$ kunit test //fs/...  # run all fs tests across all subdirs

But since there's the possibility of having tests w/ incompatible
requirements, I don't know that can support it.
(Tbh, I think just concatenating fragments would probably just work
99% of the time so could get away with doing that).

So --kunitconfig=<path> is currently a compromise to give us a less
controversial way of providing one-liners for testing a whole

I don't think there'd be too much opposition for --kunitconfig to
automatically append ".kunitconfig" when passed a directory.
But there might be some, since a reader might think --kunitconfig=dir/
means it's recursing over all subdirs.

> Or better yet, syntactic sugar like:
> $ ./tools/testing/ test fs/ext4

The positional argument for run/exec is probably going to be taken by:

So we'd see something like:
$ ./tools/testing/ run --kunitconfig=fs/ext4 '*inode*'

Or if we set and followed naming conventions:
$ ./tools/testing/ run --alltests "ext4-*"
(this would take a lot longer to build however...)

Filtering could also let us curate only a few, less granular
.kunitconfig fragments (at the cost of higher build time).
$ ./tools/testing/ run --kunitconfig=fs/ "ext4-*"

> would be really nice.
>                                                 - Ted

Powered by blists - more mailing lists