Jakub Kicinski wrote:
> On Fri, 25 Jul 2025 16:47:54 -0400 Willem de Bruijn wrote:
> > Less opinionated: the tests implicitly depends on the config files
> > in the test directory. Do we have to start making the robust against
> > situations where CONFIGs in that file are missing?
> 
> I was considering adding something like this to the test guidance.
> 
>   ### Ensure necessary kernel config knobs are set
> 
>   Each test directory has a `config` file listing which kernel
>   configuration options the tests depend on. This file must be kept
>   up to date, our CIs build minimal kernels for each test group. 
> 
>   Adding checks inside the tests to validate that the necessary kernel
>   configs are enabled is discouraged. The test author may include such
>   checks, but standalone patches to make tests compatible e.g. with 
>   distro kernel configs are unlikely to be accepted.
> 
> WDYT?
> 
> Primarily trying to minimize the number of patches and adjustments 
> we'd see, as the matrix of systems and kernel configs can easily get
> out of hand..

This is great!

It's not really feasible to maintain tests with arbitrary missing
dependencies.

Reply via email to