From: Kees Cook <kees@kernel.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
"Gustavo A . R . Silva" <gustavoars@kernel.org>,
David Gow <davidgow@google.com>,
linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] lib/tests: Make RANDSTRUCT_KUNIT_TEST depend on RANDSTRUCT
Date: Mon, 2 Jun 2025 11:19:02 -0700 [thread overview]
Message-ID: <202506021115.82342FB9@keescook> (raw)
In-Reply-To: <CAMuHMdXN_1zwWuTGYuv4aH57cynsNA8443dbRgp+UTMzdvyLNw@mail.gmail.com>
On Mon, Jun 02, 2025 at 08:14:08PM +0200, Geert Uytterhoeven wrote:
> Hi Kees,
>
> On Mon, 2 Jun 2025 at 20:08, Kees Cook <kees@kernel.org> wrote:
> > On Mon, Jun 02, 2025 at 04:49:51PM +0200, Geert Uytterhoeven wrote:
> > > When CONFIG_RANDSTRUCT is not enabled, all randstruct tests are skipped.
> > > Move this logic from run-time to config-time, to avoid people building
> > > and running tests that do not do anything.
> >
> > I don't like doing this because it means that looking at CI output means
> > I can't tell if the test was not built or if the config was not
> > included. I want to always have the test available, but skip the test if
> > the config is missing.
>
> So should we drop all dependencies from tests?
> Do you want Zorro bus, NuBus, ... tests (assumed we have them) to
> be built on all platforms, and "run" on all CIs?
I can't speak for those authors, but I think they are pretty different
from treewide instrumentation tests. As a consumer of CI output, I would
like to be able to always see this kind of test output. Sometimes it's
Kconfig settings (like here) and sometimes it's architectural capabilities
(as seen in LKDTM tests). If the test is always run and explains why
it has been skipped if it is skipped, I always get actionable details
without needing to do a round-trip with the CI runner, spend time
locating .config files, etc, etc.
--
Kees Cook
prev parent reply other threads:[~2025-06-02 18:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-02 14:49 [PATCH] lib/tests: Make RANDSTRUCT_KUNIT_TEST depend on RANDSTRUCT Geert Uytterhoeven
2025-06-02 18:08 ` Kees Cook
2025-06-02 18:14 ` Geert Uytterhoeven
2025-06-02 18:19 ` Kees Cook [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=202506021115.82342FB9@keescook \
--to=kees@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=davidgow@google.com \
--cc=geert@linux-m68k.org \
--cc=gustavoars@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
/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