[LTP] [PATCH 00/13] runtest generator prototype for runtest/cve

Cyril Hrubis chrubis@suse.cz
Wed Jun 24 11:18:47 CEST 2026


This patchset is mostly preparation for the runtest file generator. We
add two more fields to the tst_test structure. Rewrite tests to new
libraries etc. But it also fixes bugs in the build system. These
patches should go in regardless of the last patch that introduces the
runtest file generator.

Once the runtest generator is merged we can easily add more. e.g.
syscalls-ipc. However the main point of these changes is to have the
complete information on how to filter and run tests in the metadata so
that we can add advanced filtering and features to the kirk test runner.
Or eventually that people can generate their own runtest files on demand
based on the JSON metadata with their own scripts and rules.

Cyril Hrubis (13):
  tst_test: Add may_kmemleak flag and annotate tests
  keyctl01.sh: Rewrite to the new shell library
  keyctl01.sh: Remove the keyctl subcommand check
  tst_run_shell: Add support for groups in the env JSON
  vma05.sh, keyctl01.sh: Add groups
  mem/ksm05: Add proper runtime support
  mem/thp01: Add proper runtime support
  lib: tst_test: Move the iterations to struct tst_test
  syscalls/setsockopt08: Add .iterations = 100
  testcases: Fix the CVE tags
  build: rules.mk: Fix HOST_MAKE_TARGET rule
  mem: vma03: Rewrite to the new test library
  metadata: Add runtest file generator

 include/mk/rules.mk                           |   4 +-
 include/tst_test.h                            |  10 +-
 lib/tst_test.c                                |   8 +-
 metadata/.gitignore                           |   1 +
 metadata/Makefile                             |  10 +-
 metadata/genruntest.c                         | 292 ++++++++++++++++++
 metadata/metaparse.c                          |   1 +
 runtest/.gitignore                            |   1 +
 runtest/cve                                   | 100 ------
 runtest/mm                                    |   4 +-
 testcases/commands/keyctl/keyctl01.sh         |  89 ++----
 testcases/cve/cve-2022-4378.c                 |   1 +
 testcases/cve/cve-2025-21756.c                |   1 +
 testcases/cve/cve-2025-38236.c                |   1 +
 testcases/kernel/containers/userns/userns08.c |   2 +-
 testcases/kernel/crypto/af_alg08.c            |   1 +
 testcases/kernel/mem/ksm/ksm05.c              |  27 +-
 testcases/kernel/mem/thp/thp01.c              |  11 +-
 testcases/kernel/mem/vma/vma03.c              | 189 +++++-------
 testcases/kernel/mem/vma/vma05.sh             |   3 +
 testcases/kernel/pty/pty04.c                  |   2 +-
 .../kernel/security/dirtypipe/dirtypipe.c     |   2 +-
 testcases/kernel/syscalls/bpf/bpf_prog05.c    |   2 +-
 testcases/kernel/syscalls/bpf/bpf_prog06.c    |   2 +-
 testcases/kernel/syscalls/bpf/bpf_prog07.c    |   2 +-
 .../kernel/syscalls/fsconfig/fsconfig03.c     |   1 +
 .../gethostbyname_r/gethostbyname_r01.c       |   2 +-
 .../kernel/syscalls/io_uring/io_uring04.c     |   1 +
 testcases/kernel/syscalls/kill/kill13.c       |   2 +-
 .../perf_event_open/perf_event_open03.c       |   1 +
 .../syscalls/set_mempolicy/set_mempolicy05.c  |   2 +-
 .../kernel/syscalls/setsockopt/setsockopt03.c |   2 +-
 .../kernel/syscalls/setsockopt/setsockopt08.c |   1 +
 testcases/lib/tst_run_shell.c                 |  18 +-
 testcases/network/sockets/vsock01.c           |   2 +-
 testcases/network/sockets/xfrm01.c            |   1 +
 testcases/network/sockets/xfrm02.c            |   1 +
 testcases/network/sockets/xfrm03.c            |   1 +
 38 files changed, 490 insertions(+), 311 deletions(-)
 create mode 100644 metadata/genruntest.c
 create mode 100644 runtest/.gitignore
 delete mode 100644 runtest/cve
 mode change 100644 => 100755 testcases/commands/keyctl/keyctl01.sh

-- 
2.53.0



More information about the ltp mailing list