[LTP] [PATCH] lib: tst_kconfig: Add runtime checks

Petr Vorel pvorel@suse.cz
Thu Mar 26 17:39:28 CET 2026


> Hi!
> > > IMHO that's why ssh supports multiple '-v', e.g. '-v -v -v' or '-vvv'
> > > instead of
> > > -v2 or -v3).

> > > Anyway I'd prefer solving this somehow in the code so that users don't
> > > have to
> > > bother about log levels, but I have no idea how. Maybe yet another enum
> > > tst_res_flags member? Because aa5a6fcdcd skipped messages, which are likely
> > > useful when run by child process (the test), but not by library process.
> > > And I
> > > want to print message which is always run by library process. Maybe to
> > > have some
> > > #define in source code, which would force logging even for library
> > > process? (not
> > > sure what will be needed more often).


> > This is something worth thinking about carefully, btw, next week is
> > our spring festival hoday. I maybe reply you a bit later :).

> Did we reach any conclusion here?

> I think that we should implement different debug levels in LTP and drop

I guess this was implemented in:
cfeefc5114 ("lib: Extend -D flag to support multiple debug levels")

I also Cced you with minor fix warning on LTP_ENABLE_DEBUG=

> LTP_QUIET in the process. Does that sounds reasonable?

I planned to merge LTP_REPRODUCIBLE_OUTPUT and LTP_QUIET functionality into
single variable [1]. Let's keep the discussion there.

Kind regards,
Petr

[1] https://lore.kernel.org/ltp/20260325145243.daqrazagomckexgj@lida.tpb.lab.eng.brq.redhat.com/


More information about the ltp mailing list