From: Li Wang via ltp <ltp@lists.linux.it>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH RFC 0/2] Refactor test state handling and clarify naming in LTP
Date: Tue, 13 May 2025 14:55:13 +0800 [thread overview]
Message-ID: <20250513065515.49865-1-liwang@redhat.com> (raw)
This patch series introduces two improvements to the test infrastructure:
1: Introduce shared struct context for runtime test state
This refactor consolidates scattered global runtime state variables
into a single struct context, which is stored in a new struct ipc_region.
This change is aimed at improving test robustness and maintainability
by enabling structured state sharing between parent and child processes,
particularly for tests requiring checkpointing or fork/exec workflows.
2: Rename tid to tcid
This is a simple but meaningful rename to avoid confusion between thread
ID (tid) and test case ID (tcid). This improves code clarity and avoids
misinterpretation during code review.
CI Job: https://github.com/wangli5665/ltp/actions/runs/14989986133
Also manually tested by myself on RHEL-10.
Note: this series based on the patches:
https://lists.linux.it/pipermail/ltp/2025-May/043493.html
https://lists.linux.it/pipermail/ltp/2025-May/043494.html
Li Wang (2):
lib: rename tid to tcid
lib: moves test infrastructure states into a shared context structure
lib/tst_test.c | 249 ++++++++++++++++++++++++++++---------------------
1 file changed, 142 insertions(+), 107 deletions(-)
--
2.49.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2025-05-13 6:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 6:55 Li Wang via ltp [this message]
2025-05-13 6:55 ` [LTP] [PATCH RFC 1/2] lib: rename tid to tcid Li Wang via ltp
2025-05-13 12:26 ` Petr Vorel
2025-05-13 6:55 ` [LTP] [PATCH RFC 2/2] lib: moves test infrastructure states into a shared context structure Li Wang via ltp
2025-05-13 13:19 ` Li Wang via ltp
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=20250513065515.49865-1-liwang@redhat.com \
--to=ltp@lists.linux.it \
--cc=liwang@redhat.com \
/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.