[PATCH v3 0/2 RESEND] update kselftest framework to check for required configs

Siddharth Menon posted 2 patches 9 months, 3 weeks ago
.../testing/selftests/check_kselftest_deps.pl | 170 ++++++++++++++++++
tools/testing/selftests/lib.mk                |  15 +-
2 files changed, 183 insertions(+), 2 deletions(-)
create mode 100755 tools/testing/selftests/check_kselftest_deps.pl
[PATCH v3 0/2 RESEND] update kselftest framework to check for required configs
Posted by Siddharth Menon 9 months, 3 weeks ago
Currently, kselftests does not have a generalised mechanism to skip
compilation and run tests when required kernel configuration options
are disabled.

This patch series adresses this issue by checking whether all required
configs from selftest/<test>/config are enabled in the current kernel

Siddharth Menon (2):
  selftests: Introduce script to validate required dependencies
  selftests/lib.mk: Introduce check to validate required dependencies

 .../testing/selftests/check_kselftest_deps.pl | 170 ++++++++++++++++++
 tools/testing/selftests/lib.mk                |  15 +-
 2 files changed, 183 insertions(+), 2 deletions(-)
 create mode 100755 tools/testing/selftests/check_kselftest_deps.pl

-- 
2.48.1
Re: [PATCH v3 0/2 RESEND] update kselftest framework to check for required configs
Posted by Shuah Khan 9 months, 3 weeks ago
On 2/26/25 22:29, Siddharth Menon wrote:
> Currently, kselftests does not have a generalised mechanism to skip
> compilation and run tests when required kernel configuration options
> are disabled.

Skipping compile by default is not what we want to do. Tests are
supposed to compile and run even when config options are not enabled.

There is something wrong if the test doesn't compile when a config
option isn't enabled in the kernel.

> 
> This patch series adresses this issue by checking whether all required
> configs from selftest/<test>/config are enabled in the current kernel
> 
> Siddharth Menon (2):
>    selftests: Introduce script to validate required dependencies
>    selftests/lib.mk: Introduce check to validate required dependencies
> 
>   .../testing/selftests/check_kselftest_deps.pl | 170 ++++++++++++++++++
>   tools/testing/selftests/lib.mk                |  15 +-
>   2 files changed, 183 insertions(+), 2 deletions(-)
>   create mode 100755 tools/testing/selftests/check_kselftest_deps.pl
> 

thanks,
-- Shuah