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

Li Wang
2021-11-03T14:03:37Z

[-- Attachment #1.1: Type: text/plain, Size: 1089 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2612 bytes --]

[-- Attachment #2: Type: text/plain, Size: 60 bytes --]

--
Mailing list info: https://lists.linux.it/listinfo/ltp