Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH RFC 0/2] Refactor test state handling and clarify naming in LTP
@ 2025-05-13  6:55 Li Wang via ltp
  2025-05-13  6:55 ` [LTP] [PATCH RFC 1/2] lib: rename tid to tcid Li Wang via ltp
  2025-05-13  6:55 ` [LTP] [PATCH RFC 2/2] lib: moves test infrastructure states into a shared context structure Li Wang via ltp
  0 siblings, 2 replies; 5+ messages in thread
From: Li Wang via ltp @ 2025-05-13  6:55 UTC (permalink / raw)
  To: ltp

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-13 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-13  6:55 [LTP] [PATCH RFC 0/2] Refactor test state handling and clarify naming in LTP Li Wang via ltp
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox