[LTP] [PATCH v4 1/3] lib: Add support option for .needs_cmds
    Wei Gao 
    wegao@suse.com
       
    Mon Oct 20 03:24:39 CEST 2025
    
    
  
On Fri, Oct 17, 2025 at 05:37:46PM +0200, Petr Vorel wrote:
> Wei,
> 
> ..
> > +/**
> > + * struct tst_cmd - Provides details about a command struct needed by LTP test.
> > + * @cmd: The name of the command.
> > + * @optional: A flag indicating if the command is optional.
> > + * @present: A flag indicating if the command was found at runtime. This is an output
> > + * parameter, set by the LTP library during the test setup.
> > + */
> > +struct tst_cmd {
> > +	const char *cmd;
> > +	unsigned int optional:1;
> Any change you would modify one of lib/newlib_tests/tst_needs_cmds*.c
> to use tst_cmd->optional?
Good idea, will add test for this new parameter.
> 
> Kind regards,
> Petr
    
    
More information about the ltp
mailing list