[LTP] [PATCH v2 1/4] lib/tst_test.c: add 'needs_drivers' option with tst_check_drivers cmd

Petr Vorel pvorel@suse.cz
Thu Sep 6 19:53:34 CEST 2018


Hi Alexey,

> The drivers are checked with modprobe. If modprobe is not available
> on the system, the checks are silently skipped.

> Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
> ---
> v2: * moved tst_check_driver() from tst_test.h to tst_kernel.h
>     * added the new option description to the doc and comment to tst_kernel.h
>     * iterating over the driver list moved out from tst_check_drivers(), the
>       function renamed accordingly.

>  doc/test-writing-guidelines.txt   |   10 ++++++++++
>  include/tst_kernel.h              |    8 ++++++++
>  include/tst_test.h                |    3 +++
>  lib/tst_kernel.c                  |    9 +++++++++
>  lib/tst_test.c                    |    9 +++++++++
>  testcases/lib/.gitignore          |    1 +
>  testcases/lib/Makefile            |    2 +-
>  testcases/lib/tst_check_drivers.c |   24 ++++++++++++++++++++++++
>  8 files changed, 65 insertions(+), 1 deletions(-)
>  create mode 100644 testcases/lib/tst_check_drivers.c

I'd like this whole patchset being merged before git freeze.
Do you plan it?


Kind regards,
Petr


More information about the ltp mailing list