[LTP] [PATCH 16/17] lib: tst_test: Remove now unused needs_drivers

Cyril Hrubis chrubis@suse.cz
Tue Apr 7 12:02:06 CEST 2026


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
+ *                  are used in the tests and need additional checks.
  *
  * @bufs: A description of guarded buffers to be allocated for the test. Guarded
  *        buffers are buffers with poisoned page allocated right before the start


-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list