Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH v4 0/6] Add support for .max_kver
@ 2026-08-05 15:14 Petr Vorel
  2026-08-05 15:14 ` [LTP] [PATCH v4 1/9] tst_kvercmp: Factor out error handling Petr Vorel
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Petr Vorel @ 2026-08-05 15:14 UTC (permalink / raw)
  To: ltp

Hi all,

[RFC]
Li suggested [1] to .min_kver > .max_kver should be rejected, or at
least reported as broken test metadata.

I decided to add check to metadata parser (that required to link
metaparse.c against libltp.a). Runtime check with TWARN would be also
good, but let's discuss that first (if not, I'll remove TODO from
tst_test.c). Hence this part is [RFC].

Hopefully it's the last version :).

Kind regards,
Petr

[1] https://lore.kernel.org/ltp/anF5lV_yjqn8OuVE@linux.dev/

Changes v3->v4:
* creat07: execve04: does not use max_kver, instead:
  creat07: execve04: Remove version check, add linux-git
* New commits:
  - tst_kvercmp: Factor out error handling
  - tst_kvercmp: Factor out 2 kernels integer comparison
  - [RFC] make: Allow to add LTP library as a dependency for host
  - [RFC] metaparse: Check {min,max}_kver validity

Changes in 3rd commit
* Mention flag in doc/developers/writing_tests.rst
* Fix doc (agent):
- * on any stable release (test with ``min_kver = "7.1"`` runs also on kernel
+ * on any stable release (test with ``max_kver = "7.1"`` runs also on kernel
* Fix checkpatch style (agent):
-       for (i=0, dots=0; max_kver[i]; i++)
+       for (i = 0, dots = 0; max_kver[i]; i++)

Link to v3:
https://patchwork.kernel.org/project/ltp/list/?series=1138093&state=*
https://lore.kernel.org/ltp/20260731105132.187177-1-pvorel@suse.cz/T/#t

Link to v2:
https://lore.kernel.org/ltp/6a6a2091.9b80fa5d.4e4ae.7aac@mx.google.com/T/#t

Link to v1:
https://lore.kernel.org/ltp/20260729091717.23042-1-pvorel@suse.cz/T/#t
https://patchwork.ozlabs.org/project/ltp/list/?series=516120&state=*

Petr Vorel (9):
  tst_kvercmp: Factor out error handling
  lib: Rename function check_kver() => check_min_kver()
  lib: Add support for max_kver to struct tst_test and tst_fs
  creat07: execve04: Remove version check, add linux-git
  fanotify20: Skip on v7.2
  lib: Add basic test for .min_kver && .max_kver
  tst_kvercmp: Factor out 2 kernels integer comparison
  [RFC] make: Allow to add LTP library as a dependency for host
  [RFC] metaparse: Check {min,max}_kver validity

 doc/developers/writing_tests.rst              |  3 +
 include/mk/generic_leaf_target.inc            |  5 +-
 include/tst_kvercmp.h                         | 12 ++++
 include/tst_test.h                            | 13 +++-
 lib/newlib_tests/.gitignore                   |  1 +
 lib/newlib_tests/runtest.sh                   |  1 +
 lib/newlib_tests/tst_min_kver_max_kver.c      | 21 +++++++
 lib/tst_kvercmp.c                             | 35 ++++++++---
 lib/tst_test.c                                | 61 ++++++++++++++++---
 metadata/Makefile                             |  6 +-
 metadata/metaparse.c                          | 33 ++++++++++
 testcases/kernel/syscalls/creat/creat07.c     | 20 +++---
 testcases/kernel/syscalls/execve/execve04.c   | 24 ++++----
 .../kernel/syscalls/fanotify/fanotify20.c     |  4 ++
 14 files changed, 194 insertions(+), 45 deletions(-)
 create mode 100644 lib/newlib_tests/tst_min_kver_max_kver.c

-- 
2.55.0


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

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

end of thread, other threads:[~2026-08-06  7:25 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-05 15:14 [LTP] [PATCH v4 0/6] Add support for .max_kver Petr Vorel
2026-08-05 15:14 ` [LTP] [PATCH v4 1/9] tst_kvercmp: Factor out error handling Petr Vorel
2026-08-05 17:33   ` [LTP] " linuxtestproject.agent
2026-08-05 17:33   ` linuxtestproject.agent
2026-08-05 17:34   ` linuxtestproject.agent
2026-08-05 17:35   ` linuxtestproject.agent
2026-08-06  7:02   ` [LTP] [PATCH v4 1/9] " Andrea Cervesato via ltp
2026-08-05 15:14 ` [LTP] [PATCH v4 2/9] lib: Rename function check_kver() => check_min_kver() Petr Vorel
2026-08-05 15:14 ` [LTP] [PATCH v4 3/9] lib: Add support for max_kver to struct tst_test and tst_fs Petr Vorel
2026-08-05 15:14 ` [LTP] [PATCH v4 4/9] creat07: execve04: Remove version check, add linux-git Petr Vorel
2026-08-05 15:14 ` [LTP] [PATCH v4 5/9] fanotify20: Skip on v7.2 Petr Vorel
2026-08-05 15:14 ` [LTP] [PATCH v4 6/9] lib: Add basic test for .min_kver && .max_kver Petr Vorel
2026-08-05 15:14 ` [LTP] [PATCH v4 7/9] tst_kvercmp: Factor out 2 kernels integer comparison Petr Vorel
2026-08-05 15:14 ` [LTP] [PATCH v4 8/9] [RFC] make: Allow to add LTP library as a dependency for host Petr Vorel
2026-08-05 15:14 ` [LTP] [PATCH v4 9/9] [RFC] metaparse: Check {min, max}_kver validity Petr Vorel
2026-08-06  5:37   ` Petr Vorel
2026-08-06  7:23   ` Cyril Hrubis

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