[LTP] [PATCH] lib: do_setup(): Check for supported arch first

Cyril Hrubis chrubis@suse.cz
Tue Apr 29 17:20:33 CEST 2025


Hi!
> Ok now it's more clear thanks.
> What about adding a macro like TST_TEST_TCONF that sets archs? At the 
> end, that's what we actually do already in the tst_test structure for 
> tconf_msg:
> 
> #define TST_TEST_TCONF(message)                                 \
>          static struct tst_test test = { .tconf_msg = message  } \
> 
> Something like:
> 
> #define TST_TEST_TCONF2(message, archs)                       \
>          static struct tst_test test = { .tconf_msg = message, 
> .supported_archs = archs  } \

That will not get into the metadata, because the tst_test structure from
the TST_TEST_TCONF() is not parsed by the metadata extractor and that is
on purpose because the real data is in the other one.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list