[LTP] [PATCH v2 1/3] lib: adding .arch field in tst_test structure

Li Wang liwang@redhat.com
Wed Nov 3 15:03:06 CET 2021


Hi Richard,

On Wed, Nov 3, 2021 at 8:10 PM Richard Palethorpe <rpalethorpe@suse.de>
wrote:

> Hello Li,
>
> Li Wang <liwang@redhat.com> writes:
>
> > Testcases for specified arch should be limited on that only being
> supported
> > platform to run, we now create a function tst_on_arch to achieve this new
> > feature in LTP library.  All you need to run a test on the expected arch
> is
> > to set the '.arch' string in the 'struct tst_test' to choose the required
> > arch list. e.g. '.arch = "x86_64 i386"'.
>
> What is the status of this patch series? Is there a V3?
>

Um, I can't recall why the V3 development for .arch
was suspended.

Maybe we thought there is not much sense to replace
ifdef __arch__ from code at that moment.

Now, if that can benefit the tst_test metadata more in the next runltp-ng.
Should we keep going to work out the patch V3?

@Cyril Hrubis <chrubis@suse.cz>  any suggestions?



>
> Maybe another option would be to check the kernel config?
>

That maybe works, but I'm not sure if that can distinguish i386/x86_64 or
ppc64/ppc64le.

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20211103/3d972ff5/attachment.htm>


More information about the ltp mailing list