public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 16/17] lib: tst_test: Remove now unused needs_drivers
Date: Tue, 21 Apr 2026 13:47:38 +0200	[thread overview]
Message-ID: <20260421114738.GM506589@pevik> (raw)
In-Reply-To: <adTWHgQO2gLj_bXX@yuki.lan>

Hi Cyril, Li,

> Hi!
> > > --- a/include/tst_test.h
> > > +++ b/include/tst_test.h
> > > @@ -498,10 +498,6 @@ struct tst_fs {
> > >   *                  to the test temporary directory from the LTP datafiles
> > >   *                  directory.
> > >   *
> > > - * @needs_drivers: A NULL terminated array of kernel modules required to run
> > > - *                 the test. The module has to be build in or present in order
> > > - *                 for the test to run.
> > > - *
> > >   * @save_restore: A {} terminated array of /proc or /sys files that should
> > >   *                saved at the start of the test and restored at the end. See
> > >   *                tst_sys_conf_save() and :ref:`struct tst_path_val` for details.

> > As we add runtime_check and module_check, I think we also need to update
> > the descrition comments of @needs_kconfigs in tst_test.h.


> What about something like this:

> diff --git a/include/tst_test.h b/include/tst_test.h
> index 752688c45..f2a5378cd 100644
> --- a/include/tst_test.h
> +++ b/include/tst_test.h
> @@ -511,6 +511,13 @@ struct tst_fs {
>   *                  and parenthesis are supported, e.g.
>   *                  "CONFIG_X86_INTEL_UMIP=y | CONFIG_X86_UIMP=y" is evaluated
>   *                  to true if at least one of the options is present.
> + *                  For some config options their presence in the config file
> + *                  is not enough to assure the functionality is present or
> + *                  enabled. E.g. config option may be set to 'm' but the
> + *                  module may not be installed or functionality may be
> + *                  disabled on the kernel command line. The kconfig library
> + *                  has a set of additonal checks for a few config options that

s/additonal/additional/

> + *                  are used in the tests and need additional checks.

(Please consider configuring spell checker in your editor setup, or run make
check as I enabled in our checkpatch.pl configuration check for typos.)

AI would reword it, feel free to use some parts or ignore:

	For some config options their presence in the config file is not enough to assure the functionality is present or enabled.
	E.g. config option may be set to 'm' but the module may not be installed or functionality may be disabled on the kernel command line.

	The kconfig library has a set of additional checks for a few config options that are used in the tests and need additional checks.
	Please rebase before adding the text (I fixed typo in include/tst_test.h).

The removal is obviously ok.
Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  parent reply	other threads:[~2026-04-21 11:48 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-02 12:13 [LTP] [PATCH 00/17] Replace needs_drivers with needs_kconfigs Cyril Hrubis
2026-04-02 12:13 ` [LTP] [PATCH 01/17] syscalls: ioctl08: Remove .needs_drivers Cyril Hrubis
2026-04-02 21:34   ` Petr Vorel
2026-04-09 12:51   ` Andrea Cervesato via ltp
2026-04-21 12:14     ` Cyril Hrubis
2026-04-02 12:13 ` [LTP] [PATCH 02/17] lib: shell: Remove needs_drivers from JSON parser Cyril Hrubis
2026-04-02 21:29   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 03/17] lib: tst_kernel: Add tst_check_module_driver() Cyril Hrubis
2026-04-02 21:26   ` Petr Vorel
2026-04-02 21:47   ` Petr Vorel
2026-04-07  9:43     ` Cyril Hrubis
2026-04-07 11:15       ` Petr Vorel
2026-04-07 11:24         ` Cyril Hrubis
2026-04-08  7:06           ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 04/17] lib: tst_kconfig: Add module presence checks Cyril Hrubis
2026-04-03  3:09   ` Li Wang via ltp
2026-04-07 10:05     ` Cyril Hrubis
2026-04-07 11:40       ` Li Wang via ltp
2026-04-07 11:44         ` Cyril Hrubis
2026-04-21 11:04   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 05/17] tests: kvm: Switch from needs_drivers to needs_kconfigs Cyril Hrubis
2026-04-21 11:05   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 06/17] tests: zram03: " Cyril Hrubis
2026-04-21 11:06   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 07/17] tests: squashfs01: " Cyril Hrubis
2026-04-21 11:07   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 08/17] tests: ioctl: " Cyril Hrubis
2026-04-02 12:13 ` [LTP] [PATCH 09/17] tests: madvise11: " Cyril Hrubis
2026-04-21 11:10   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 10/17] tests: quotactl: " Cyril Hrubis
2026-04-21 11:11   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 11/17] tests: uevent: " Cyril Hrubis
2026-04-21 11:12   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 12/17] cve: tcindex01: " Cyril Hrubis
2026-04-21 11:13   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 13/17] tests: can: " Cyril Hrubis
2026-04-21 11:13   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 14/17] tests: fsetxattr: " Cyril Hrubis
2026-04-21 11:14   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 15/17] sctp: " Cyril Hrubis
2026-04-21 11:18   ` Petr Vorel
2026-04-02 12:13 ` [LTP] [PATCH 16/17] lib: tst_test: Remove now unused needs_drivers Cyril Hrubis
2026-04-03  3:01   ` Li Wang via ltp
2026-04-07 10:02     ` Cyril Hrubis
2026-04-07 11:39       ` Li Wang via ltp
2026-04-07 11:40         ` Cyril Hrubis
2026-04-21 11:47       ` Petr Vorel [this message]
2026-04-21 12:02         ` Cyril Hrubis
2026-04-02 12:13 ` [LTP] [PATCH 17/17] doc: metadata: Remove needs_drivers from docs Cyril Hrubis
2026-04-02 21:34   ` Petr Vorel
2026-04-02 21:59 ` [LTP] [PATCH 00/17] Replace needs_drivers with needs_kconfigs Petr Vorel

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=20260421114738.GM506589@pevik \
    --to=pvorel@suse.cz \
    --cc=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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