All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 1/2] tst_test: Add $LTP_SINGLE_ITERATION to limit variant
Date: Mon, 24 Feb 2025 14:52:04 +0100	[thread overview]
Message-ID: <20250224135204.GA2872167@pevik> (raw)
In-Reply-To: <CAEemH2dhxvwghPV-f9eWSoNfCFWvaFeqwnMNXZy239dfdDCgxg@mail.gmail.com>

> On Mon, Feb 24, 2025 at 6:21 PM Petr Vorel <pvorel@suse.cz> wrote:

> > Hi Li,

> > > > Hi all,

> > > > Andrea wanted to run only single variant.

> > > Could you tell me what the benefit is? why do we need this?

> > @Andrea ^

> > IMHO similar to LTP_SINGLE_FS_TYPE - speedup. Although I admit
> > LTP_SINGLE_FS_TYPE allows much bigger cleanup.

> > > And back to the patch itself, if LTP_SINGLE_ITERATION is used, which
> > > variant will be chosen to run by default? Is that expected?

> > By default all variants are tested.


> Sorry, here I wanted to ask:
>  Which variant will be selected when LTP_SINGLE_VARIANT is set?
>  Is the selected variant the expected one?

Well, test variant can mean anything. It started as libc variant or raw syscall,
but getdents.h has 4 variants (raw syscall SYS_getdents, raw syscall
SYS_getdents64, libc getdents() and libc getdents64()), futex_utils.h has 2
conditional variants variants syscall with old kernel spec and syscall time64
with kernel spec (often only one variant will be set), tests which are use
select_var.h have 5 variants, ...


> Since the order of test variants is not standardized and is determined
> by the author while test writing. Once we used LTP_SINGLE_VARIANT
> it still does not guarantee the executed variant is the same for all tests.
> Unless people only use it in manual debugging mode.

As Andrea wrote, the goal is to use it for debugging of a particular test.
Yes, it will not be useful to run whole syscalls with it defined.

Kind regards,
Petr

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

  reply	other threads:[~2025-02-24 13:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-24 10:00 [LTP] [PATCH 1/2] tst_test: Add $LTP_SINGLE_ITERATION to limit variant Petr Vorel
2025-02-24 10:00 ` [LTP] [PATCH 2/2] tst_supported_fs_types: Ignore empty $LTP_SINGLE_FS_TYPE value Petr Vorel
2025-02-24 10:11 ` [LTP] [PATCH 1/2] tst_test: Add $LTP_SINGLE_ITERATION to limit variant Li Wang
2025-02-24 10:21   ` Petr Vorel
2025-02-24 10:32     ` Li Wang
2025-02-24 13:52       ` Petr Vorel [this message]
2025-02-24 10:22 ` Petr Vorel
2025-02-24 12:29 ` Andrea Cervesato via ltp
2025-02-24 15:16 ` Cyril Hrubis
2025-02-24 18:00   ` Petr Vorel
2025-02-24 18:46     ` Cyril Hrubis
2025-02-25  8:02       ` Petr Vorel
2026-04-16  7:01 ` Petr Vorel
2026-04-16  7:25   ` Andrea Cervesato via ltp
2026-04-16  8:19   ` Li Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250224135204.GA2872167@pevik \
    --to=pvorel@suse.cz \
    --cc=liwang@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.